This file contains hidden or 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 hidden or 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 hidden or 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('[email protected]', ['document-uuid-is-here']); | |
}; | |
example(); |
This file contains hidden or 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: '[email protected]', document: 'document1-example-uuid-here' }, | |
{ user: '[email protected]', document: 'document2-example-uuid-here' }, | |
{ user: '[email protected]', document: 'document1-example-uuid-here' }, | |
{ user: '[email protected]', document: 'document2-example-uuid-here' }, |
This file contains hidden or 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: '[email protected]', document: 'document1-example-uuid-here' }, | |
{ user: '[email protected]', document: 'document2-example-uuid-here' }, | |
{ user: '[email protected]', document: 'document1-example-uuid-here' }, | |
{ user: '[email protected]', document: 'document2-example-uuid-here' }, |
This file contains hidden or 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('[email protected]', ['document-uuid-is-here']); | |
console.log('Consents:', consents); | |
}; | |
example(); |
This file contains hidden or 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(['[email protected]']); | |
}; | |
example(); |
This file contains hidden or 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(['[email protected]']); | |
console.log('Users:', users); | |
}; | |
example(); |
This file contains hidden or 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 hidden or 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