Loading...
Loading...
Publish posts to your Blogger blog and read your blogs / posts via the Blogger API v3. Use when the user mentions Blogger, blogspot, publishing a post to their blog, listing their blogs, or updating an existing Blogger post.
npx skill4agent add acedatacloud/skills bloggercurl + jq$GOOGLE_BLOGGER_TOKENAuthorization: Bearer $GOOGLE_BLOGGER_TOKENhttps://www.googleapis.com/blogger/v3{"error": {"code": ..., "message": ...}}401blogIdcurl -sS -H "Authorization: Bearer $GOOGLE_BLOGGER_TOKEN" \
"https://www.googleapis.com/blogger/v3/users/self/blogs" \
| jq '.items[] | {id, name, url}'?isDraft=false?isDraft=trueurlBLOG_ID="1234567890"
jq -n --arg t "My title" --arg c "<p>HTML content of the post…</p>" \
'{kind:"blogger#post", title:$t, content:$c, labels:["ai","video"]}' \
| curl -sS -X POST \
"https://www.googleapis.com/blogger/v3/blogs/$BLOG_ID/posts/?isDraft=false" \
-H "Authorization: Bearer $GOOGLE_BLOGGER_TOKEN" \
-H "Content-Type: application/json" \
-d @- \
| jq '{id, url, status}'contentpandoc -f markdown -t htmlPOST /blogs/{blogId}/posts/{postId}/publishPUT /blogs/{blogId}/posts/{postId}curl -sS -H "Authorization: Bearer $GOOGLE_BLOGGER_TOKEN" \
"https://www.googleapis.com/blogger/v3/blogs/$BLOG_ID/posts?maxResults=20&status=live" \
| jq '.items[] | {id, title, url, published}'accessNotConfigured403 "Method doesn't allow unregistered callers"$GOOGLE_BLOGGER_TOKEN{"kind":"blogger#blogList"}itemscontent&pageToken=$PAGE_TOKEN.nextPageTokenpublish_artifactpublish_artifact(kind="article", channel="blogger", title="<title>", url="<the REAL returned URL>", status="delivered")status="failed"_shared/artifacts.md