Cannot Get DeviceID Working in API Call