google_api_blogger v0.1.0 GoogleApi.Blogger.V3.Api.Pages View Source
API calls for all endpoints tagged Pages.
Link to this section Summary
Functions
Delete a page by ID
Gets one blog page by ID
Retrieves the pages for a blog, optionally including non-LIVE statuses
Update a page. This method supports patch semantics
Publishes a draft page
Revert a published or scheduled page to draft state
Link to this section Functions
blogger_pages_delete(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Delete a page by ID.
Parameters
- connection (GoogleApi.Blogger.V3.Connection): Connection to server
- blog_id (String.t): The ID of the Blog.
- page_id (String.t): The ID of the Page.
opts (KeywordList): [optional] Optional parameters
- :alt (String.t): Data format for the response.
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :quotaUser (String.t): An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
- :userIp (String.t): Deprecated. Please use quotaUser instead.
Returns
{:ok, %{}} on success {:error, info} on failure
blogger_pages_get(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, GoogleApi.Blogger.V3.Model.Page.t()} | {:error, Tesla.Env.t()}
Gets one blog page by ID.
Parameters
- connection (GoogleApi.Blogger.V3.Connection): Connection to server
- blog_id (String.t): ID of the blog containing the page.
- page_id (String.t): The ID of the page to get.
opts (KeywordList): [optional] Optional parameters
- :alt (String.t): Data format for the response.
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :quotaUser (String.t): An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
- :userIp (String.t): Deprecated. Please use quotaUser instead.
- :view (String.t):
Returns
{:ok, %GoogleApi.Blogger.V3.Model.Page{}} on success {:error, info} on failure
blogger_pages_insert(Tesla.Env.client(), String.t(), keyword()) :: {:ok, GoogleApi.Blogger.V3.Model.Page.t()} | {:error, Tesla.Env.t()}
Add a page.
Parameters
- connection (GoogleApi.Blogger.V3.Connection): Connection to server
- blog_id (String.t): ID of the blog to add the page to.
opts (KeywordList): [optional] Optional parameters
- :alt (String.t): Data format for the response.
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :quotaUser (String.t): An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
- :userIp (String.t): Deprecated. Please use quotaUser instead.
- :isDraft (boolean()): Whether to create the page as a draft (default: false).
- :body (Page):
Returns
{:ok, %GoogleApi.Blogger.V3.Model.Page{}} on success {:error, info} on failure
blogger_pages_list(Tesla.Env.client(), String.t(), keyword()) :: {:ok, GoogleApi.Blogger.V3.Model.PageList.t()} | {:error, Tesla.Env.t()}
Retrieves the pages for a blog, optionally including non-LIVE statuses.
Parameters
- connection (GoogleApi.Blogger.V3.Connection): Connection to server
- blog_id (String.t): ID of the blog to fetch Pages from.
opts (KeywordList): [optional] Optional parameters
- :alt (String.t): Data format for the response.
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :quotaUser (String.t): An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
- :userIp (String.t): Deprecated. Please use quotaUser instead.
- :fetchBodies (boolean()): Whether to retrieve the Page bodies.
- :maxResults (integer()): Maximum number of Pages to fetch.
- :pageToken (String.t): Continuation token if the request is paged.
- :status ([String.t]):
- :view (String.t): Access level with which to view the returned result. Note that some fields require elevated access.
Returns
{:ok, %GoogleApi.Blogger.V3.Model.PageList{}} on success {:error, info} on failure
blogger_pages_patch(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, GoogleApi.Blogger.V3.Model.Page.t()} | {:error, Tesla.Env.t()}
Update a page. This method supports patch semantics.
Parameters
- connection (GoogleApi.Blogger.V3.Connection): Connection to server
- blog_id (String.t): The ID of the Blog.
- page_id (String.t): The ID of the Page.
opts (KeywordList): [optional] Optional parameters
- :alt (String.t): Data format for the response.
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :quotaUser (String.t): An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
- :userIp (String.t): Deprecated. Please use quotaUser instead.
- :publish (boolean()): Whether a publish action should be performed when the page is updated (default: false).
- :revert (boolean()): Whether a revert action should be performed when the page is updated (default: false).
- :body (Page):
Returns
{:ok, %GoogleApi.Blogger.V3.Model.Page{}} on success {:error, info} on failure
blogger_pages_publish(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, GoogleApi.Blogger.V3.Model.Page.t()} | {:error, Tesla.Env.t()}
Publishes a draft page.
Parameters
- connection (GoogleApi.Blogger.V3.Connection): Connection to server
- blog_id (String.t): The ID of the blog.
- page_id (String.t): The ID of the page.
opts (KeywordList): [optional] Optional parameters
- :alt (String.t): Data format for the response.
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :quotaUser (String.t): An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
- :userIp (String.t): Deprecated. Please use quotaUser instead.
Returns
{:ok, %GoogleApi.Blogger.V3.Model.Page{}} on success {:error, info} on failure
blogger_pages_revert(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, GoogleApi.Blogger.V3.Model.Page.t()} | {:error, Tesla.Env.t()}
Revert a published or scheduled page to draft state.
Parameters
- connection (GoogleApi.Blogger.V3.Connection): Connection to server
- blog_id (String.t): The ID of the blog.
- page_id (String.t): The ID of the page.
opts (KeywordList): [optional] Optional parameters
- :alt (String.t): Data format for the response.
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :quotaUser (String.t): An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
- :userIp (String.t): Deprecated. Please use quotaUser instead.
Returns
{:ok, %GoogleApi.Blogger.V3.Model.Page{}} on success {:error, info} on failure
blogger_pages_update(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, GoogleApi.Blogger.V3.Model.Page.t()} | {:error, Tesla.Env.t()}
Update a page.
Parameters
- connection (GoogleApi.Blogger.V3.Connection): Connection to server
- blog_id (String.t): The ID of the Blog.
- page_id (String.t): The ID of the Page.
opts (KeywordList): [optional] Optional parameters
- :alt (String.t): Data format for the response.
- :fields (String.t): Selector specifying which fields to include in a partial response.
- :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :oauth_token (String.t): OAuth 2.0 token for the current user.
- :prettyPrint (boolean()): Returns response with indentations and line breaks.
- :quotaUser (String.t): An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
- :userIp (String.t): Deprecated. Please use quotaUser instead.
- :publish (boolean()): Whether a publish action should be performed when the page is updated (default: false).
- :revert (boolean()): Whether a revert action should be performed when the page is updated (default: false).
- :body (Page):
Returns
{:ok, %GoogleApi.Blogger.V3.Model.Page{}} on success {:error, info} on failure