gsgriffin Posted February 17, 2019 Report Share Posted February 17, 2019 I really appreciate and can typically quickly figure out how to use a tool or function based on an example. A few seconds studying an example is worth far more than a thousand words trying to describe it. I've been looking and not finding, but perhaps not searching for the right term? Where are there examples of using the REST or SOAP API in JAVASCRIPT for sending data to or getting data from the table? I would really like to use this, but the descriptions in the help don't get to the actual script examples. Spending a lot of time in trial and error trying to get it to work. Prefer Jquery, if this is easier. Quote Link to comment Share on other sites More sharing options...
TsiBiRu Posted February 18, 2019 Report Share Posted February 18, 2019 Hi @gsgriffin, Have you read about the documentation of caspio about their Swagger UI (An interface for using REST API)? If not, you can read the article below as it contains useful information on how to configure or set this up https://howto.caspio.com/web-services-api/rest-api/swagger-ui/ I've also found this article on the net, I think this article can also help you get started in learning how to use API. https://www.toptal.com/nodejs/secure-rest-api-in-nodejs https://blog.miguelgrinberg.com/post/writing-a-javascript-rest-client https://stackoverflow.com/questions/36975619/how-to-call-a-rest-web-service-api-from-javascript I hope this helps. Regards, TsiBiRu Quote Link to comment Share on other sites More sharing options...
virtualHITman Posted February 20, 2021 Report Share Posted February 20, 2021 I am also looking for examples on how to use the web services API. I have successfully used swagger to view data and make changes to data in my tables, but I'm looking for examples that are specific to the Caspio API. Specifically, how one codes an HTML page and associated scripts to perform basic operations (create, read, update, and delete) to data contained in Caspio tables. This tutorial should also include how to request a token and/or properly authenticate so that one can accomplish the desired operations (i.e. creation, reading, updating, deletion) of data. If I ever figure this out, I'll make and post a video myself. Quote Link to comment Share on other sites More sharing options...
gsgriffin Posted November 16, 2021 Author Report Share Posted November 16, 2021 I don't find instructions telling me to do this and then that really helpful. Just a simple example in php would be great. Something that takes the longwinded instructions and cuts to the chase of code that simply has example for whatever I need to replace with my specifics. I just need to update fields in a table. I have dynamic pages with JS that will modify the browser, but I would like the table to reflect the changes made on screen. At the present, I'm forced to have the JS submit a hidden form, but this requires a different form for each and every table that needs to be updated and has issues when users click too quickly. Would love the API code example that I could have the JS send url query data to the page on my server which then connects via the API to update the table. Is this not possible or so incredibly complicated that people cannot do this easy or share? Quote Link to comment Share on other sites More sharing options...
Kurumi Posted August 5, 2022 Report Share Posted August 5, 2022 Hi - Just wanted to update everyone that beginning on October 3, 2022, Caspio will deprecate SOAP API Web Services and this option will be removed from API profile creation screen. Existing SOAP applications will continue to function until June 3, 2024. After this date, the Caspio SOAP API will no longer execute. We strongly recommend that you start migrating any existing SOAP calls to Caspio’s REST API to avoid interruption of your applications and benefit from modern API technology. To know more, you can check it here: https://howto.caspio.com/deprecations/deprecation-of-soap-web-service/ Quote Link to comment Share on other sites More sharing options...
Aether Posted August 24, 2022 Report Share Posted August 24, 2022 Hello - If you also want to check the other feature deprecation and the date it was deprecated then check it here :https://howto.caspio.com/deprecations/deprecations/ Quote Link to comment Share on other sites More sharing options...
aaronthesoftwaremechanic Posted September 7, 2022 Report Share Posted September 7, 2022 Demo Post in Node Js to get an access token. const https = require('https'); const sendPostRequest = async () => { let urly = 'https://[YourAccount].caspio.com/oauth/token'; try { const resp = await axios.post(urly, 'grant_type=client_credentials&client_id=[YOURCLIENTID]&client_secret=[YOURCLIENTSECRET]'); console.log(resp.data); } catch (err) { // Handle Error Here console.error(err); } }; sendPostRequest(); }) .listen(PORT, () => console.log(`Listening on ${ PORT }`)) Quote Link to comment Share on other sites More sharing options...
ParkLoey Posted June 8 Report Share Posted June 8 Hi, all! Just wanted to inform this thread that Caspio already deprecated SOAP API Web Services and in their recent release (48), they announced that it will officially retire this December 1st. If any of you are still using SOAP API in your Caspio app, it's best to sort it out as soon as you can https://howto.caspio.com/release-notes/caspio-49-0/#:~:text=Caspio Webhooks.-,Deprecations,-Deprecation of SOAP Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.