Main Board > Web Services
REST problems
Stéphane Devouard:
James
You don't have to build postdata$ if the API server accepts JSON
You can use PxPlus internal conversion of hash tables to JSON
--- Code: ---postdata$["client_id"]=clientID$
postdata$["grant_type"]="client_credentials"
postdata$["scopes"]="urn:tr:onesource:auth:api:IndirectTaxDetermination"
postdata$["client_secret"]=clientSecret$
postdata$=DIM(LIST EDIT postdata${all})
--- End code ---
James Zukowski:
Thanks, Stéphane! That's a real sweet way to do it.
It's great to learn something new every day!
Navigation
[0] Message Index
[*] Previous page
Go to full version