Search found 19 matches

by Bruceg
Fri May 31, 2024 2:36 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 27
Views: 140375

Re: OUATH2

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
by Bruceg
Fri May 31, 2024 2:10 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 27
Views: 140375

Re: OUATH2

thank you for your help
by Bruceg
Wed May 29, 2024 1:14 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 27
Views: 140375

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 tim...
by Bruceg
Fri May 24, 2024 1:44 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 27
Views: 140375

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██Ho...
by Bruceg
Mon May 13, 2024 3:03 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 27
Views: 140375

Re: OUATH2

Thanks
by Bruceg
Fri May 10, 2024 12:19 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 27
Views: 140375

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...
by Bruceg
Thu May 09, 2024 12:54 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 27
Views: 140375

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...
by Bruceg
Tue Apr 30, 2024 11:55 am
Forum: HTTPAPI
Topic: OUATH2
Replies: 27
Views: 140375

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...
by Bruceg
Mon Apr 29, 2024 4:58 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 27
Views: 140375

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...
by Bruceg
Thu Apr 11, 2024 6:10 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 27
Views: 140375

Re: OUATH2

I think getting the token was my biggest battle.