The DeviceAtlas Device Detection API provides a way to detect devices
based on the HTTP headers. Using the headers, the API returns device
information such as screen width, screen height, is mobile, vendor, model
etc.
To get the most accurate results: 1- Pass the whole HTTP headers. 2-
Use the DeviceAtlas client-side-component and pass the result.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_data_version(self)
Get the device data (JSON file) version. |
source code
|
|
|
|
get_data_revision(self)
Get the device data (JSON file) revision. |
source code
|
|
|
|
get_data_creation_timestamp(self)
Get the device data (JSON file) creation timestamp. |
source code
|
|
|
|
get_properties(self,
user_agent_or_headers,
client_side_properties=None)
Get known properties from a User-Agent or HTTP headers optionally
merged with properties from the client side component. |
source code
|
|
|
|
|
|
|
|
|
|
| __get_properties_from_headers(self,
headers,
client_side_properties) |
source code
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|