Hi. Can I use this plugin with this API? https://cloudcma.com/developers
Any detailed guide? Thanks
]]>Hi,
I have connected to the API and using shortcode I can pull the data in frontend. But API have 1000 posts and it shows 100 posts_per_page and total 10 pages.
When i use query parameter I can get the corresponding page. But in frontend I want to show 10 posts_per_page and pagination to show the corresponding page results.
I tried to add query parameter in shortcode and dynamic query to set the page number . But it is not working
$current_page = isset($_GET[‘page’]) ? intval($_GET[‘page’]) : 1;
$posts_per_page = 100;
$response = do_shortcode(“[wpgetapi_endpoint api_id=’xxxxxxxxxxx’ endpoint_id=’xxxxx’ page='{$current_page}’ posts_per_page='{$posts_per_page}’ debug=’false’]”);
/ Check if the data contains the pagination details
$total_pages = isset($data[‘total_pages’]) ? $data[‘total_pages’] : 1;
/ Display pagination links
if ($total_pages > 1) {
echo ‘
// Previous page link
if ($current_page > 1) {
echo ‘<a href=”?page=’ . ($current_page – 1) . ‘”>« Previous</a>’;
}
// Page number links
for ($i = 1; $i <= $total_pages; $i++) {
if ($i == $current_page) {
echo ‘<span class=”current-page”>’ . $i . ‘</span>’;
} else {
echo ‘<a href=”?page=’ . $i . ‘”>’ . $i . ‘</a>’;
}
}
// Next page link
if ($current_page < $total_pages) {
echo ‘<a href=”?page=’ . ($current_page + 1) . ‘”>Next »</a>’;
}
Please guide me how to get the posts with pagination in the frontend.
Thanks in advance,
I’m a WordPress web designer. When a certain form on the home page is submitted, my client would like that form data to also be sent to an external site. (I have tested the external site’s API in Postman.) At any rate, can I use the WPGetAPI to send the form data to the external site? If so, how do I set up the plugin? I know that I need to add an endpoint but not sure what that is exactly.
]]>Hi,
I′m using the PRO Version to connect an Elementor Pro Form to an external API.
With POST Method an JSON-String as Results Format.
In the BODY I left the name-Field blank and inserted a JSON description in the value field like
{“field_1″:”value_1”, “field_2″:”value_2”, etc }.
Encode Body I set to No encoding (raw).
Now the BODY I get in the Action_Log gives me:
“”{“field_1″:”value_1”, “field_2″:”value_2″, etc }”” with two quotation marks in the beginning and the end.
This is not accepted by my API.
How can I get rid of these?
Thx for putting me on the right track!
Yours, Frank
]]>
Hi there. i recently found your plugin, and I installed the free version . all i want is to use the provided screenshot API in my WooCommerce website. That is my provider’s API documentation, how can I use it on my WooCommerce website? actually if it is possible i would like to have a step by step guide to use implant the exact documentation. i want to use it for 30 woocommerce products.But not for all products of my shop. thanks. Regards
]]>Hi,
my challenge ist to display “datetime” in a bit changed dateformat from
https://worldtimeapi.org/api/timezone/Europe/Paris
I was successful to connect the API according to https://wpgetapi.com/docs/step-by-step-example/
But then how to display “datetime” only and format the date?
Is this possible?
Thank you
Robert
I have a WordPress site built using HTML/JS/CSS, not WordPress templates or blocks. I am mainly using WordPress as an admin tool – access restrictions, subscription levels, database storage, etc. I am trying to access the API I am using (ERPLY API – https://learn-api.erply.com), and when tested in the plugin, everything returns as normal.
However I am struggling to put that data into my JavaScript file, which is running through a plugin, as separate pages need different levels of access to the JavaScript. What is the method you would recommend to access the results of an API call in a separate JavaScript file? Is that possible to do using the template tag/ajax?
A code example would be greatly appreciated too, as I do not have much experience in PHP/AJAX – and please let me know if you need any more information, I am happy to provide it.
]]>Hi. I need to send form data from Elementor to an external ERP. Could your plugin be used to do this? Do you have any example of how to do it?
Thanks!
Hi,
I am trying to connect and get data with API provided by thrid party with WPGetAPI and the connection required login and password to auth from the remote device. Does the PRO version support this? thanks
]]>When I try to buy the Pro Version in your official site, I get redirected to the checkout page but the cart seems to be empty. I think you have a problem with the site.
]]>According to the documentation, WeGetApi provides unlimited API integrations, but I am experiencing difficulties when attempting to add more than 300 APIs. The plugin seems to be stuck, preventing me from adding additional APIs beyond this limit.
I have thoroughly reviewed the documentation and troubleshooting resources available, but I have been unable to find a solution to this issue. I believe it may be a bug or a limitation that needs attention.
Could you please provide guidance on how to overcome this limitation or fix the bug? I would greatly appreciate any assistance or insights you can offer to ensure I can fully utilize the capabilities of WeGetApi.
Thank you for your time and support. I look forward to hearing from you soon.
]]>Hello, is your documentation no longer up to date? Method 1 from this article does not work. Your contact form 7 form tag is rendered as text. Does this no longer work, or have I done something wrong? https://wpgetapi.com/docs/using-with-contact-form-7/
]]>Hi! This looks like it may be the solution for me. I have never got involved with api’s and am hoping this plugin will solve the headache! I run a website for my hometown in the UK and I have found a resource I would like to add to it, which is bus timetable, service, and route data. There appears to be api’s to do this at https://www.bus-data.dft.gov.uk/
I’m starting from almost zero knowledge of how to use api’s. I would only be able to utilise the free version. Your help would be very much appreciated, thank you.
Hi, I have an API that does not require a query string. I get an error from the endpoint when using WPGetAPI, because it does not allow me to delete the row with the query string parameter. Is there a way to fix this, please?
]]>Hi,
I am trying to use a CF7 form field to read data from an external API and then use that data to populate some other fields on the same form.
Is it possible to do this using this plugin?
Thanks
]]>i buy this plugin from your website https://wpgetapi.com/downloads/api-to-posts/
But d’nt get any help from your side
I am facing issue when i put id it d’nt fetch or save inforamtion
I have unique id, listing, list, propertyType, ID unique item key , but your plugin is not working
i also send you email from [email protected] but d’nt get any reply
please coordinate with me thanks
]]>I think I got everything set up correctly, but clicking on the test button doesn’t do anything. And after putting the shortcode on the page, I get the following error message:
PHP Fatal error: Uncaught Error: Call to undefined function is_plugin_active() in /home/www/truncated/wp-content/plugins/wpgetapi/includes/class-api.php:79
I tried to open a support ticket, but the author’s web-site throws up a 403 error. Is anyone here able to help?
]]>A little confusing. But do I need the PRO version to post Contact Form 7 submissions?
]]>hello, the api I have will first need to get a token using basic auth then this token will be used as bearer for all other endpoints. Cab you advice on how to achieve with the paid plugin version?
thank you
]]>Hi WPGetAPI devs,
first of all, great tool! I’m currently trying to set it up to fetch some data from beaconcha.in, but it seems that I’m making some mistakes. I’m using the plugin to get the queue data from beaconcha.in. Works fine so far, it’s exactly outputting what I’m asking for:
Array
(
[status] => OK
[data] => Array
(
[beaconchain_entering] => 91534
[beaconchain_exiting] => 0
[validatorscount] => 619897
)
)
As in your tutorial on YouTube/your website, I then tried to output the data through Code Snippets. Outputting just the whole variable with var_dump works and displays the whole array, but when trying to just output the beaconchain_entering value with echo, it doesn’t show anything. That’s the code I put into Code Snippets:
<?php
$bcqueue = wpgetapi_endpoint( 'beaconchain', 'queue' );
echo $bcqueue['beaconchain_entering'];
;
?>
My API setup should be fine too: (image link if embed doesn’t work)
Any idea what I’m missing? As a warning, I’m not a dev or very familiar with PHP/HTML and just know some basics.
Thanks for your help!
]]>Hi, I’m using the free version of this plugin. Is it not allowed to fill Authorization without a value in the headers? because I try it on Postman it runs smoothly. When I try to test the endpoint with this plugin, it appears:
Array
(
[error] => Unauthorized
)
Thank you!
]]>Hi, I just started using your plugin (free version at the moment) and I have an API with the token but I cannot see where I can add the token code.
This is the software documentation: https://developer.employmenthero.com/api-references/ats/#get-all-roles
The description of your plugin says that there is a token that is possible to use, but where?
Thanks
]]>I want to integrate a website with external api of a compnay.
I installed your plugin today and worked with it, but your plugin doesn’t have api key, secret key integration.to connect with api, I have base url, endpoints, parameter but without adding api keys its not working. So do you have api key integration options in your plugin?
Please let me know.
Thanks
]]>Hello!
I follow this step https://www.youtube.com/watch?v=goHkt-t3pok&t=8s. But when I’m parsing data with PHP it goes blank… any help?
Thank you in advance!
]]>I have the below and it works if I remove the “json”: from it.
“json”: { “data”: { “vehicle”: { “make”: “make”, “model”: “model”, “year”: “year” } }, “lead”: { “contact”: { “address”: “address”, “city”: “city”, “email”: “email”, “first_name”: “first_name”, “last_name”: “last_name”, “phone”: “phone”, “state”: “state”, “zip”: “zip” } },
How can I remove it / not allow it / or why is it be generated anyway?
]]>I’ve got the [wpgetapi] shortcode in my cf7 but it’s being rendered as normal text. In other words, I can see the shortcode in my form on the front end.
Why is that?
Thank you!
I use Unleashed to keep stock levels of Woocommerce, so WPGetAPI needs to connect to Unleashed. The Unleashed API doc states:
Each request to the API must include these four values sent as HTTP headers:
Content-Type
– This must be either application/xml
or application/json
.Accept
– This must be either application/xml
or application/json
.api-auth-id
– You must send your API id in this header.api-auth-signature
– You must send the method signature in this header.client-type
– You must send your client-type
in this header to enable tracking. The value must follow the convention partner_name/app_name
or partner_name
. i.e. acme/acmeEDI
or acme
.I keep getting this error, when trying to connect to Unleashed API
{“message”:”Authorization has been denied for this request”}
Unique ID – Products
Endpoint – /products
Method – GET
Results format: JSON String
Headers:
Content-Type – application/json
Accept – application/json
api_id – ******
api_key – *****
www-authenticate – Bearer *******
Full error report:
Array ( [headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Mon, 13 Feb 2023 15:48:31 GMT [content-type] => application/json; charset=utf-8 [cache-control] => private [server] => Microsoft-IIS/10.0 [x-aspnet-version] => 4.0.30319 [www-authenticate] => Bearer [x-powered-by] => ASP.NET ) ) [body] => {“message”:”Authorization has been denied for this request”} [response] => Array ( [code] => 401 [message] => Unauthorized ) [cookies] => Array ( ) [filename] => [http_response] => WP_HTTP_Requests_Response Object ( [response:protected] => Requests_Response Object ( [body] => {"message":"Authorization has been denied for this request"} [raw] => HTTP/1.1 401 Unauthorized Date: Mon, 13 Feb 2023 15:48:31 GMT Content-Type: application/json; charset=utf-8 Transfer-Encoding: chunked Connection: close Cache-Control: private Server: Microsoft-IIS/10.0 X-AspNet-Version: 4.0.30319 WWW-Authenticate: Bearer X-Powered-By: ASP.NET {"message":"Authorization has been denied for this request"} [headers] => Requests_Response_Headers Object ( [data:protected] => Array ( [date] => Array ( [0] => Mon, 13 Feb 2023 15:48:31 GMT ) [content-type] => Array ( [0] => application/json; charset=utf-8 ) [cache-control] => Array ( [0] => private ) [server] => Array ( [0] => Microsoft-IIS/10.0 ) [x-aspnet-version] => Array ( [0] => 4.0.30319 ) [www-authenticate] => Array ( [0] => Bearer ) [x-powered-by] => Array ( [0] => ASP.NET ) ) ) [status_code] => 401 [protocol_version] => 1.1 [success] => [redirects] => 0 [url] => https://api.unleashedsoftware.com/products [history] => Array ( ) [cookies] => Requests_Cookie_Jar Object ( [cookies:protected] => Array ( ) ) ) [filename:protected] => [data] => [headers] => [status] => ) )
I’m not clear how to send a query to gpt3 can anyone help? the curl commands and the json format make it a bit confusing to figure out.
]]>Hello, is it possible to paste the template tag in a js script? to get the json directly from the template tag?
normal with getJSON or VAR , can you tell me for example how to put the tag in the script (example)
]]>Got the following error after updating from 1.7.4 to 1.7.8
Note I also updated the PRO version from 1.5.0 to 1.6.0
APBCT ERROR: apbctLocalStorage object is not loaded. (index):8
]]>