Post To Blogger

Purpose

To publish a document from Writer to Blogger. Please make sure the Blogger account is linked with Writer.

Quick Reference

PropertyValue
MethodPOST
Request URLhttps://{zohoapis_domain}/writer/api/v1/documents/{document_id}/apps/blog/blogger/accounts/{account_id}/blogs/{blog_id}
ScopesZohoWriter.documentEditor.ALL
Rate LimitSee Writer API throttle limits

Parameters

Path Parameters

ParameterData TypeMandatory/OptionalDescription
document_idStringMandatorySpecify the unique id of the document to be published in Blogger.
account_idStringMandatorySpecify the unique id of your Blogger account.
blog_idStringMandatorySpecify the unique id of the blog in which the Writer document needs to be posted.

Body Parameters

ParameterData TypeMandatory/OptionalDescription
post_typeStringMandatoryChoose how the document needs to posted. The document can be saved as a draft or published directly.
Enter post_type = draft, if you want to save the blog as a draft.
Enter post_type = publish, if you want the document to be published directly.
titleString - max 255 charactersOptionalSpecify a title for the post.
schedule_timeLongOptionalSpecify the time (timestamp in milli seconds) to post the document in your Blogger account.
styleStringOptionalSpecify the style in which the document needs to be posted.
Enter style = inline, if you want to post the document with all inline styles.
Enter style = none, if you want the post the document without styles.
By default, the document will be posted with inline styles.

Notes

Sample Request

Copiedcurl "https://www.zohoapis.com/writer/api/v1/documents/{document_id}/apps/blog/blogger/accounts/{account_id}/blogs/{blog_id}"
-X POST
-H "Authorization: Zoho-oauthtoken xyz"

Sample Response

Copied{
  "blog_id": "11112222223333",
  "account_id": "33334445555556666",
  "post_type": "publish",
  "url": "http://zylker2.blogspot.com/2019/02/document-management.html"
}

Deluge Snippet

Copiedparam = Map();
param.put("post_type","publish");

response = invokeurl
[
	url :"https://www.zohoapis.com/writer/api/v1/documents/{document_id}/apps/blog/blogger/accounts/{account_id}/blogs/{blog_id}"
	type :POST
	parameters:param
	connection:"<connection_name>"
];
info response;