Have ideas to improve npm?Join in the discussion! »

    guestlist-js

    1.0.0 • Public • Published

    guestlist-js

    Guestlist.io JavaScript SDK

    Browser and Node.js compatible.

    Full API documentation here: https://api.guestlist.io/doc

    Build Status

    Install

    npm install guestlist-js
    

    Usage

    var client = require('guestlist-js')()
     
    client.setAccessToken(myAccessToken)
     
    client.getEvents({
      limit: 10
    }, function (err, events) {
      !err && console.log(err)
      console.log(events)
    })

    Documentation

    Users

    • authenticate(opts, cb)
    • getUser(opts, cb)
    • me(cb)
    • registerUser(data, cb)

    Accounts

    • createAccount(data, cb)
    • getAccount(accountId, cb)
    • getAccounts(opts, cb)
    • getMyAccounts(opts, cb)
    • inviteEmail(opts, cb)
    • modifyAccount(accountId, data, cb)

    Events

    • createEvent(data, cb)
    • createChildEvent(parentEventId, data, cb)
    • getEvent(eventId, cb)
    • getEvents(opts, cb)
    • modifyEvent(eventId, data, cb)

    Orders & RSVPs

    • getOrder(orderId, cb)
    • getOrders(opts, cb)
    • modifyOrder(orderId, data, cb)
    • submitOrder(data, cb)
    • submitPayment(orderId, data, cb)

    Install

    npm i guestlist-js

    DownloadsWeekly Downloads

    4

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar