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.
3442311The ID of the enterprise
ASCThe direction to sort results in. This can be either in alphabetical ascending
(ASC) or descending (DESC) order.
Value is one of ASC,DESC
10001000The maximum number of items to return per page.
JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioViiDefines 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 -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' } ] }
*/
});