Can I use the Wordpress API to create posts on wordpress.com?

I know that the wordpress API can be used to publish posts on Wordpress blogs hosted on your own server / website. However, is it also possible to post on blogs hosted on wordpress.com using the api? If so, where can I find details such as URLs to which api requests need to be made, etc.?

Currently, I’m only interested in adding new posts to blogs hosted on wordpress.com and checking login information (so any function that will check the login information without changing anything, for example, a method that returns the number of blog posts, will be good).

I will use PHP and preferably use XML-RPC to execute API requests.

0
source share
2 answers

Yes, you can use the API. URL you need:http://<blogname>.wordpress.com/xmlrpc.php

I used the Windows Live Writer application to publish on my own wordpress.com blog, and during the setup phase this is the data I asked for.

Regarding the read-only call offer to test login, I am afraid that my knowledge of the API is very rusty, so I can only suggest looking at the API docs.

NTN

+3
source

hi look for http://codex.wordpress.org/XML-RPC_wp , where u can find u all want

have a dream day

+1

Source: https://habr.com/ru/post/1776459/


All Articles