\r\n

51Degrees Device Detection Python  4.4

Device Detection services for 51Degrees Pipeline

cloud/nativemodellookup.py

This example shows how to use the 51Degrees Cloud service to lookup the details of a device based on a given 'native model name'. Native model name is a string of characters that are returned from a query to the device's OS. For more details on this, see the example below.

To run this example, you will need to create a resource key. The resource key is used as shorthand to store the particular set of properties you are interested in as well as any associated license keys that entitle you to increased request limits and/or paid-for properties.

You can create a resource key using the 51Degrees Configurator.

Example output:

1 This example finds the details of devices from the 'native model name'.
2 The native model name can be retrieved by code running on the device (For example, a mobile app).
3 For Android devices, see https://developer.android.com/reference/android/os/Build#MODEL
4 For iOS devices, see https://gist.github.com/soapyigu/c99e1f45553070726f14c1bb0a54053b#file-machinename-swift
5 ----------------------------------------
6 Which devices are associated with the native model name 'SC-03L'?
7  Samsung Galaxy S10 (SC-03L)