Skip to content

Commit d9d56c5

Browse files
authored
feat(PROS-209): add EU Data Center instructions in docs
2 parents c9a1876 + 129feb3 commit d9d56c5

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ const { createClient } = require('@typeform/api-client')
5353
const typeformAPI = createClient({ token: '<your token>' })
5454
```
5555

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+
5668
3. Use any of the methods available in the [reference](#reference)
5769

5870
```javascript
@@ -72,10 +84,22 @@ typeformAPI.forms.list().then((response) => {
7284
```javascript
7385
const typeformClient = createClient({ token: '<your token>' })
7486

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
7688
const typeformAPI = createClient()
7789
```
7890

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+
79103
Client returns the following properties:
80104

81105
- `forms`

0 commit comments

Comments
 (0)