Box Developerドキュメント

Box Developerドキュメントの新しいベータ版サイトがまもなくリリースされる予定です。最新の開発者向けガイド、APIリファレンス、AI搭載の検索により、Boxを使用した迅速な開発をサポートします。更新情報については今しばらくお待ちください。

最新バージョン

デバイスピンを取得

get
https://api.box.com/2.0
/device_pinners/:device_pinner_id

このエンドポイントはバージョン2024.0です。引き続き使用するために 変更は必要ありません。詳細については、 **Box APIのバージョン管理**を参照してください。

個々のデバイスピンに関する情報を取得します。

リクエスト

bearer [ACCESS_TOKEN]
application/json

パスパラメータ

stringパス内必須
2324234

デバイスピンのID。

レスポンス

application/jsonDevice Pinner

単一のデバイスピンに関する情報を返します。

予期しないクライアントエラー。

get
デバイスピンを取得
このドキュメント内で一部のAPIを試せるようになりました。
ログイン

リクエストの例

Box SDKのバージョン戦略の詳細については、 **こちら**を確認してください。


cURL
curl -i -X GET "https://api.box.com/2.0/device_pinners/2324234" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.devicePinners.getDevicePinnerById(devicePinnerId);
Python v10
client.device_pinners.get_device_pinner_by_id(device_pinner_id)
.NET v10
await client.DevicePinners.GetDevicePinnerByIdAsync(devicePinnerId: devicePinnerId);
Swift v10
try await client.devicePinners.getDevicePinnerById(devicePinnerId: devicePinnerId)
Java v10
client.getDevicePinners().getDevicePinnerById(devicePinnerId)
.NET v6
await client.DevicePinners.GetDevicePinnerByIdAsync(devicePinnerId: devicePinnerId);
Node v4
await client.devicePinners.getDevicePinnerById(devicePinnerId);

レスポンスの例

{
  "id": "11446498",
  "type": "device_pinner",
  "owned_by": {
    "id": "11446498",
    "type": "user",
    "login": "ceo@example.com",
    "name": "Aaron Levie"
  },
  "product_name": "iPad"
}