Skip to content

Commit fa17f81

Browse files
committed
- fixed formatting
1 parent cd0da83 commit fa17f81

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

documentation/api.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ The library provides several attributes, methods, and objects to simplify the us
3939

4040
**Configuration Properties**:
4141

42-
**{string} activityEndpoint**: The end-point of the API to send activities.
42+
{string} **activityEndpoint**: The end-point of the API to send activities.
4343

44-
**{string} apiKey**: The API-key to be used (mandatory).
44+
{string} **apiKey**: The API-key to be used (mandatory).
4545

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.
4747

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).
4949

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.
5151

52-
**{string} url**: The url of the API.
52+
{string} **url**: The url of the API.
5353

5454
**Example Usage**:
5555
```javascript
@@ -64,7 +64,7 @@ The library provides several attributes, methods, and objects to simplify the us
6464

6565
**Parameters**:
6666

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.
6868

6969
**Example Usage**:
7070
```javascript
@@ -81,17 +81,17 @@ The library provides several attributes, methods, and objects to simplify the us
8181

8282
**Parameters**:
8383

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).
8585

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.
8787

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.
8989

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').
9191

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.
9393

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.
9595

9696
**Example Usage**:
9797
```javascript
@@ -110,13 +110,13 @@ The library provides several attributes, methods, and objects to simplify the us
110110

111111
**Parameters**:
112112

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).
114114

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.
116116

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.
118118

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.
120120

121121
**Example Usage**:
122122
```javascript

0 commit comments

Comments
 (0)