Question about available XMLRPC parameters

124 views
Skip to first unread message

jusung Kye

unread,
Dec 15, 2011, 7:37:33 PM12/15/11
to TypePad Developers Network
My programmers have run into a roadblock and we could really use your
help. If you don't have this information maybe you could lead us to
someone that does.

The things we are trying to do right now are the following.

Categories
Create categories for a new post created in Blogsy.
Create categories for a previously published post loaded into Blogsy
to edit and update.
Fetch categories associated with a previously published post.

Tags
Create tags for a new post created in Blogsy.
Create tags for a previously published post loaded into Blogsy to edit
and update.
Fetch tags associated with a previously published post.

Date
Set date - (past, present or future) for a new post.
Change date - (past, present or future) for a previously published
post.

We are using the XML-RPC protocol(Endpoint : http://www.typepad.com/t/api)
and need to know what parameters TypePad supports for each method.
We've researched the TypePad support forums but haven't found any
documentation. We tried the usual way for the XML-RPC protocol but the
parameters didn't work.

We would love to get a the parameters for all the methods TypePad
supports but if that document is not readily available then can we at
least get the parameters for the following method?
"metaWeblog.newPost",

"metaWeblog.editPost",

"mt.setPostCategories",

"mt.getPostCategories",

Thanks,

Lance

Sean Choe

unread,
Dec 16, 2011, 4:51:05 AM12/16/11
to typepad-d...@googlegroups.com, la...@fomola.com, jus...@fomola.com
Hi,  I'm Sean, a developer working on Blogsy with Jusung and Lance.

We figured everything in the post below out, but couldn't find the parameter for post status(draft).

We're using XML-RPC API, and when we fetch the posts data there's no information about draft setting.

Doesn't TypePad have setting draft function on XML-RPC API?

Thanks!

- Sean

Satoshi Tanimoto

unread,
Dec 16, 2011, 3:47:55 AM12/16/11
to TypePad Developers Network, jusung Kye
Hi,

Sorry about the lack of documentation. Here's the list of supported methods.

blogger.newPost
blogger.editPost
blogger.getRecentPosts
blogger.getUsersBlogs
blogger.getUserInfo
blogger.deletePost
metaWeblog.getPost(entry_id, username, password)
metaWeblog.newPost(blog_id, username, password, item, publish)
metaWeblog.editPost(entry_id, username, password, item, publish)
metaWeblog.getRecentPosts(blog_id, username, password, number)
metaWeblog.newMediaObject(blog_id, username, password, file)
mt.getCategoryList(blog_id, username, password)
mt.setPostCategories(entry_id, username, password, categories)
mt.getPostCategories(entry_id, username, password)
mt.getTrackbackPings(entry_id)
mt.supportedTextFilters
mt.getRecentPostTitles(blog_id, username, password, number)
mt.publishPost(entry_id, username, password)
wp.newPage(blog_id, username, password, page, publish)
wp.editPage(blog_id, entry_id, username, password, page, publish)
wp.deletePage(blog_id, username, password, entry_id)
wp.getPage(blog_id, entry_id, username, password)
wp.getPages(blog_id, username, password)

I'm attaching sample xml files so you can test with your credentials
like the following command. (Please replace BLOG_ID, ENTRY_ID, EMAIL,
and PASSWORD in the files with yours)

$ curl -H 'Content-Type: text/xml' -d @metaWeblog.newPost.xml
http://www.typepad.com/t/api
<?xml version="1.0"
encoding="utf-8"?><methodResponse><params><param><value><string>6a01156f94199c970b01675ed4841b970b</string></value></param></params></methodResponse>

Hope this helps.

Regards,

Satoshi Tanimoto

> --
> You received this message because you are subscribed to the TypePad Developers Network.
> To post to this group, send email to typepad-d...@googlegroups.com
> To unsubscribe from this group, send email to typepad-dev-net...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/typepad-dev-network?hl=en

metaWeblog.editPost.xml
metaWeblog.newPost.xml
mt.getPostCategories.xml
mt.setPostCategories.xml
mt.supportedMethods.xml

jusung Kye

unread,
Dec 16, 2011, 4:16:00 AM12/16/11
to Satoshi Tanimoto, TypePad Developers Network
Hi Satoshi
Thanks for reply. Your reply would be great helpful to me.

I have one more question.
Can I set category when I use metaWeblog.newPost method?
I mean when I make struct for xmlrpc newpost request like below I have to set item.

metaWeblog.newPost(blog_id, username, password, item, publish)

Currently I am using below parameters for newPost method.
title, categories, dateCreated, mt_keywords, description, mt_allow_comments.

Every parameters works fine except "categories"

I wonder this "categories" parameter is correct for this request? 
I have ever tried with "category" but It didn't work either.

I need to know about this.
If you have any ideas please tell me.

Regards
Jusung,

Satoshi Tanimoto

unread,
Dec 16, 2011, 4:28:52 AM12/16/11
to jusung Kye, TypePad Developers Network
Hi Jusung,

Unfortunately setting categories in the newPost method is not
currently supported. Instead you need to use mt.setPostCategories
method.

Regards,

Satoshi

Kye jusung

unread,
Dec 16, 2011, 4:53:01 AM12/16/11
to Satoshi Tanimoto, TypePad Developers Network
Hii satoshi,

Thanks OK. I'm gonna use mt.setPostCategories method.

How about draft? Can I set post status as draft in newpost method?

Regards,
Jusung

Sent from my iPhone

Satoshi Tanimoto

unread,
Dec 16, 2011, 5:02:51 AM12/16/11
to Kye jusung, TypePad Developers Network
Hi,

2011/12/16 Kye jusung <kyej...@gmail.com>:


> How about draft? Can I set post status as draft in newpost method?

Yes, you can. :)

metaWeblog.newPost(blog_id, username, password, item, publish)

"publish" is a boolean parameter. If it's set to true, a post will be
published, otherwise a post will be created as draft. Please see also
metaWeblog.newPost.xml.

Regards,

Satoshi

Reply all
Reply to author
Forward
0 new messages