This page requires a user-id & password
Posted: Thu Jun 16, 2022 11:17 pm
Trying to get a FEDEX token to eventually get Tracking by tracking number API. This is the code I am using
HTTP_Debug(*On : %Trim(@IFSError));
postString =
'grant_type=client_credentials' +
'&client_id=' + %Trim(ClientId) +
'&client_secret=' + %Trim(ClientSecret);
Monitor;
rc = http_post("https://apis.fedex.com/oauth/token"
: %Addr(postString) + 2
: %Len(postString)
: @IFSResponse
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'application/x-www-form-urlencoded' );
I keep getting userid & password required. This works in POSTMAN just using my client credentials.
HTTP_Debug(*On : %Trim(@IFSError));
postString =
'grant_type=client_credentials' +
'&client_id=' + %Trim(ClientId) +
'&client_secret=' + %Trim(ClientSecret);
Monitor;
rc = http_post("https://apis.fedex.com/oauth/token"
: %Addr(postString) + 2
: %Len(postString)
: @IFSResponse
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'application/x-www-form-urlencoded' );
I keep getting userid & password required. This works in POSTMAN just using my client credentials.