Method: accounts.lfpStores.list
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงร้านค้าของผู้ขายเป้าหมายที่ระบุโดยตัวกรองใน ListLfpStoresRequest
คำขอ HTTP
GET https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ พาร์ทเนอร์ LFP รูปแบบ: accounts/{account}
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
targetAccount |
string (int64 format)
ต้องระบุ รหัส Merchant Center ของผู้ขายที่จะแสดงร้านค้า
|
pageSize |
integer
ไม่บังคับ จํานวนทรัพยากร LfpStore สูงสุดที่ระบบจะแสดงสําหรับบัญชีที่ระบุ บริการจะแสดงผลน้อยกว่าค่านี้หากร้านค้าของบัญชีนั้นน้อยกว่า pageSize ค่าเริ่มต้นคือ 250 ค่าสูงสุดคือ 1, 000 หากระบุค่าที่สูงกว่าค่าสูงสุด pageSize จะมีค่าเริ่มต้นเป็นค่าสูงสุด
|
pageToken |
string
ไม่บังคับ โทเค็นหน้าเว็บที่ได้รับจากการเรียกใช้ ListLfpStoresRequest ก่อนหน้านี้ ระบุโทเค็นหน้าเว็บเพื่อดึงข้อมูลหน้าถัดไป เมื่อแบ่งหน้าเว็บ พารามิเตอร์อื่นๆ ทั้งหมดที่ระบุให้กับ ListLfpStoresRequest ต้องตรงกับการเรียกที่ให้โทเค็นหน้าเว็บ โทเค็นที่แสดงผลเป็น nextPageToken ในการตอบกลับคําขอก่อนหน้า
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
ข้อความตอบกลับสําหรับเมธอด lfpStores.list
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"lfpStores": [
{
object (LfpStore )
}
],
"nextPageToken": string
} |
ช่อง |
lfpStores[] |
object (LfpStore )
ร้านค้าจากผู้ขายที่ระบุ
|
nextPageToken |
string
โทเค็น ซึ่งสามารถส่งเป็น pageToken เพื่อเรียกข้อมูลหน้าถัดไป หากละเว้นช่องนี้ จะไม่มีหน้าถัดไป
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/content
ดูข้อมูลเพิ่มเติมได้ที่ OAuth 2.0 Overview
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-23 UTC
[null,null,["อัปเดตล่าสุด 2025-01-23 UTC"],[[["\u003cp\u003eLists stores for a target merchant using the \u003ccode\u003eListLfpStoresRequest\u003c/code\u003e filter.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the LFP partner and Merchant Center ID in the request.\u003c/p\u003e\n"],["\u003cp\u003eSupports pagination to retrieve large lists of stores.\u003c/p\u003e\n"],["\u003cp\u003eReturns an array of \u003ccode\u003eLfpStore\u003c/code\u003e objects containing store information.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],["This describes how to list a merchant's stores using an HTTP GET request to `https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores`. The `parent` path parameter specifies the account. Required query parameters include `targetAccount` for the merchant ID. Optional query parameters `pageSize` and `pageToken` control pagination. The empty request returns a JSON response with an array of `lfpStores` and an optional `nextPageToken` for pagination, all requiring OAuth scope `https://www.googleapis.com/auth/content`.\n"],null,["# Method: accounts.lfpStores.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListLfpStoresResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists the stores of the target merchant, specified by the filter in `ListLfpStoresRequest`.\n\n### HTTP request\n\n`GET https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------|\n| `parent` | `string` Required. The LFP partner. Format: `accounts/{account}` |\n\n### Query parameters\n\n| Parameters ||\n|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `targetAccount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The Merchant Center id of the merchant to list stores for. |\n| `pageSize` | `integer` Optional. The maximum number of `LfpStore` resources for the given account to return. The service returns fewer than this value if the number of stores for the given account is less than the `pageSize`. The default value is 250. The maximum value is 1000; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum. |\n| `pageToken` | `string` Optional. A page token, received from a previous `ListLfpStoresRequest` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListLfpStoresRequest` must match the call that provided the page token. The token returned as [nextPageToken](/merchant/api/reference/rest/lfp_v1beta/accounts.lfpStores/list#body.ListLfpStoresResponse.FIELDS.next_page_token) in the response to the previous request. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse message for the lfpStores.list method.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"lfpStores\": [ { object (/merchant/api/reference/rest/lfp_v1beta/accounts.lfpStores#LfpStore) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| `lfpStores[]` | `object (`[LfpStore](/merchant/api/reference/rest/lfp_v1beta/accounts.lfpStores#LfpStore)`)` The stores from the specified merchant. |\n| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]