Deployments: loading...

Software Development Kit

Getting Started

The hook.io client SDK makes it easy to interact with the hook.io platform from any service or third-party application. If you intend to quickly run a block of code in response to HTTP requests or as a scheduled task we recommend Creating a new hosted Microservice.

For programmatic access outside of the hook.io website, we recommend installing the hook.io-sdk.

Installation


  npm install -g hook.io-sdk
        

Official SDK Open-Source Repository

https://github.com/bigcompany/hook.io-sdk

Note: All SDKs are powered by the hook.io API, which you may access directly at anytime using standard HTTP requests.

Usage

Command Line Interface


  Usage: hook [options] [command]

  Commands:

    clone       clones existing hook
    config      manage SDK config
    deploy      deploy hook to the cloud
    alias       create hostname alias for hook
    examples    show list of example hooks
    get         get hook document
    init        initialize new local service
    list        list all hooks
    run         run hook in the cloud
    whoami      returns currently logged in user
    help [cmd]  display help for [cmd]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

  Notes:

    All commands are available as separate git style binaries
    Such as: hook-list, hook-info, hook-run, hook-deploy, etc
    

Programmatic

  var client = sdk.createClient({ hook_private_key: "12345"});

  client.hook.create('echo', {
    "source": 'echo "hello"',
    "language": "bash"
  }, function (err, res) {
    console.log(err, res);
  });
  

Click Here For 30+ SDK Code Examples