Retrieves information about an individual device pin.
Returns information about a single device pin.
An unexpected client error.
curl -X GET https://api.box.com/2.0/device_pinners/2324234 \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
BoxDevicePin pin = await client.DevicePinManager.GetDevicePin(id: "11111");
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('{0} device for {1} is pinned'.format(pin.product_name, pin.owned_by.name))
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'
}
*/
});
client.devicePins.get(devicePinId: "11111", fields: ["product_name"]) { (result: Result<DevicePin, BoxSDKError>) in
guard case let .success(devicePin) = result else {
print("Error retrieving device pin information")
return
}
print("Device Pin for \(devicePin.productName) was created at \(devicePin.createdAt)")
}