A beta version of the new Box developer documentation site is launching soon! Updated Developer Guides, modern API Reference, and AI-powered search are on the way to help you build with Box faster. Stay tuned for more updates.
Retrieves information about an individual device pin.
2324234The ID of the device pin.
Returns information about a single device pin.
An unexpected client error.
curl -i -X GET "https://api.box.com/2.0/device_pinners/2324234" \
-H "authorization: Bearer <ACCESS_TOKEN>"await client.devicePinners.getDevicePinnerById(devicePinnerId);client.device_pinners.get_device_pinner_by_id(device_pinner_id)await client.DevicePinners.GetDevicePinnerByIdAsync(devicePinnerId: devicePinnerId);try await client.devicePinners.getDevicePinnerById(devicePinnerId: devicePinnerId)client.getDevicePinners().getDevicePinnerById(devicePinnerId)BoxDevicePin devicePin = new BoxDevicePin(api, id);
BoxDevicePin.Info devicePinInfo = devicePin.getInfo();device_pin_id = '1111'
device_pin = client.device_pinner(device_pin_id).get()
print(f'{pin.product_name} device for {pin.owned_by.name} is pinned')BoxDevicePin pin = await client.DevicePinManager.GetDevicePin(id: "11111");client.devicePins.get('11111')
.then(pin => {
/* pin -> {
type: 'device_pinner',
id: '11111',
owned_by:
{
type: 'user',
id: '22222',
name: 'Example User',
login: 'user@example.com'
},
product_name: 'iPad'
}
*/
});{
"id": "11446498",
"type": "device_pinner",
"owned_by": {
"id": "11446498",
"type": "user",
"login": "ceo@example.com",
"name": "Aaron Levie"
},
"product_name": "iPad"
}