ユーザーの企業内のSlack統合マッピングのリストを取得します。
このエンドポイントを使用するには、管理者または共同管理者の役割が必要です。
"12345"
マッピングが返される、Box項目ID
"folder"
マッピングが返される、Box項目タイプ
次の値に固定: folder
true
マッピングが手動で作成されたかどうか
1000
1000
返す項目の1ページあたりの最大数。
"JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii"
結果が返される開始位置のマーカー。マーカーベースのページ割りを使用している場合に使用されます。
これを使用するには、usemarker
をtrue
に設定する必要があります。
"12345"
マッピングが返される、マッピングされた項目のID
"channel"
マッピングが返される、マッピングされた項目タイプ
次の値に固定: channel
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>" \
const integrationMappings = await client.integrationMappings.getSlackIntegrationMappings();
console.log(`There are ${integrationMappings.entries.length} Slack integration mappings`);
{
"entries": [
{
"id": "12345",
"integration_type": "slack",
"type": "integration_mapping",
"partner_item": {
"type": "channel",
"id": "C12378991223",
"slack_workspace_id": "T12352314",
"slack_org_id": "E1234567"
},
"box_item": {
"id": "12345",
"etag": "1",
"type": "folder",
"name": "Contracts",
"sequence_id": "3"
},
"is_manually_created": true,
"options": {},
"created_by": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"modified_by": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"created_at": "2012-12-12T10:53:43-08:00",
"modified_at": "2012-12-12T10:53:43-08:00"
}
],
"limit": 1000,
"next_marker": 3000,
"prev_marker": 1000
}