Coder Social home page Coder Social logo

jeff-lewis / balanced_kit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from balanced/balanced_kit

0.0 2.0 0.0 535 KB

Utility classes for accessing the balanced api from the client.

JavaScript 71.29% CoffeeScript 27.70% HTML 0.93% Handlebars 0.07%

balanced_kit's Introduction

Build Status

BalancedKit

BalancedKit is a Javascript library to access your Balanced Payments data from your administrator dashboard. It includes UI Widgets to simplify data rendering and to help with common administrator and debugging tasks.

Development

BalancedKit is built using broccoli and grunt.

npm install
bower install

There is a broccoli server that is builds the project and creates some html files that are useful for previewing your work from http://localhost:4200

broccoli serve

Testing

BalancedKit uses Jasmine for testing code. The broccoli server provides access to the tests suite in http://localhost:4200/specs and there's also a grunt watch task that runs the tests continuosly:

grunt watch

connection

All API calls are made through a service object.

service = BalancedKit.service("ak-secret-xxxxxxxxxxxxxxxxxxx")

service.transactions()
  .sort("created_at", "descending")
  .type("debit")
  .status(["failed", "pending"])
  .range(undefined, new Date())
  .start()
  .then (transactions) ->
    transactions.total() # => 100
    transactions.getItems().debits.length # => 10
    transactions.next()
  .then (transaction) ->
    transactions.total() # => 100
    transactions.getItems().debits.length # => 10


service.transactions()
  .attr(
    sort: ["created_at", "descending"]
    type: "debit"
    status: ["failed", "pending"],
    range: [undefined, new Date()],
  )
  .start()
{{view Balanced.Views.DescriptionList data=marketplace dataTemplate="marketplace"}}

balanced_kit's People

Contributors

cohitre avatar

Watchers

Jeff Lewis avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.