Has anyone ever worked with the FedEx API before s...
# suitescript
x
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
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
Yeah, I've done it extensively. I'd recommend SOAP. It's an incredible API.