ユーザーの企業内のSlack統合マッピングのリストを取得します。
このエンドポイントを使用するには、管理者または共同管理者の役割が必要です。
12345
Box item ID, for which the mappings should be returned.
folder
Box item type, for which the mappings should be returned.
次の値に固定: folder
true
Whether the mapping has been manually created.
1000
1000
返す項目の1ページあたりの最大数。
JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii
結果が返される開始位置のマーカー。マーカーベースのページ割りを使用している場合に使用されます。
これを使用するには、usemarker
をtrue
に設定する必要があります。
12345
ID of the mapped item, for which the mapping should be returned.
channel
Mapped item type, for which the mapping should be returned.
次の値に固定: channel
Returns a collection of integration mappings.
クライアントエラーが原因で、サーバーはリクエストを処理できないか、処理しません。
統合マッピングが見つからなかった場合、not_found
エラーを返します。
予期しないクライアントエラー。
curl -X -L GET "https://api.box.com/2.0/integration_mappings/slack?partner_item_id=C987654321&box_item_id=123456789" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
await userClient.integrationMappings.getSlackIntegrationMapping();
user_client.integration_mappings.get_slack_integration_mapping()
await userClient.IntegrationMappings.GetSlackIntegrationMappingAsync();
const integrationMappings = await client.integrationMappings.getSlackIntegrationMappings();
console.log(`There are ${integrationMappings.entries.length} Slack integration mappings`);
{
"entries": [
{
"id": "12345",
"type": "integration_mapping",
"box_item": {
"etag": "1",
"id": "12345",
"type": "folder",
"name": "Contracts",
"sequence_id": "3"
},
"created_at": "2012-12-12T10:53:43-08:00",
"created_by": {
"id": "11446498",
"type": "user",
"login": "ceo@example.com",
"name": "Aaron Levie"
},
"integration_type": "slack",
"is_manually_created": true,
"modified_at": "2012-12-12T10:53:43-08:00",
"modified_by": {
"id": "11446498",
"type": "user",
"login": "ceo@example.com",
"name": "Aaron Levie"
},
"options": {
"is_access_management_disabled": true
},
"partner_item": {
"id": "C12378991223",
"slack_org_id": "E1234567",
"type": "channel"
}
}
],
"limit": 1000,
"next_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii"
}