Giter VIP home page Giter VIP logo

angular-paylogic's Introduction

angular-paylogic

An AngularJS service that encapsulates the functionality provided by the Paylogic Ticketing API.

Getting Started

angular-paylogic requires Bower and CoffeeScript.

Run bower install from the root directory of the project to install all the dependencies.

Then compile the CoffeeScript files into one file with coffee --join angular-paylogic.js --compile **/*.coffee.

Start a web server, e.g. python -m SimpleHTTPServer from the root directory of the project and check the demo at http://localhost:8000/demo.html.

The example will not work for the public (unfortunately..) as it requires basic authentication to access the API, and credentials are not provided.

How to use

angular-paylogic exposes a single paylogic component that can be used in the following way to interact with resources.

// Inject the angular-paylogic module.
angular.module('app', ['angular-paylogic'])
  // Inject the paylogic service in a controller.
  .controller('mainController', function($scope, paylogic) {

    // Will return all, as no filtering was specified.
    $scope.events = paylogic.events.filter();

    // products.get works, even if it is not defined in Product service, as it is a standard method of $resource.
    $scope.product = paylogic.products.get({
      productUid: "30df20dd0b0e4bc58f0663edc8a4f640"
    });

});

There is a more detailed example that goes through a complete buying process.

angular-paylogic's People

Contributors

spirosikmd avatar

Watchers

 avatar  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.