Hello Kevin,
Thanks for your time !
Even using a verbatim copy of your code yields the same error here.
So you must be right, there probably is an authorization problem.
What I do not understand then, is why I'm able to, for example, delete a tag on the last post using this code :
Post lastPost = myBlog.posts().get(0);
lastPost.removeTag("sometag");
try {
lastPost.save();
} catch (IOException e2) {
e2.printStackTrace();
}How come I can be authorized to delete a tag on an existing post but not save a new post ?
I went to
https://www.tumblr.com/oauth/register to get my consumer key and secret, identifying my application.
With the same Tumblr account I then went to
https://api.tumblr.com/console/calls/user/info and provided my consumer key and secret in order to authorize the application for my account and obtain the oAuth token and token secret.
The first pair I pass when creating the client.
The second pair I pass using the setToken method.
Is there a method I can call on the client to verify my access rights, or some other way to understand what is going on ?
Best regards,
J.