bohdanwlcm
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Yes, I’m able to access any other WordPress REST API route, except this one
Which username and password should I use?
Currently I use admin’s username and password and I’m sure that this is the correct data
Forum: Developing with WordPress
In reply to: Creating Users via REST APIThanks!
I have the similar issue.
For my admin user I created Application Password, then I created base64 from auth data:
const token = Buffer.from(${process.env.WP_USERNAME}:${process.env.WP_APP_PASSWORD}).toString( 'base64');Set Basic Authorization:
axios.defaults.headers.common['Authorization'] = Basic ${token};But any
/pmpro/v1route, I’m trying to trigger always returns me the error:data: { status: 'error', error: 'Restricted', error_description: 'Sorry, you are not allowed to access REST API.' }My user has all pmpro capabilities.
- This reply was modified 3 years, 6 months ago by bohdanwlcm.
- This reply was modified 3 years, 6 months ago by bohdanwlcm.
Viewing 4 replies - 1 through 4 (of 4 total)