Method: accounts.locations.localPosts.list
ビジネスに関連付けられたローカル投稿のリストを返します。
HTTP リクエスト
GET https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/localPosts
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
ローカル投稿を一覧表示するビジネスの名前です。
|
クエリ パラメータ
パラメータ |
pageSize |
integer
1 ページあたりで返すローカル投稿数です。デフォルトは 20 です。最小値は 1、最大ページサイズは 100 です。
|
pageToken |
string
指定すると、ローカル投稿の次のページが返されます。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
localPosts.list に対するレスポンス メッセージ
JSON 表現 |
{
"localPosts": [
{
object (LocalPost )
}
],
"nextPageToken": string
} |
フィールド |
localPosts[] |
object (LocalPost )
返されるローカル投稿のリストです。
|
nextPageToken |
string
リクエストしたページサイズを上回る数のローカル投稿がある場合、このフィールドには、後続の localPosts.list の呼び出しでローカル投稿の次のページを取得するためのトークンが入力されます。
|
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
詳しくは、OAuth 2.0 の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-29 UTC。
[null,null,["最終更新日 2024-08-29 UTC。"],[[["This endpoint retrieves a list of local posts associated with a specific location using an HTTP GET request."],["It supports pagination with `pageSize` and `pageToken` query parameters, allowing control over the number of posts returned and retrieval of subsequent pages."],["The response includes an array of `LocalPost` objects and a `nextPageToken` for accessing further results if available."],["Authorization is required with specific OAuth scopes such as `https://www.googleapis.com/auth/plus.business.manage` or `https://www.googleapis.com/auth/business.manage`."]]],["This describes how to retrieve local posts associated with a specific location. A `GET` request is sent to the specified URL, including the location in the `parent` path parameter. Optional `pageSize` and `pageToken` query parameters allow for pagination. The request body must be empty. The successful response includes an array of `localPosts` objects, and a `nextPageToken` string for retrieving further results if more are available. Access requires specific authorization scopes.\n"]]