How it works
This plugin works with our free WPGetAPI plugin to allow you to connect to API’s that require authorization via the OAuth 2.0 method using the following Grant Types
- Authorization Code
- Authorization Code with PKCE
- Client Credentials
- We’ve also added a ‘custom’ option for API’s that don’t strictly follow a protocol
This plugin will add a new tab called OAuth 2.0 where you can add the OAuth 2.0 details of your API, which looks something like in the images below.
Once you add your details, you can then click either the ‘Authorize’ or ‘Get Token’ button (follow the prompts, if there are any). You should then receive an access token and a refresh token which the plugin will save. From there you simply need to add the keyword ‘wpgetapi_oauth_token’ wherever your token needs to go in the subsequent API calls and the plugin will keep your token up to date.
For detailed setup instructions, please see our article on how to setup OAuth 2.0 authorization.
We can help with installation and setup, at no extra cost.