Visual Basic example program using the Tortuga Movable Type ActiveX Component to get the categories to which a specific post is assigned.
The Tortuga Beta ActiveX can be downloaded from
Tortuga ActiveX
The download contains an ActiveX DLL that needs to be registered using regsvr32.exe. You may then import the "Tortuga ActiveX" into your VB project.
The DLL contains objects for RSS, Atom, Blogger 2.0, Blogger 1.0, MetaWeblog, Technorati, Yahoo! Site Explorer, and Web Search.
Tortuga Components Home
' Use the Blogger 1.0 API to get the Blog ID
Dim b1 As New Blogger1
b1.Login = "admin"
b1.Password = "***"
b1.ServiceUrl = "http://www.coolblog999.com/blog/xmlrpc.php"
b1.GetUsersBlogs
blogId = b1.GetBlogId(0)
blogName = b1.GetBlogName(0)
Dim mt As New MovableType
mt.Login = "admin"
mt.Password = "***"
mt.ServiceUrl = "http://www.coolblog999.com/blog/xmlrpc.php"
' Get the categories for a specific post ID.
postID = "4"
mt.GetPostCategories postID
' Display the category information for this post.
n = mt.NumPostCategories
For i = 0 To n - 1
List1.AddItem mt.GetPostCatName(i)
List1.AddItem mt.GetPostCatId(i)
' GetPostCatIsPrimary returns 1 if the category is the primary category. (otherwise 0)
List1.AddItem Str(mt.GetPostCatIsPrimary(i))
List1.AddItem "----"
Next