Search found 14 matches
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><R...
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 '3LqpkuU7u8dpPA8FRVi...
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_credentia...
Re: OUATH2
I think getting the token was my biggest battle.
Re: OUATH2
Thank you both so much for your help. I am now able to get the token. My next step is to get the tracking information from UPS. I have been using your example for years but will need to modify it use the token rather than the access key.
Re: OUATH2
I am still having problems with this . The curl is below and all I am trying to do is run this using HTTPAPI. The userid and password are not correct below. Rather I use the client id and secret id given to me by UPS. curl -i -X POST \ -u bruce.goltzman@mckesson.com:Bmg6512933467# \ https://wwwcie.u...
Re: OUATH2
I made some changes but for some reason it still thinks I am using JSON. I am baffled. http_debug(*ON: '/home/mydebuglog.txt'); http_setAuth(HTTP_AUTH_BASIC: %trim(userid):%trim(pass)); http_setOption('timeout': '30'); http_setOption('network-ccsid': '1208'); rc = http_req( 'POST' :'https://wwwcie.u...
OUATH2
Can anyone see what I am doing wrong? I am trying to get an ouath token from UPS . For user id I am sending the client id and for password i am sending the ups secret password. http_setAuth(HTTP_AUTH_BASIC: 'userid': 'pass'); http_setOption('timeout': '30'); http_setOption('network-ccsid': '1208'); ...
- Tue Apr 05, 2022 11:57 am
- Forum: HTTPAPI
- Topic: tracking of UPS packages
- Replies: 8
- Views: 3251
Re: tracking of UPS packages
In the event anyone else has this issue. I have been using this URL for years :http_url_post_xml('https://wwwcie.ups.com/ups.app/xml/Track'. I changed it to http_url_post_xml('https://onlinetrack.ups.com/ups.app/xml/Track' . With this change my program now works as it did before . Correct me if I am...