How to list my weblogs using TypePad Atom API
I am trying to access my weblogs using Typepad Atom API by using the root endpoints for weblogs -http://www.typepad.com/t/atom/weblog, but the response that I get is - The remote server returned an error: (409) conflict. How can I get the list of all my weblogs? I am using ASP.NET framework (C#) for WSSE authentication and is able to use all other functionalities like listing of categories, posting to a weblog but have consistently failed to list my weblogs. Kindly help....
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
The best answers from the company
-
You should be able to upload images using this
http://developer.typepad.com/apis/ato...
Alternatively you should be able to post data in a similar way to the main 'post' uri of your blog (as returned when you list the blogs).
The response from that will contain a <link rel="edit"> get the href from that and retrieve it as a feed. The <link rel="self"> in that should give you the url to the raw image.
Never let it be said that Atom Pub is an efficient protocol :)
The company says
this answers the question
-
Is there any way you can get me the full text of the request being made by your library?
This request works for me using the Perl XML::Atom::Client library so I'd love to be able to see the difference between your request and mine.
Feel free to mail me at swistow@sixapart.com
The company and 2 other people say
this answers the question
-
Inappropriate?Hmm, that's a bit odd.
Can you try testing with http://www.typepad.com/services/atom/... and see if that works instead? -
No, the following error is returned -
The remote server returned an error: (401) Unauthorized. -
Inappropriate?Is there any way you can get me the full text of the request being made by your library?
This request works for me using the Perl XML::Atom::Client library so I'd love to be able to see the difference between your request and mine.
Feel free to mail me at swistow@sixapart.com
The company and 2 other people say
this answers the question
-
I have sent you the full text of the code in use to the email mentioned in your reply -
After your reply that you are able to access the blogs through perl, I reviewed my code and found that one needs to pre-authenticate before sending the request for list of weblogs. I have changed the code accordingly and now I am able to access all my weblogs from both the url's i.e. http://www.typepad.com/services/atom/... and http://www.typepad.com/t/atom/weblog.
Thank you very form your kind support. -
thanks, Simon! :) -
Inappropriate?Is there any way to include images in a post that are not already uploaded to my folder at TypePad
I’m anxious
-
Inappropriate?You should be able to upload images using this
http://developer.typepad.com/apis/ato...
Alternatively you should be able to post data in a similar way to the main 'post' uri of your blog (as returned when you list the blogs).
The response from that will contain a <link rel="edit"> get the href from that and retrieve it as a feed. The <link rel="self"> in that should give you the url to the raw image.
Never let it be said that Atom Pub is an efficient protocol :)
The company says
this answers the question
-
Inappropriate?I am again stuck on a point. When I try to delete a post using the uri - http://www.typepad.com/t/atom/weblog/...=xxxx/post_id=xxxx, I am getting the following error -
the remote server returned an error 500 internal server error
In spite of this exception the post gets deleted successfully!!
The code block that I am using for the purpose is as as follows - (ASP.NET)
bool result = false;
try
{
string url = http://www.typepad.com/t/atom/weblog/...=xx/post_id=xxx;
WebRequest req = HttpWebRequest.Create(url);
req.Method = "DELETE";
AuthenticationManager.Register(new WSSEClient());
req.Credentials = new NetworkCredential(xxxx, xxxx);
using (HttpWebResponse res = (HttpWebResponse)req.GetResponse())
{
if (res.StatusCode == HttpStatusCode.OK)
result = true;
}
}
catch (Exception ex)
{
throw new ApplicationException("Failed to delete selected blog post.");
}
Kindly help
I’m frustrated
Loading Profile...



EMPLOYEE