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
* @param sign {boolean|null} true if a signature should be added (needs the secret to be configured - not recommended in open systems), otherwise false (can be null or undefined)
13224
13315
* @param onReady {function|null} function to be executed after triggering the activity
* Sends an temporalData request to the Breinify backend.
13307
13428
*
13308
13429
* @param user {object} the user-information
13309
13430
* @param sign {boolean|null} true if a signature should be added (needs the secret to be configured - not recommended in open systems), otherwise false (can be null or undefined)
13310
13431
* @param onReady {function|null} function to be executed after triggering the temporalData request
@@ -79,6 +83,8 @@ This documentation is organized as following:
79
83
80
84
{string} **apiKey**: The API-key to be used (mandatory).
81
85
86
+
{string} **temporaldataEndpoint**: The end-point of the API to retrieve temporal-data results.
87
+
82
88
{string} **lookupEndpoint**: The end-point of the API to retrieve lookup results.
83
89
84
90
{string} **secret**: The secret attached to the API-key (should always be null utilizing this type of library).
@@ -129,7 +135,7 @@ This documentation is organized as following:
129
135
130
136
{boolean|null} **sign**: A boolean value specifying if the call should be signed, which is only available if the *secret* is configured. It is strongly advised not to use a signed call when utilizing this library.
131
137
132
-
{function|null} **onReady**: A function which is triggered after the activity was sent to the user. The function has the information sent as the first parameter.
138
+
{function|null} **onReady**: A function which is triggered after the activity was sent. The function has the retrieved answer as the first parameter.
133
139
134
140
**Example Usage**:
135
141
```javascript
@@ -145,6 +151,26 @@ This documentation is organized as following:
Retrieves temporal information about the passed user information.
156
+
157
+
**Parameters**:
158
+
159
+
{object} **user**: A plain object specifying the user information the temporal data should be retrieved for. More information about the structure can be found [here](./user.md).
160
+
161
+
{boolean|null} **sign**: A boolean value specifying if the call should be signed, which is only available if the *secret* is configured. It is strongly advised not to use a signed call when utilizing this library.
162
+
163
+
{function|null} **onReady**: A function which is triggered after the answer of the call was received. The function has the retrieved information as first parameter.
164
+
165
+
**Example Usage**:
166
+
```
167
+
Breinify.temporalData({}, false, function (data) {
0 commit comments