Creating a new OAuth client programatically
-
Firstly, fantastic plugin! I’ve been searching for a clean way to integrate OAuth with WP-API and this plugin works beautifully. Thanks for that.
I would like to programmatically create OAuth clients and issue keys. I have an API that requires first that a user signup through the usual WP registration. The next step would be for the user to create a client and generate an “API” key, which is then stored in their user profile.
I looked through the code and couldn’t really understand how clients and keys are generated via the admin “Clients” tab. Can you help me with an example of how I can use the plugin code to programmatically create an OAuth client? Maybe reuse the call from the POST made when creating a new client from the admin “Clients” tab?
If I can get this part figured out I’ll surely buy a license since this plugin saves me a lot of manual work. Thanks.
- The topic ‘Creating a new OAuth client programatically’ is closed to new replies.