From 0a06e34c52f0dd828f89772de31f55e7ec57a0a2 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Sat, 21 Mar 2015 09:37:55 -0400 Subject: [PATCH] build docs --- index.html | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/index.html b/index.html index cdab18b..5b0288c 100644 --- a/index.html +++ b/index.html @@ -24,6 +24,8 @@ document.addEventListener("DOMContentLoaded", function(){hljs.initHighlightingOn
  • tag
  • +
  • user +
  • client
  • dogapi @@ -517,6 +519,41 @@ dogapi.tag.delete("host.name", function(err, results){ +
    +
    +

    user

    + +
    +

    invite(emails, callback)

    +
    +

    invite users via e-mail

    +

    Parameters:

    +
    +
    emails
    +

    an array of email addresses to send invites to

    +
    +
    callback
    +

    function(err, res)

    +
    +
    +
    +
    +
    var dogapi = require("dogapi");
    +var options = {
    +  api_key: "api_key",
    +  app_key: "app_key"
    +};
    +dogapi.initialize(options);
    +var emails = ["me@domain.com", "you@domain.com"];
    +dogapi.user.invite(emails, fuction(err, res){
    +  console.dir(res):
    +});
    +
    +
    +
    +

    client

    @@ -577,6 +614,7 @@ dogapi.client.request("GET", "/url/path", {}, function(err,

    initialize(options)

    +

    configure the dogapi client with your app/api keys

    Parameters:

    options