Skip to content

Commit

Permalink
feat(PROS-209): mention eu on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lussn committed Jun 28, 2023
1 parent c9a1876 commit 129feb3
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ const { createClient } = require('@typeform/api-client')
const typeformAPI = createClient({ token: '<your token>' })
```

If your account is configured to store responses in the EU Data Center
you can pass the `apiBaseUrl` as `https://api.eu.typeform.com`.

```javascript
const typeformAPI = createClient(
{
token: '<your token>',
apiBaseUrl: 'https://api.eu.typeform.com'
}
)
```

3. Use any of the methods available in the [reference](#reference)

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

// If what you are trying to acces doesn't require a token, you can construct the client without any argument
// If what you are trying to access doesn't require a token, you can construct the client without any argument
const typeformAPI = createClient()
```

If your account is configured to store responses in the EU Data Center
you can pass the `apiBaseUrl` as `https://api.eu.typeform.com`.

```javascript
const typeformAPI = createClient(
{
token: '<your token>',
apiBaseUrl: 'https://api.eu.typeform.com'
}
)
```

Client returns the following properties:

- `forms`
Expand Down

0 comments on commit 129feb3

Please sign in to comment.