Get device pin

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

Retrieves information about an individual device pin.

Request

application/json

Path Parameters

stringin pathrequired
2324234

The ID of the device pin

Response

application/jsonDevice Pinner

Returns information about a single device pin.

You can now try out some of our APIs live, right here in the documentation.
Log In

Request Example

cURL
curl -X GET https://api.box.com/2.0/device_pinners/2324234 \
     -H "Authorization: Bearer <ACCESS_TOKEN>"
.NET
BoxDevicePin pin = await client.DevicePinManager.GetDevicePin(id: "11111");
Java
BoxDevicePin devicePin = new BoxDevicePin(api, id);
BoxDevicePin.Info devicePinInfo = devicePin.getInfo();
Python
device_pin_id = '1111'
device_pin = client.device_pinner(device_pin_id).get()
print('{0} device for {1} is pinned'.format(pin.product_name, pin.owned_by.name))
Node
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'
        }
        */
    });

Response Example

{
  "id": 11446498,
  "type": "device_pinner",
  "owned_by": {
    "id": 11446498,
    "type": "user",
    "name": "Aaron Levie",
    "login": "ceo@example.com"
  },
  "product_name": "iPad",
  "created_at": "2012-12-12T10:53:43-08:00",
  "modified_at": "2012-12-12T10:53:43-08:00"
}