Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an xposts endpoint to REST API #202

Open
guarani opened this issue Nov 23, 2020 · 0 comments
Open

Add an xposts endpoint to REST API #202

guarani opened this issue Nov 23, 2020 · 0 comments

Comments

@guarani
Copy link

guarani commented Nov 23, 2020

Add an xposts endpoint to the REST API of sites that have the O2 plugin installed.

We are bringing xpost support to the Gutenberg editor in the WordPress mobile apps (see here for WPAndroid and here for WPiOS) but will not be able to support self-hosted sites that are not connected to WP.com via Jetpack.

This is because the endpoint we use is WP.com specific. If the O2 plugin can expose a REST API endpoint on sites where it is installed, we could add xpost support for all self-hosted sites that use the O2 plugin.

A possible workaround would be to use /?get-xpost-data (e.g. mysite.com/?get-xpost-data), which is an cookie-authenticated endpoint that returns xpost suggestions. While using this might be an alternative to constructing a new endpoint, it's not practical on mobile which uses a authentication bearer based token (instead of a cookie) to authenticate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant