Angular adapter module for github.js
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
src
test/unit
.bowerrc
.editorconfig
.gitignore
.jshintrc
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
Gruntfile.js
LICENSE
README.md
bower.json
karma.conf.js
package.json

README.md

angular-github-adapter

Angular adapter module for github.js

Full API: Github.js

Quick Start

Install adapter via bower:

$ bower install angular-github-adapter

Declare it as dependency in your app:

angular.module('myApp', ['pascalprecht.github-adapter']);

Use the $githubProvider to configure the service:

angular.module('myApp').config(function ($githubProvider) {
  $githubProvider.username('YOUR_USERNAME');
  $githubProvider.password('YOUR_PASSWORD');
  $githubProvider.authType('basic');
});

It is also possible to set credentials through the service itself

$github.setCreds('YOUR_USERNAME', 'YOUR_PASSWORD', 'basic');

Now you can access $github service within your controller and services. It provides the same API as Github.js, just with promises :)