Reputation: 811
I have a Wordpress project with the OAuth Server, jSON API User and jSON API plugins enabled, and i get the ID, Key and Secret string using:
php /var/www/mywordpress/wp-cli.phar --url=mydomain.com oauth1 add
Now I need to create/edit/delete users from OUTSIDE Wordpress (from PHP Project).
I read more tutorials to use the OAuth1 to get access token and can call the API with permissions, but the codes allways prompt to the user the login window to get the access permissions.
I need to make all this by the server side, using only PHP (CURL or similar) to get the credentials and make calls to the API.
Any know how, or have any code example to login into wordpress OAuth from pure PHP ?
Thanks
Upvotes: 1
Views: 908
Reputation: 58
I was facing a similar issue and solved it with the following approach:
I don't have a PHP code sample as I'm working in JavaScript. However, the steps are fairly easy:
Upvotes: 1