在没有数据的情况下创建的新帖子 - http://yatsynych.blogspot.com/。对象 body_data 有问题?
我的来源:
function makeApiCallBlogger() {
gapi.client.setApiKey('AIzaSyDFnBwpKVqjMm9NJ4L0Up5Y_bYpsaJdC6I');
gapi.client.load('blogger', 'v3', function() {
var body_data = {
"kind": "blogger#post",
"blog": {
"id": "********"
},
"title": "A new post",
"content": "With <b>exciting</b> content..."
}
var request = gapi.client.blogger.posts.insert({
"blogId": '********',
"body": body_data});
request.execute(function(response) {
alert(response.toSource());
});
});
}