[POSTJson] model POSTJson
Hi guys !
I'm trying to join an extern API with Thingworx. I format my request with POSTMAN and now I want to use the snippet service PostJSON.
But I always had syntax issues with it.
var params = {
proxyScheme: undefined /* STRING */,
headers: undefined /* JSON */,
ignoreSSLErrors: undefined /* BOOLEAN */,
useNTLM: undefined /* BOOLEAN */,
workstation: undefined /* STRING */,
useProxy: undefined /* BOOLEAN */,
withCookies: undefined /* BOOLEAN */,
proxyHost: undefined /* STRING */,
url: "https://api.netatmo.com/oauth2/token" /* STRING */,
content: {
"grant_type":"password"
"client_id":"[YOUR_CLIENT_ID]"
"client_secret":"[YOUR_CLIENT_SECRET]"
"username":"[USERNAME]"
"password":"[PASSWORD]"
"/* JSON */,
timeout: undefined /* NUMBER */,
proxyPort: undefined /* INTEGER */,
password: undefined /* STRING */,
domain: undefined /* STRING */,
username: undefined /* STRING */
};
// result: JSON
var result = Resources["ContentLoaderFunctions"].PostJSON(params);
Can you help me about how correctly use the syntax ?
Regards,
Guillaume

