Socket
Socket
Sign inDemoInstall

andbang

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

andbang

Client for andbang api


Version published
Weekly downloads
4
decreased by-85.19%
Maintainers
1
Weekly downloads
 
Created
Source

#And Bang API Client

Makes it dead simple to build web apps on the And Bang API.

  • All API functionality becomes a function call.
  • Couldn't be any simpler

Just inclide the script in your HTML

<script src="andbang.js"></script>

Then write some JS

// init an instance of the API connection
var api = new AndBang();

// then log in
api.validateToken('your access token', function (err, yourUser) {
    window.me = yourUser;
});

// 'ready' is triggered when you're successfully logged in
api.on('ready', function () {
    // once 'ready' has been triggered 
    // all your normal API functions are available
    // as function calls.

    // for example, we can just fetch our teams
    // and pass it a callback.
    api.getTeams(function (err, myTeams) {
        window.teams = myTeams;
    });
});

It uses socket.io under the covers so you get realtime, seemless API access that's as easy as AJAX.

Have fun!

Docs

You can see all available API methods on the developer docs: https://developer.andbang.com

###andbang.template.js andbang.js is generated from the provided API specification, spec.json. This allows automation allows for rapid expansion of the API across many platforms.

To generate andbang.js, run the provided build script, which depends on spec.json and andbang.template.js.

node ./build

FAQs

Package last updated on 31 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc