File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,18 @@ const { createClient } = require('@typeform/api-client')
53
53
const typeformAPI = createClient ({ token: ' <your token>' })
54
54
```
55
55
56
+ If your account is configured to store responses in the EU Data Center
57
+ you can pass the ` apiBaseUrl ` as ` https://api.eu.typeform.com ` .
58
+
59
+ ``` javascript
60
+ const typeformAPI = createClient (
61
+ {
62
+ token: ' <your token>' ,
63
+ apiBaseUrl: ' https://api.eu.typeform.com'
64
+ }
65
+ )
66
+ ```
67
+
56
68
3 . Use any of the methods available in the [ reference] ( #reference )
57
69
58
70
``` javascript
@@ -72,10 +84,22 @@ typeformAPI.forms.list().then((response) => {
72
84
``` javascript
73
85
const typeformClient = createClient ({ token: ' <your token>' })
74
86
75
- // If what you are trying to acces doesn't require a token, you can construct the client without any argument
87
+ // If what you are trying to access doesn't require a token, you can construct the client without any argument
76
88
const typeformAPI = createClient ()
77
89
```
78
90
91
+ If your account is configured to store responses in the EU Data Center
92
+ you can pass the ` apiBaseUrl ` as ` https://api.eu.typeform.com ` .
93
+
94
+ ``` javascript
95
+ const typeformAPI = createClient (
96
+ {
97
+ token: ' <your token>' ,
98
+ apiBaseUrl: ' https://api.eu.typeform.com'
99
+ }
100
+ )
101
+ ```
102
+
79
103
Client returns the following properties:
80
104
81
105
- ` forms `
You can’t perform that action at this time.
0 commit comments