Join Slack
Powered by
Has anyone ever worked with the FedEx API before s...
# suitescript
x
XochisSketches
10/23/2024, 2:33 PM
Has anyone ever worked with the FedEx API before successfully? When I try and pull a token like in the docs below it fails. That said, when I do the exact same thing in Postman it succeeds.
https://developer.fedex.com/api/en-us/catalog/authorization/docs.html#operation/API%20Authorization
j
jarens
10/23/2024, 5:48 PM
I haven't yet, but sometimes with my other calls I need to add a header item for the User-Agent so the call goes through. Here's a quick example
var
response = https.get({ url: url, headers: { 'Authorization':
Bearer ${token}
, 'Accept': 'application/json', 'User-Agent': 'Mozilla/5.0' } });
f
Fred Pope
11/12/2024, 7:49 PM
Yeah, I've done it extensively. I'd recommend SOAP. It's an incredible API.
3
Views
Open in Slack
Previous
Next