You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/api.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,17 +39,17 @@ The library provides several attributes, methods, and objects to simplify the us
39
39
40
40
**Configuration Properties**:
41
41
42
-
**{string} activityEndpoint**: The end-point of the API to send activities.
42
+
{string} **activityEndpoint**: The end-point of the API to send activities.
43
43
44
-
**{string} apiKey**: The API-key to be used (mandatory).
44
+
{string} **apiKey**: The API-key to be used (mandatory).
45
45
46
-
**{string} lookupEndpoint**: The end-point of the API to retrieve lookup results.
46
+
{string} **lookupEndpoint**: The end-point of the API to retrieve lookup results.
47
47
48
-
**{string} secret**: The secret attached to the API-key (should always be null utilizing this type of library).
48
+
{string} **secret**: The secret attached to the API-key (should always be null utilizing this type of library).
49
49
50
-
**{number} timeout**: The maximum amount of time in milliseconds an API-call should take. If the API does not response after this amount of time, the call is cancelled.
50
+
{number} **timeout**: The maximum amount of time in milliseconds an API-call should take. If the API does not response after this amount of time, the call is cancelled.
51
51
52
-
**{string} url**: The url of the API.
52
+
{string} **url**: The url of the API.
53
53
54
54
**Example Usage**:
55
55
```javascript
@@ -64,7 +64,7 @@ The library provides several attributes, methods, and objects to simplify the us
64
64
65
65
**Parameters**:
66
66
67
-
**{object} config**: A plain object specifying the configuration properties to be set. If the validation of the configuration is activated, the passed values will be validated and an *Error* will be thrown, if the specified configuration property is invalid.
67
+
{object} **config**: A plain object specifying the configuration properties to be set. If the validation of the configuration is activated, the passed values will be validated and an *Error* will be thrown, if the specified configuration property is invalid.
68
68
69
69
**Example Usage**:
70
70
```javascript
@@ -81,17 +81,17 @@ The library provides several attributes, methods, and objects to simplify the us
81
81
82
82
**Parameters**:
83
83
84
-
**{object} user**: A plain object specifying the user information the activity belongs to. More information about the structure can be found [here](TODO).
84
+
{object} **user**: A plain object specifying the user information the activity belongs to. More information about the structure can be found [here](TODO).
85
85
86
-
**{string|null} type**: The type of the activity collected, i.e., one of *search*, *login*, *logout*, *addToCart*, *removeFromCart*, *checkOut*, *selectProduct*, or *other*. If not specified, the default *other* will be used.
86
+
{string|null} **type**: The type of the activity collected, i.e., one of *search*, *login*, *logout*, *addToCart*, *removeFromCart*, *checkOut*, *selectProduct*, or *other*. If not specified, the default *other* will be used.
87
87
88
-
**{string|null} category**: The category of the platform/service/products, i.e., one of *apparel*, *home*, *education*, *family*, *food*, *health*, *job*, *services*, or *other*. If not specified, the configured type (see *Breinify.config().category*) is used.
88
+
{string|null} **category**: The category of the platform/service/products, i.e., one of *apparel*, *home*, *education*, *family*, *food*, *health*, *job*, *services*, or *other*. If not specified, the configured type (see *Breinify.config().category*) is used.
89
89
90
-
**{string|null} description**: A string with further information about hte activity performed. Depending on the type of the activity, these are typically: the used search query (type === 'search'), the name of the selected product (type === 'selectProduct'), the item added or removed from the cart (type === 'addToCart' || type === 'removeFromCart'), and the amount of items or the value of items with currency (type === 'checkout').
90
+
{string|null} **description**: A string with further information about hte activity performed. Depending on the type of the activity, these are typically: the used search query (type === 'search'), the name of the selected product (type === 'selectProduct'), the item added or removed from the cart (type === 'addToCart' || type === 'removeFromCart'), and the amount of items or the value of items with currency (type === 'checkout').
91
91
92
-
**{boolean|null} sign**: A boolean value, specifying if the call should be sign, only available if the *secret* is configured. It is strongly advised, not to use a signed call when utilizing this library.
92
+
{boolean|null} **sign**: A boolean value, specifying if the call should be sign, only available if the *secret* is configured. It is strongly advised, not to use a signed call when utilizing this library.
93
93
94
-
**{function|null} onReady**: A function, which is triggered after the activity was sent to the user. The function has the information sent as first parameter.
94
+
{function|null} **onReady**: A function, which is triggered after the activity was sent to the user. The function has the information sent as first parameter.
95
95
96
96
**Example Usage**:
97
97
```javascript
@@ -110,13 +110,13 @@ The library provides several attributes, methods, and objects to simplify the us
110
110
111
111
**Parameters**:
112
112
113
-
**{object} user**: A plain object specifying the user information the information should be retrieved for. More information about the structure can be found [here](TODO).
113
+
{object} **user**: A plain object specifying the user information the information should be retrieved for. More information about the structure can be found [here](TODO).
114
114
115
-
**{[string]} dimensions**: An array containing the names of the dimensions to lookup.
115
+
{[string]} **dimensions**: An array containing the names of the dimensions to lookup.
116
116
117
-
**{boolean|null} sign**: A boolean value, specifying if the call should be sign, only available if the *secret* is configured. It is strongly advised, not to use a signed call when utilizing this library.
117
+
{boolean|null} **sign**: A boolean value, specifying if the call should be sign, only available if the *secret* is configured. It is strongly advised, not to use a signed call when utilizing this library.
118
118
119
-
**{function|null} onLookUp**: A function, which is triggered after the result of the lookup was retrieved. The function has the retrieved information as first parameter.
119
+
{function|null} **onLookUp**: A function, which is triggered after the result of the lookup was retrieved. The function has the retrieved information as first parameter.
0 commit comments