Retrieves all the device pins within an enterprise.
The user must have admin privileges, and the application needs the "manage enterprise" scope to make this call.
"3442311"
The ID of the enterprise
"ASC"
The direction to sort results in. This can be either in alphabetical ascending
(ASC
) or descending (DESC
) order.
Value is one of ASC
,DESC
1000
1000
The maximum number of items to return per page.
"JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii"
Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination.
This requires usemarker
to be set to true
.
Returns a list of device pins for a given enterprise.
An unexpected client error.
curl -i -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(f'Pinned {pin.product_name} device for {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' } ] }
*/
});
{
"entries": [
{
"id": "11446498",
"type": "device_pinner",
"owned_by": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"product_name": "iPad"
}
],
"limit": 200,
"next_marker": 3000,
"order": [
{
"by": "id",
"direction": "asc"
}
]
}