API- user level permissions

  • Unknown's avatar

    We are using ShopStyleCollective API and click share to WP. We are self-hosted w/ wp.org. API is going through wp.com. But we can not connect to get data to share to post: ‘Sorry, you are not allowed to create posts as this user.’
    We are using admin account credentials w/ different username.
    Installed Applications PW pi and modified .htaccess to include authorization.
    Would purchasing redirect of wp.com to wp.org ACTUALLY solve problem? Or just not valid to this case?
    What help is there we are beyond frustrated and beyond schedule as of Nov 2019.

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    Are you trying to post to a WordPress.com site, or your self-hosted site using the API?

    This support forum provides support for end-users of free sites on WordPress.com. We’re not able to help with issues regarding the WordPress.com REST API, or other development-related questions.

    If you’re having trouble using the WordPress.com REST API, please use the contact form on our developer page, here:

    Contact

    You can find the documentation for the WordPress.com REST API here:

    https://developer.wordpress.com/docs/api/

    To post to any site on WordPress.com using our API you’d need to authorise as a WordPress.com username account that has the necessary publishing permissions on the site.

    If you’re trying to post to your self-hosted site using the API, you’re not using the WordPress.com REST API, but the WordPress REST API, documented at https://developer.wordpress.org/rest-api/

    Please ask in the WordPress.org forums for help using that API:

    https://wordpress.org/support/forums/

  • Unknown's avatar

    Honestly, we are confused. We are trying to use an API that uses wp.com but our site is on .org.

    We use the API to post to WP in general and it states: “Sorry, you are not allowed to create posts as this user.”

    We are thinking that if we take the wp.com site and redirect it to the shoppevero.com which is self-hosted on .org, then the API will forward to allow us to post.

    We are trying to figure out how to make the wp.com mesh to the wp.org.

    Can you shed light on how they intermingle please?

    Thank you so much!

  • Going through the WordPress.com API may be adding a separate bridge that’s no longer necessary.

    WordPress.org introduced its own API a few versions back: https://developer.wordpress.org/rest-api/

    So, you should be able to go directly from the ShopStyleCollective API to the WordPress REST API, without adding the WordPress.com JSON API in the middle.

    To clear up any confusion, WordPress.com and WordPress.org are two different entities: https://support.wordpress.com/com-vs-org/

    WordPress.org has complete documentation for self-hosted/installed versions of WordPress.org at https://wordpress.org/support/ and support at https://wordpress.org/support/forums/

  • Unknown's avatar

    Hello,

    Thank you for your response.

    We are not sure what you mean about adding JSON. We haven’t added anything. Shopstulecollective.com does it all automatically. They appear to be wanting to post to a wp.com website as they as for a wp.com address:

    Please enter your wordpress website (ex: example.wordpress.com)

    But our site is self-hosted on wp.org.

    We enter our domain shoppevero.com and we get the message: ‘Sorry, you are not allowed to create posts as this user.’ Despite we are admins.

    With that said, we have been researching with no luck at all for information or tutorials or videos to show how to get wp.com to post to self-hosted wp.org custom domain.

    There must be something wee need to do to connect wp.com to the wp.org site such as a transfer, redirect or map. We are not sure how to make them connect and mesh.

    We are not technical so bare with us but we do want to learn.

    Thank you again!!

  • Right, the problem is you’re trying to use the WordPress.com API for a self-hosted WordPress.org API.

    We’re recommending that you use the WordPress.org API instead since https://www.shoppevero.com/ is a self-hosted WordPress.org site.

    There’s no need to use the WordPress.com API, you can go straight to your site through the WordPress.org API. You’re currently trying to use the wrong API.

    To clear up any confusion, WordPress.com and WordPress.org are two different entities: https://support.wordpress.com/com-vs-org/

    WordPress.org has complete documentation for self-hosted/installed versions of WordPress.org at https://wordpress.org/support/ and support at https://wordpress.org/support/forums/

    And, you can find details on the WordPress.org API at https://developer.wordpress.org/rest-api/

  • Unknown's avatar

    Hello,

    I’m not sure we are explaining this clearly. We are end-users of a business’s API. Whether they choose to use wp.com or wp.org is not up to us.

    Our main site is wp.org. It appears the API uses wp.com.

    Our question is: can we set up a free wp.com blog to redirect to our main site on wp.org to make an API redirect to our main domain (wp.org) to make the business’s API work ?

    Thank you so much for your help on this. It is appreciated.

  • can we set up a free wp.com blog to redirect to our main site on wp.org to make an API redirect to our main domain (wp.org) to make the business’s API work ?

    That won’t work, no. If you use the API to post to a WordPress.com site, posts will be created on that site, not on your self-hosted site. Setting up a redirect won’t change that, as all a redirect does is send visitor traffic from one URL to the other. It won’t affect where the API posts to in any way.

    We enter our domain shoppevero.com and we get the message: ‘Sorry, you are not allowed to create posts as this user.’ Despite we are admins.

    Are you using your admin username for the site, or your WordPress.com login credentials? That site is connected to your WordPress.com account, so you might be able to post to it via the WordPress.com API, but then you’ll need to authenticate using the WordPress.com username that owns the Jetpack connection, i.e. shoppevero, and the password you use to log in here at WordPress.com.

    If there are other users on your site who also need to be able to post via the API, they’ll also need to create their own WordPress.com username accounts and connect their admin accounts on the site to WordPress.com via Jetpack, to authenticate in the same way.

  • The topic ‘API- user level permissions’ is closed to new replies.