Skip to content

Instantly share code, notes, and snippets.

@xlbruce
Last active June 11, 2017 03:56
Show Gist options
  • Save xlbruce/798421278b777213e017883f0adbd71b to your computer and use it in GitHub Desktop.
Save xlbruce/798421278b777213e017883f0adbd71b to your computer and use it in GitHub Desktop.
Simple workflow description describing how to insert a new post using Blogger API v3.
Create a post flow:
1- Generate an access token:
//TODO search how to do this programmatically
2- Send a request to blogger with post content
URI: https://www.googleapis.com/blogger/v3/blogs/$blogId/posts
Header:
Content-Type: application/json
Autorization: Bearer /* Access token*/
Body:
{
"kind": "blogger#post",
"blog": {
"id": "$blogID"
},
"title": "A new post",
"content": "With <b>exciting</b> content..."
}
@ndowerid
Copy link

hi, can you make sample of this ? i've been searching whole weeks but nothing found .
i want to post article to blogger using javascrip blogger API.
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment