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
{{ message }}
This repository was archived by the owner on May 13, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/core-concepts/api-calls-anatomy/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ A `Residence List` call returns a list of countries and 2-letter country codes,
64
64
65
65
The request data for this call is as below:
66
66
67
-
```ts
67
+
```ts showLineNumbers
68
68
{
69
69
residence_list: 1; // Api Call Method Name
70
70
passthrough?:object; // Optional
@@ -96,7 +96,7 @@ When you get the response for the call, there will be a `Field` with the same na
96
96
97
97
The response for the `Residence List` call:
98
98
99
-
```js
99
+
```js showLineNumbers
100
100
{
101
101
echo_req: {
102
102
req_id:1,
@@ -173,7 +173,7 @@ This `Field` contains the exact `Request Data` you sent to the server.
173
173
174
174
This `Field` helps you determine which `message` data you're getting on the message event of the WebSocket connection. For example, your `onmessage` event handler for your WebSocket connection in `JavaScript` would be:
Copy file name to clipboardExpand all lines: docs/core-concepts/authorization-authentication/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ Once a user signs up/logs in, they will be redirected to the URL that you entere
71
71
72
72
The query parameters in the redirect URL are the user's accounts and their related session tokens. You can map the query parameters to an array using the following approach:
73
73
74
-
```js
74
+
```js showLineNumbers
75
75
constuser_accounts= [
76
76
{
77
77
account:'cr799393',
@@ -88,15 +88,15 @@ const user_accounts = [
88
88
89
89
To authorise the user based on the user's **selected** account, call the [authorize](https://api.deriv.com/api-explorer#authorize) API call with the user's **selected** account **session token**:
90
90
91
-
```js
91
+
```js showLineNumbers
92
92
{
93
93
"authorize":"a1-f7pnteezo4jzhpxclctizt27hyeot"
94
94
}
95
95
```
96
96
97
97
The response for the `authorize` call would be an object as below:
@@ -78,7 +78,7 @@ Our WebSocket server provides [ping/pong](/api-explorer#ping) functionality. Let
78
78
The `send` function on the WebSocket connection, only receives `string`, `ArrayBuffer`, `Blob`, `TypedArray` and `DataView`. You can read more about them on [MDN](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send). This means, if we want to send an `object`, we have to stringify it with `JSON.stringify` first.
0 commit comments