会社内のすべてのデバイスピンを取得します。
この呼び出しを行うにはユーザーに管理者権限が必要で、アプリケーションに「Enterpriseの管理」スコープが必要です。
3442311
会社のID
ASC
結果を並べ替える方向。アルファベットの昇順(ASC
)または降順(DESC
)のいずれかを指定できます。
次の値のいずれか1つ: ASC
,DESC
1000
1000
返す項目の1ページあたりの最大数。
JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii
結果が返される開始位置のマーカー。マーカーベースのページ割りを使用している場合に使用されます。
これを使用するには、usemarker
をtrue
に設定する必要があります。
指定した会社のデバイスピンのリストを返します。
予期しないクライアントエラー。
curl -X GET https://api.box.com/2.0/enterprises/3442311/device_pinners \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
BoxCollectionMarkerBased<BoxDevicePin> pins = await client.DevicePinManager
.GetEnterpriseDevicePinsAsync(enterpriseId: "12345");
Iterable<BoxDevicePin.Info> enterpriseDevicePins = BoxDevicePin.getEnterpriceDevicePins(api, id);
for (BoxDevicePin.Info devicePin : enterpriseDevicePins) {
// Do something with the device pin.
}
device_pins = client.device_pinners()
for pin in device_pins:
print('Pinned {0} device for {1}'.format(pin.product_name, pin.owned_by.name))
client.devicePins.getAll()
.then(pins => {
/* pins -> {
entries:
[ { type: 'device_pinner',
id: '11111',
owned_by:
{ type: 'user',
id: '22222',
name: 'Example User',
login: 'user@example.com' },
product_name: 'iPad' },
{ type: 'device_pinner',
id: '11112',
owned_by:
{ type: 'user',
id: '22222',
name: 'Example User',
login: 'user@example.com' },
product_name: 'iPhone' } ],
limit: 100,
order: [ { by: 'id', direction: 'ASC' } ] }
*/
});