\r\n

51Degrees Device Detection Python  4.4

Device Detection services for 51Degrees Pipeline

examples.gettingstarted Namespace Reference

string  data_file = "../fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/cxx/device-detection-data/51Degrees-LiteV4.1.hash"
string  resource_key = "!!YOUR_RESOURCE_KEY!!"
 pipeline = DeviceDetectionPipelineBuilder(data_file_path = data_file, licence_keys = "", performance_profile = 'MaxPerformance', auto_update=False).build()
 flowdata1 = pipeline.create_flowdata()
string  desktop_ua = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"  flowdata2 = pipeline.create_flowdata() string  iphone_ua = "Mozilla/5.0 (iPhone; CPU iPhone OS 11_2 like Mac OS X) AppleWebKit/604.4.7 (KHTML, like Gecko) Mobile/15C114"

Variable Documentation

◆ data_file

string examples.gettingstarted.data_file = "../fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/cxx/device-detection-data/51Degrees-LiteV4.1.hash"

◆ desktop_ua

string examples.gettingstarted.desktop_ua = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"

◆ flowdata1

examples.gettingstarted.flowdata1 = pipeline.create_flowdata()

◆ flowdata2

examples.gettingstarted.flowdata2 = pipeline.create_flowdata()

◆ iphone_ua

string examples.gettingstarted.iphone_ua = "Mozilla/5.0 (iPhone; CPU iPhone OS 11_2 like Mac OS X) AppleWebKit/604.4.7 (KHTML, like Gecko) Mobile/15C114"

◆ pipeline

examples.gettingstarted.pipeline = DeviceDetectionPipelineBuilder(data_file_path = data_file, licence_keys = "", performance_profile = 'MaxPerformance', auto_update=False).build()

◆ resource_key

string examples.gettingstarted.resource_key = "!!YOUR_RESOURCE_KEY!!"
On This Page