You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version of google-api-java-client (e.g. 1.5.0-beta)? 1.12.0-beta Java environment (e.g. Java 6, Android 2.3, App Engine)? Java 6 SE (Desktop application) Describe the problem. I am trying to run the post insert example (my blog id is 5003102683969937524):
GoogleCredential gcred = new GoogleCredential()
.setAccessToken(ACCESS_TOKEN);
new GoogleCredential.Builder();
Blogger blogger
= new Blogger.Builder(HTTP_TRANSPORT, JSON_FACTORY,gcred)
.build();
// Construct a post to insert
Post content = new Post();
content.setTitle("A test post");
content.setContent("With \<code>HTML</code> content");
// The request action.
Insert postsInsertAction = blogger.posts()
.insert(TEST_BLOG_ID, content);
// Restrict the result content to just the data we need.
postsInsertAction.setFields("author/displayName,content,published,title,url");
// This step sends the request to the server.
Post post = postsInsertAction.execute();
and I get:
404 Not Found
{
"code" : 404,
"errors" : [ {
"domain" : "global",
"message" : "Not Found",
"reason" : "notFound"
} ],
"message" : "Not Found"
} How would you expect it to be fixed? No more 404.
Apologies for the difficulties you're having. The code example in question has been confirmed to be working as intended. Odds are the issue is something involving your specific code, such as your authentication. For more personalized support, I suggest asking a question on Stack Overflow using the [google-api-java-client] tag. More information on support can be found here: https://code.google.com/p/google-api-java-client/wiki/Support
From tshikats...@gmail.com on December 07, 2012 13:41:46
Version of google-api-java-client (e.g. 1.5.0-beta)? 1.12.0-beta Java environment (e.g. Java 6, Android 2.3, App Engine)? Java 6 SE (Desktop application) Describe the problem. I am trying to run the post insert example (my blog id is 5003102683969937524):
and I get:
404 Not Found
{
"code" : 404,
"errors" : [ {
"domain" : "global",
"message" : "Not Found",
"reason" : "notFound"
} ],
"message" : "Not Found"
} How would you expect it to be fixed? No more 404.
Original issue: http://code.google.com/p/google-api-java-client/issues/detail?id=678
The text was updated successfully, but these errors were encountered: