Skip to content

Commit

Permalink
replace "xxx" by "YOUR_APP_ID"
Browse files Browse the repository at this point in the history
  • Loading branch information
janthurau committed Nov 11, 2023
1 parent 33f3b42 commit 44c344b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ curl --location 'https://YOUR_APP_ID.collab.tiptap.cloud/api/documents/DOCUMENT_
**Note:** When using axios, you need to specify `responseType: arraybuffer` in the options of the request.

```typescript
const ydocUpdate = await axios.get('https://xxx.collab.tiptap.cloud/api/documents/somedoc?format=yjs', { responseType: 'arraybuffer' })
const ydocUpdate = await axios.get('https://YOUR_APP_ID.collab.tiptap.cloud/api/documents/somedoc?format=yjs', { responseType: 'arraybuffer' })
```

### Update Document
Expand Down Expand Up @@ -204,14 +204,14 @@ In order to copy a document, you can just use the GET endpoint and then create i

```typescript

const docUpdateAsBinaryResponse = await axios.get('https://xxx.collab.tiptap.cloud/api/documents/somedoc?format=yjs', {
const docUpdateAsBinaryResponse = await axios.get('https://YOUR_APP_ID.collab.tiptap.cloud/api/documents/somedoc?format=yjs', {
headers: {
'Authorization': 'your_token',
},
responseType: 'arraybuffer',
})

await axios.post('https://xxx.collab.tiptap.cloud/api/documents/somedoc-duplicated', docUpdateAsBinaryResponse.data, {
await axios.post('https://YOUR_APP_ID.collab.tiptap.cloud/api/documents/somedoc-duplicated', docUpdateAsBinaryResponse.data, {
headers: {
'Authorization': 'your_token',
},
Expand Down

0 comments on commit 44c344b

Please sign in to comment.