Yes, I’m trying to work out how to use the API as well.
I’ve setup some new key/secret via the Tools -> Rest API section but cannot find any documention or examples on how to use this?
I assume it should be quite straight forward. Little help?
Thread Starter
CYoyo
(@cyoyo)
I have figured it out. it is actually not that straight forward. based on the API documentation (https://docs.kaizencoders.com/url-shortify/api-documentation/links), this plugin is using bearer for authorization. So you need to have an authorization plugin in your wordpress which can convert your username and password to a token. I am using this plugin (JWT Authentication for WP-API) to help me convert user name and password to token. The install of “JWT Authentication for WP-API)” may not be straight forward, you may want to check for their documentation or find a Youtube video for more guidance.
-
This reply was modified 1 year, 5 months ago by
CYoyo.
So the whole section in the plugin for Rest API and creating key/secrets etc is just pointless?
Thread Starter
CYoyo
(@cyoyo)
I am not sure how the backend process work, but based on my understanding, the key/secrets are not for bearer authorization which requires a token instead of key/secretes.