Jump to content

API SOAP or REST Javascript examples?

Recommended Posts

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.

Link to comment
Share on other sites

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


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. 




I hope this helps.



Link to comment
Share on other sites

  • 2 years later...

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.

Link to comment
Share on other sites

  • 8 months later...

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?

Link to comment
Share on other sites

  • 8 months later...

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/

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

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]');
        } catch (err) {
            // Handle Error Here

    .listen(PORT, () => console.log(`Listening on ${ PORT }`))

Link to comment
Share on other sites

  • 1 year later...

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

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...