Welcome, Guest Login

Support Center

Remote Query Response Path: JSON & XML

Last Updated: May 08, 2017 05:24PM EDT
REST
Remote Query Response Path: JSON & XML



Introduction
The Remote Query Block issue a REST call to a server.
You can parse the data returned by the call to store it into variable and specify the path in the dedicated field.

This is especially true for JSON.


JSON

If you Web Service returns JSON you need to start your Response Variable path with /json/ and continue with the other nodes.

For example, if your web services returns something like:
- Which is actually a JSON authentification response from Wordpress -

{"access_token":"SDHE4FSEY7WSDV","expires_in":"46253829750","token_type":"primary","scope":"ever","refresh_token":"SJCIE3SI62FSEC"}

 
Then you can configure your Variable and Path in your Remote Query Block as follow:
 


The values stored at the nodes described in the Path will be stored in the respective variables.

For example, the  access_token from the JSON feed will be stored in a variable called access_token

- If these variables haven't been created before they will be created by the Remote Query Block -


 

Help us improve! Rate this article:

Yes I found this article helpful

Ask a Question   

support@eachscape.com
http://assets0.desk.com/
false
eachscape
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete