TransWikia.com

Connect external web app to wordpress

WordPress Development Asked by user1528706 on December 31, 2021

We have a web app that will allow users to edit their videos; and add intros, outros, and watermarks. Once the user already done on their video. We need to provide an option to post or syndicate their video as a draft on their WordPress site.

Our plan is to create a WordPress plugin that the user needs to install on their WordPress site. But our problem are the following:

  1. How can we authenticate our web app to the user’s WordPress page?
  2. Looking int HTTP API most of the options are only for retrieving contents. Is there also a way to create pages?

One Answer

There's the XML RPC - the Remote Posting Protocol - that is already in use by WP.org Applications. What you're searching for is wp.newPost. The API is extensible.

The URL for the XML RPC is

http://example.com/xmlrpc.php

To send data to WP, use xmlrpc_encode_request() where the first argument would be wp.newPost and second one your arguments for the post.

Answered by kaiser on December 31, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP