This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const token = 'gb_sbox_....'; // Actual user's API key | |
const url = `wss://ws.staging.gethealthie.com/subscriptions?token=${token}`; | |
const sub = useGQLSubscription({ url }); | |
const NOTE_ADDED_SUBSCRIPTION = ` | |
subscription ($conversationId: String) { | |
noteAddedSubscription(conversationId: $conversationId) { | |
id | |
content | |
__typename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const exampleAlerts = [ | |
{ | |
code: 'invalid-api-key', | |
message: 'Your Mailgun API key is invalid', | |
level: 'error', | |
resolved: false, | |
app: 'my-app', | |
app_environment: 'staging', | |
service_slug: 'email', | |
service_provider: 'mailgun', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const useDocty = require('@usedocty/node'); | |
const Docty = useDocty('{{API_KEY}}'); | |
const example = async () => { | |
await Docty.Consents.remove('john.doe@example.com', ['document-uuid-is-here']); | |
}; | |
example(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const useDocty = require('@usedocty/node'); | |
const Docty = useDocty('{{API_KEY}}'); | |
const example = async () => { | |
await Docty.Consents.remove([ | |
{ user: 'john.doe@example.com', document: 'document1-example-uuid-here' }, | |
{ user: 'john.doe@example.com', document: 'document2-example-uuid-here' }, | |
{ user: 'another.user@example.com', document: 'document1-example-uuid-here' }, | |
{ user: 'another.user@example.com', document: 'document2-example-uuid-here' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const useDocty = require('@usedocty/node'); | |
const Docty = useDocty('{{API_KEY}}'); | |
const example = async () => { | |
const consents = await Docty.Consents.add([ | |
{ user: 'john.doe@example.com', document: 'document1-example-uuid-here' }, | |
{ user: 'john.doe@example.com', document: 'document2-example-uuid-here' }, | |
{ user: 'another.user@example.com', document: 'document1-example-uuid-here' }, | |
{ user: 'another.user@example.com', document: 'document2-example-uuid-here' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const useDocty = require('@usedocty/node'); | |
const Docty = useDocty('{{API_KEY}}'); | |
const example = async () => { | |
const consents = await Docty.Consents.add('john.doe@example.com', ['document-uuid-is-here']); | |
console.log('Consents:', consents); | |
}; | |
example(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const useDocty = require('@usedocty/node'); | |
const Docty = useDocty('{{API_KEY}}'); | |
const example = async () => { | |
await Docty.Users.remove(['john.doe@example.com']); | |
}; | |
example(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const useDocty = require('@usedocty/node'); | |
const Docty = useDocty('{{API_KEY}}'); | |
const example = async () => { | |
const users = await Docty.Users.add(['john.doe@example.com']); | |
console.log('Users:', users); | |
}; | |
example(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const useDocty = require('@usedocty/node'); | |
const Docty = useDocty('{{API_KEY}}'); | |
const example = async () => { | |
const documents = await Docty.Documents.get('document-uuid-is-here'); | |
console.log('Document:', document); | |
}; | |
example(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const useDocty = require('@usedocty/node'); | |
const Docty = useDocty('{{API_KEY}}'); | |
const example = async () => { | |
const documents = await Docty.Documents.list(); | |
console.log('Documents:', documents); | |
}; | |
example(); |
NewerOlder