0.0.3 • Published 6 years ago

tipe.js v0.0.3

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
6 years ago

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)