WPGetAPI
Forum Replies Created
-
Forum: Plugins
In reply to: [WPGet API - Connect to any external REST API] Connecting to External APINo problem.
Closing this one now.
Forum: Plugins
In reply to: [WPGet API - Connect to any external REST API] TokenGreat, glad to hear it.
Forum: Plugins
In reply to: [WPGet API - Connect to any external REST API] TokenHi,
Looking at your docs below, this needs to go in the headers. The -H flag indicates headers.
curl "https://api.employmenthero.com/ats/api/v1/embedded/organisations/c12e0363-17b0-4f4b-99c7-09adea9f12ad/jobs" -H "X_ATS_TOKEN: a9207tx3NBr8L-bEi9Ed-g"So within the Headers fields, you would add X_ATS_TOKEN into the Name field and then a9207tx3NBr8L-bEi9Ed-g within the Value field.
Forum: Plugins
In reply to: [WPGet API - Connect to any external REST API] Connecting to External APIHi,
All APIs have different requirements for where the keys need to go. The docs for your API should tell you how they need to be added but it is usually within the headers.
Here are some docs for adding to the headers: https://wpgetapi.com/docs/sending-headers-in-request/
Which API are you using?
Forum: Plugins
In reply to: [WPGet API - Connect to any external REST API] Blank or no data appearYou will need to modify the PHP code to suit your own API and the data that it returns.
Using $data[‘author’] will likely not work as there is probably no key within your data that is named ‘author’.
If you paste the results of your var dump here, I can assist further.
Forum: Plugins
In reply to: [WPGet API - Connect to any external REST API] Blank or no data appearHi,
Which API are you using and what does your endpoint settings look like?
Forum: Plugins
In reply to: [WPGet API - Connect to any external REST API] Remove “json: fromThis has been resolved over emails.
WPGetAPI was not adding json to the data – the json was being added from the API on the return data.
Marking as resolved. We got this sorted via emails.
Hi Clinton,
It is not actually the shortcode that needs to go into the CF7 form editor, it is a custom “form-tag”, which is a feature of CF7.
It looks similar to a shortcode which may be where the confusion is.
Please see the docs here: https://wpgetapi.com/docs/using-with-contact-form-7/
Also, to be able to use the wpgetapi form-tag requires the use of the PRO plugin.
Hope that helps.
Closing this as we are handling this over emails.
Forum: Plugins
In reply to: [WPGet API - Connect to any external REST API] how to use for gpt3?Hi Ryan,
Glad you found it. Here are some docs for anyone else reading: https://wpgetapi.com/docs/understand-api-docs/
You can send data to OpenAI without the PRO plugin by using the Body POST fields in the admin area. But to send dynamic data from a form, then yes the PRO plugin is required.
Forum: Plugins
In reply to: [WPGet API - Connect to any external REST API] template tag in js scriptOk great.
Forum: Plugins
In reply to: [WPGet API - Connect to any external REST API] template tag in js scriptHi there,
No it is not possible for it to go into JS code. It is a PHP function and only works with PHP.
I’m not 100% sure I follow what you are wanting to do though.
Forum: Plugins
In reply to: [WPGet API - Connect to any external REST API] Error after update to 1.7.8This has been rectified over emails.
For reference: the issue was a change to the way classes are generated within the Pro plugin and there was a conflict with some previous custom CSS that was used.
Forum: Plugins
In reply to: [WPGet API - Connect to any external REST API] Security of feedMarking this as resolved as we haven’t heard anything back.