tipe.js
v0.0.3
Published
Tipe client for JavaScript and Node.js
Downloads
4
Readme
tipe.js
Tipe client for JavaScript and Node.js
GraphQL
import { createClient } from 'tipe.js'
const tipe = createClient({
type: 'graphql',
apiKey: '...',
orgKey: '...'
})
const folderQuery = `
query API {
Folder() {
id
name
}
}
`
const folder = await tipe.query(folderQuery)
REST
import { createClient } from 'tipe.js'
const tipe = createClient({
type: 'rest',
apiKey: '...',
orgKey: '...'
})
const homeFolderId = 'f1aa3515-8078-445c-a497-50aff28523ef'
const folder = await tipe.folder(homeFolderId)