Need help? Check out our Support site, then


How to authorize iOS App to make new Posts, using the REST API?

  1. I want to implement a mechanism allowing an iOS App to create new Posts in my self-hosted WordPress site using JetPacks REST API.
    When I send a request to endpoint .../posta/new/ I get the response
    {"error":"unauthorized","message":"User cannot edit posts"}
    Creating an Application with Developer Resources, I get access to Client ID, Client Secret, etc..
    This is my problem: I do not understand how the redirect mechanism of OAuth is relevant and practically workable for my scenario - my smartphone App wants to create new Posts, but I, as the Resource Owner cannot sit waiting to authorize every request for creating a Post? Or am I supposed to create code in WordPress that automatically grants such requests - and if so, that would be a pretty poor security solution, right?
    I have read https://developer.wordpress.com/docs/oauth2/ but it does not seem to apply to my scenario.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.