Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hi friends,
i am unable to execute the rest api and get the ouput like client id,grant type and access token e.t.c; i write the following code till it is not executing please help me.
var params = {
headers: {
"grant type":xxxxx
"client id":xxxxxx
"client_secret": xxxxx
"resource": xxxxxxx
} /* JSON */,
ignoreSSLErrors: false /* BOOLEAN */,
useProxy: undefined /* BOOLEAN */,
proxyHost: undefined /* STRING */,
url: "http://some_url/sampleXMLDocument.xml" /* STRING */,
timeout: 30000 /* NUMBER */,
proxyPort: undefined /* INTEGER */,
password: "fakePassword" /* STRING */,
username: "Administrator"/* STRING */
};
var result = Resources["ContentLoaderFunctions"].LoadJSON(params);
Solved! Go to Solution.
Hi @karthik2
Not sure if I understood your request well, but maybe https://www.ptc.com/en/support/article/CS290180 may help you.
Regards
Christophe
Hi @karthik2
Not sure if I understood your request well, but maybe https://www.ptc.com/en/support/article/CS290180 may help you.
Regards
Christophe
Hi @karthik2.
If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.
Thank you for participating in our community!
Regards.
--Sharon