Bug with getUsersBlogs API
-
There seems to be a bug with the getUsersBlogs call.
If I have more than one blog under my username, when I call .getUsersBlogs() off of one of my blogs domains, it returns all the blogs I have. While this is a good thing, the API seems to ignore which blog id I am passing it for a new post and only posts to the blog from the domain I’m calling the api on.i.e. if I have two blogs
myblog1.wordpress.com
myblog2.wordpress.comIf I use myblog1, it returns the following api url:
myblog1.wordpress.com/xmlrpc.php which lists both my blogs in the get getUsersBlogs call.However this is incorrect, because sending a new post api call to
myblog1.wordpress.com/xmlrpc.phpWill only post on myblog1.wordpress.com regardless if I pass it myblog2’s id in the xml.
I think the default behavior should be either
1) myblog1.wordpress.com/xmlrpc.php should only return the blog for this domain.2) myblog1.wordpress.com/xmlrpc.php should be able to handle postings to any of your blogs
3) instead of myblog1.wordpress.com/xmlrpc.php, maybe have a standard api (i..e wordpress.com/xmlrpc.php) where username and blog id defines which blog you post to.
In it’s current state it’s a pain.
-
Best bet would be to send this is via a feedback from your dashboard. This is a bit more advanced than what we normally cover here in the forums and best would be raised with staff directly.
Good luck,
-drmike
- The topic ‘Bug with getUsersBlogs API’ is closed to new replies.