4.4.118 • Published 1 day ago

fiftyone.devicedetection.cloud v4.4.118

Weekly downloads
16
License
EUPL-1.2
Repository
github
Last release
1 day ago

51Degrees Node Device Detection Cloud

Developer Documentation

Introduction

This project contains 51Degrees Device Detection engines that can be used with the Pipeline API.

The Pipeline is a generic web request intelligence and data processing solution with the ability to add a range of 51Degrees and/or custom plug ins (Engines)

This package - fiftyone.devicedetection.cloud

The device detection cloud engine makes use of the 51Degrees cloud API. As such there is no data file to maintain, processing will always be performed using the latest data available. This package includes a builder used to build a pipeline for Cloud Device Detection engine.

This package requires the following additional packages:

  • fiftyone.devicedetection.shared - A Node.js module which contains shared functionality to build cloud and on-premise engines.

Installation

Using NPM call:

npm install fiftyone.devicedetection.cloud

Examples

  • configureFromFile.js - This example shows how to configure a pipeline from a configuration file using the pipelinebuilder's buildFromConfigurationFile method.
  • failureToMatch.js - This example shows how the hasValue function can help make sure that meaningful values are returned when checking properties returned from the device detection engine. It also illustrates how the "allowUnmatched" parameters can be used to alter these results.
  • gettingStarted.js - Getting started example of using the 51Degrees device detection 'Hash' algorithm to determine whether a given User-Agent corresponds to a mobile device or not.
  • metaData.js - This example shows how to get properties from a pipeline's processed flowData based on their metadata, the getProperties() method and also additional meta data properties on device detection data.
  • webIntegration.js - This example demonstrates the evidence.addFromRequest() method and client side JavaScript overrides by creating a web server, serving JavaScript created by the device detection engine and bundled together by a special JavaScript bundler engine. This JavaScript is then used on the client side to save a cookie so that when the device detection engine next processes the request (using the addFromRequest() method) it has a more accurate reading for properties set on the client side.

Tests

In this repository, there are tests for the examples. You will need to install jest to run them:

npm install jest --global

You will also need to install any required packages for the examples in the Examples section.

You need to obtain a 51Degrees cloud resource key from the 51Degrees Cloud Configurator and assign it to the environment variable RESOURCE_KEY in your test environment.

To run the tests, navigate to the module directory and execute:

npm test

4.4.118

1 day ago

4.4.117

2 days ago

4.4.116

3 days ago

4.4.115

5 days ago

4.4.114

10 days ago

4.4.113

13 days ago

4.4.112

16 days ago

4.4.111

20 days ago

4.4.110

22 days ago

4.4.109

22 days ago

4.4.108

27 days ago

4.4.107

28 days ago

4.4.105

1 month ago

4.4.106

1 month ago

4.4.104

1 month ago

4.4.102

2 months ago

4.4.103

2 months ago

4.4.101

2 months ago

4.4.100

2 months ago

4.4.99

2 months ago

4.4.98

2 months ago

4.4.97

2 months ago

4.4.96

2 months ago

4.4.95

3 months ago

4.4.94

3 months ago

4.4.93

3 months ago

4.4.92

4 months ago

4.4.91

4 months ago

4.4.90

4 months ago

4.4.89

5 months ago

4.4.88

5 months ago

4.4.83

6 months ago

4.4.82

6 months ago

4.4.81

6 months ago

4.4.80

6 months ago

4.4.87

5 months ago

4.4.86

6 months ago

4.4.85

6 months ago

4.4.84

6 months ago

4.4.76

6 months ago

4.4.75

7 months ago

4.4.74

7 months ago

4.4.73

7 months ago

4.4.79

6 months ago

4.4.78

6 months ago

4.4.77

6 months ago

4.4.69

8 months ago

4.4.68

8 months ago

4.4.67

8 months ago

4.4.72

7 months ago

4.4.71

7 months ago

4.4.70

7 months ago

4.4.61

9 months ago

4.4.60

9 months ago

4.4.65

8 months ago

4.4.64

9 months ago

4.4.63

9 months ago

4.4.62

9 months ago

4.4.66

8 months ago

4.4.50

9 months ago

4.4.54

9 months ago

4.4.53

9 months ago

4.4.52

9 months ago

4.4.51

9 months ago

4.4.58

9 months ago

4.4.57

9 months ago

4.4.56

9 months ago

4.4.55

9 months ago

4.4.59

9 months ago

4.4.43

9 months ago

4.4.47

9 months ago

4.4.46

9 months ago

4.4.45

9 months ago

4.4.44

9 months ago

4.4.49

9 months ago

4.4.48

9 months ago

4.4.21

10 months ago

4.4.20

10 months ago

4.4.25

10 months ago

4.4.24

10 months ago

4.4.23

10 months ago

4.4.22

10 months ago

4.4.29

10 months ago

4.4.28

10 months ago

4.4.27

10 months ago

4.4.26

10 months ago

4.4.18

11 months ago

4.4.17

11 months ago

4.4.16

11 months ago

4.4.19

10 months ago

4.4.42

9 months ago

4.4.41

9 months ago

4.4.40

9 months ago

4.4.32

10 months ago

4.4.31

10 months ago

4.4.30

10 months ago

4.4.36

10 months ago

4.4.35

10 months ago

4.4.34

10 months ago

4.4.33

10 months ago

4.4.39

9 months ago

4.4.38

9 months ago

4.4.37

10 months ago

4.4.14

1 year ago

4.4.15

1 year ago

4.4.13

1 year ago

4.4.12

1 year ago

4.4.11

2 years ago

4.4.9

2 years ago

4.4.8

2 years ago

4.4.6

2 years ago

4.4.10

2 years ago

4.4.5

2 years ago

4.4.4

2 years ago

4.4.2

2 years ago

4.4.1

2 years ago

4.4.0

2 years ago

4.3.12

2 years ago

4.3.9

2 years ago

4.3.8

2 years ago

4.3.11

2 years ago

4.3.5

3 years ago

4.3.7

2 years ago

4.3.3

3 years ago

4.3.2

3 years ago

4.3.1

3 years ago

4.3.0

3 years ago

4.2.3

3 years ago

4.2.2

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago