Closed safetys123 closed 10 years ago
This probably has something to do with how we're signing multibyte characters.
How Can I sovle this problems
ÔÚ 2013-09-10 04:26:03£¬"John Bunting" notifications@github.com дµÀ£º
This probably has something to do with how we're signing multibyte characters.
¡ª Reply to this email directly or view it on GitHub.
You're actually all good on this - just using the API slightly wrong. You should be using the TextPost
class like so:
Blog blog = client.user().getBlogs().get(0); // select a blog
TextPost post = blog.newPost(TextPost.class);
post.setBody("body");
post.addTag("tags1");
post.addTag("tag2");
post.addTag("日本語");
post.save();
map.put("type", "text"); map.put("body", "body"); map.put("tags", "tags1, tag2, 日本語"); client.postCreate(client.user().getName(), map);
At this map, the body and the tags only accept english words ? if the body and tags contains other lanuage words, for example, Asia lanuage words,French lanuage words and Spanish lanuage, Run the above code, will appea a Exception. com.tumblr.jumblr.exceptions.JumblrException: Not Authorized You can try it.