Scott,
I used your code and I was successful . thanks for your patience and assistance on this. If anyone else needs help on using OAUTH2 to use the UPS API's i am more then happy to help
Bruce
Search found 19 matches
Re: OUATH2
thank you for your help
Re: OUATH2
I am trying to use a modified version of your example 14, getting tracking information but using the OAUTH2 token . I have been working with UPS to get this working correctly but, they have not been a lot of help. The connection closes too quickly when I am in debug so I would like to extend the ...
Re: OUATH2
is there a way to change the HTTP_TIMEOUT from the default? I am trying to go through debug but the connections times out before I can see what is wrong with my post. I tried this but, I don't think it worked as it timed out.
http_setOption('timeout': '600');
POST /api/ups.app/xml/Track HTTP/1.1 ...
http_setOption('timeout': '600');
POST /api/ups.app/xml/Track HTTP/1.1 ...
Re: OUATH2
Thanks
Re: OUATH2
I did rerun my request this morning and received a different message.
senddoc(): entered
<?xml version="1.0"?><TrackRequest xml:lang="en-US"><Request><TransactionReference><CustomerContext>TRACKING TEST</CustomerContext><
<XpciVersion>1.0001</XpciVersion></TransactionReference><RequestAction ...
senddoc(): entered
<?xml version="1.0"?><TrackRequest xml:lang="en-US"><Request><TransactionReference><CustomerContext>TRACKING TEST</CustomerContext><
<XpciVersion>1.0001</XpciVersion></TransactionReference><RequestAction ...
Re: OUATH2
My initial issue obtaining the token seems to have been resolved. I modified example 16 to get tracking information from UPS using the token rather than license, userid/ and password. I am now getting the following error: It looks like the program may not be reading the post correctly. If anyone has ...
Re: OUATH2
Thank you for your quick response. I have been programming for a long time but was unaware of the ILE debugger constraint of 1024 characters.
661 'TQ0OTIxMDksImlhdCI6MTcxNDQ3NzcwOSwianRpIjoiNzJjNWNlZmMtNDdiM'
721 'S00MzFlLWExNmEtMTVkMzU1Nzc3OTNlIn0.DnnM8Wzw3N25VlZ8brVVsAhF4'
781 ...
661 'TQ0OTIxMDksImlhdCI6MTcxNDQ3NzcwOSwianRpIjoiNzJjNWNlZmMtNDdiM'
721 'S00MzFlLWExNmEtMTVkMzU1Nzc3OTNlIn0.DnnM8Wzw3N25VlZ8brVVsAhF4'
781 ...
Re: OUATH2
I am getting a strange result when using HTTP_req
0136.00 dcl-s RESULTS varchar(1600000) ;
0436.00 rc = http_req( 'POST'
0437.00 :'https://wwwcie.ups.com/security/v1/oauth/token'
0438.00 : *omit
0439.00 : resultS // String to receive the results
0440.00 : *omit
0441.00 : 'grant_type=client ...
0136.00 dcl-s RESULTS varchar(1600000) ;
0436.00 rc = http_req( 'POST'
0437.00 :'https://wwwcie.ups.com/security/v1/oauth/token'
0438.00 : *omit
0439.00 : resultS // String to receive the results
0440.00 : *omit
0441.00 : 'grant_type=client ...
Re: OUATH2
I think getting the token was my biggest battle.