verbb / consume

A Craft CMS plugin to create HTTP requests in your Twig templates to consume JSON, XML or CSV content.
Other
4 stars 1 forks source link

Fedex Authorization API #6

Closed bleepsandblops closed 7 months ago

bleepsandblops commented 7 months ago

What are you trying to do?

Hello,

Looking at the doc for the Fedex API it looks like I can't use the Generic provider, as Fedex requires a json payload with client credentials.

Using postman I can get the token by using those settings:

Screenshot 2023-12-15 at 15 23 00

What's your proposed solution?

Implement a Fedex provider, or tell me where I'm not doing things properly :)

Additional context

No response

engram-design commented 7 months ago

Good point that we don't handle different grants at the moment. I've just added that for the generic OAuth client.

However, Fedex is also a little particular that it needs its own specific provider setup, which I've also added.

See 1.0.6

bleepsandblops commented 6 months ago

@engram-design thank you so much!