<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>10 Jan 2021 13:20:17 Z</lastBuildDate><pubDate>5 Nov 2020 22:01:14 Z</pubDate><description>Hi I need to do the below&#13;
&#13;
[code:text]&#13;
To retrieve an API Token&#13;
 Make a POST request to https://api.borderexpress.com.au/token with a header of: "Content-Type: application/x-www-form-urlencoded".&#13;
The entered request body should contain your URL encoded credentials in the format of:&#13;
grant_type=client_credentials&amp;client_id={clientId}&amp;client_secret={clientSecret}&#13;
If successful a result will be returned in JSON:&#13;
{ "access_token":"****", "token_type":"bearer", "expires_in":3599, "scope":"bex.webapi.basic", "userName":"username@borderexpress.com.au", ".issued":"Tue, 29 Aug 2017 05:45:16 GMT", ".expires":"Tue, 29 Aug 2017 06:45:16 GMT" }&#13;
For setup and testing purposes please connect to our test API https://integrationapi.borderexpress.com.au.&#13;
In order to request access to our API please email integrations@borderexpress.com.au and provide an email address to link to your API account.&#13;
After testing is complete and you are ready to deploy to live, please utilise our production API https://api.borderexpress.com.au&#13;
[/code]&#13;
&#13;
and my code is &#13;
&#13;
myrequest is httpRequest&#13;
myrequest..Method = httpPost&#13;
myrequest..Header["Authorisation"] = "client_id=ec24ff28.880f.4dfd.8c70.03c7ba8a6030"&#13;
myrequest..ContentType =  "application/x-www-form-urlencoded"&#13;
myrequest..URL = "https://api.borderexpress.com.au/token" //grant_type=client_credentials&amp;client_id=ec24ff28.880f.4dfd.8c70.03c7ba8a6030&amp;client_secret=vC/I+KA7dbTkiEN703sk6qy20qHScQ35 "&#13;
tempstring is string = "grant_type=client_credentials&amp;client_id=ec24ff28.880f.4dfd.8c70.03c7ba8a6030&amp;client_secret=vC/I+KA7dbTkiEN703sk6qy20qHScQ35"&#13;
myrequest..Content = NoSpace(tempstring)&#13;
&#13;
myresponse is httpResponse&#13;
&#13;
myresponse = HTTPSend(myrequest)&#13;
&#13;
&#13;
&#13;
RESULT True&#13;
&#13;
I am doing something wrong it keeps returning an error &#13;
any help would be great</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/68081-httpsend/read.awp</link><title>httpsend</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>100187997</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/68081-httpsend-68226/read.awp</comments><pubDate>10 Jan 2021 13:20:17 Z</pubDate><description>Hi Andrea Chiadò Piat:&#13;
Can the HTTPAddParameter  pass array value?</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/68081-httpsend-68226/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/68081-httpsend-68226/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/68081-httpsend/read.awp">httpsend</source><title>Re: httpsend</title></item><item><author>kel</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/68081-httpsend-68089/read.awp</comments><pubDate>9 Nov 2020 00:10:28 Z</pubDate><description>Works great thanks for the help</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/68081-httpsend-68089/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/68081-httpsend-68089/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/68081-httpsend/read.awp">httpsend</source><title>Re: httpsend</title></item><item><author>Andrea Chiadò Piat</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/68081-httpsend-68082/read.awp</comments><pubDate>6 Nov 2020 10:35:21 Z</pubDate><description>Hello Kel,&#13;
for another type of service token request I use this code, you can do some try on it:&#13;
&#13;
oRequest is a httpRequest&#13;
…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/68081-httpsend-68082/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/68081-httpsend-68082/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/68081-httpsend/read.awp">httpsend</source><title>Re: httpsend</title></item></channel></rss>
