All Projects → JohnnyTheTank → angular-github-api-factory

JohnnyTheTank / angular-github-api-factory

Licence: MIT license
AngularJS Factory for GitHub v3 JSON REST API requests

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to angular-github-api-factory

angular-footballdata-api-factory
AngularJS Factory for the football-data.org JSON REST API
Stars: ✭ 48 (+269.23%)
Mutual labels:  angularjs, factory, angular-factory
angular-youtube-api-factory
AngularJS Factory for Youtube JSON REST API requests
Stars: ✭ 21 (+61.54%)
Mutual labels:  angularjs, factory, angular-factory
react-graphql-github-vanilla
A React GraphQL example using GitHub's GraphQL API with vanilla JS
Stars: ✭ 69 (+430.77%)
Mutual labels:  github-api
gitron
A web game using GitHub APIs based on Tron 🥏
Stars: ✭ 20 (+53.85%)
Mutual labels:  github-api
Github-Environment-Cleaner
An interactive script to clean up GitHub environments
Stars: ✭ 101 (+676.92%)
Mutual labels:  github-api
probot-messages
Probot extension for communicating with repository maintainers
Stars: ✭ 13 (+0%)
Mutual labels:  github-api
interface-forge
Graceful mock-data and fixtures generation using TypeScript
Stars: ✭ 58 (+346.15%)
Mutual labels:  factory
gityeller
Stay in the loop of your favorite Github repositories.
Stars: ✭ 18 (+38.46%)
Mutual labels:  github-api
eucaconsole
Eucalyptus Management Console
Stars: ✭ 15 (+15.38%)
Mutual labels:  angularjs
octotui
🐙🐱🖥️ GitHub stats in your terminal
Stars: ✭ 202 (+1453.85%)
Mutual labels:  github-api
angular-horizontal-timeline
Simple horizontal timeline directive for AngularJS
Stars: ✭ 44 (+238.46%)
Mutual labels:  angularjs
GitHub-LookBook
Look up the GitHub profiles with better UI experience. Build your GitHub Report Card!
Stars: ✭ 18 (+38.46%)
Mutual labels:  github-api
git-issues
A better way to browse GitHub issues.
Stars: ✭ 25 (+92.31%)
Mutual labels:  github-api
octocat.js
Javascript library to access the GitHub API
Stars: ✭ 30 (+130.77%)
Mutual labels:  github-api
RxSwift-MVVM-iOS
SwiftMVVM is an sample iOS App written in Swift using the MVVM architecture.
Stars: ✭ 96 (+638.46%)
Mutual labels:  github-api
angular-simple-slider
An AngularJS directive providing a simple slider functionality
Stars: ✭ 15 (+15.38%)
Mutual labels:  angularjs
spotify-playing-readme
A really easy way to display your spotify listening status on READMEs and Website.
Stars: ✭ 21 (+61.54%)
Mutual labels:  github-api
dlang-bot
dlang-bot for automated bugzilla, github, and trello references
Stars: ✭ 20 (+53.85%)
Mutual labels:  github-api
stig
A CLI tool for searching GitHub from the terminal.
Stars: ✭ 36 (+176.92%)
Mutual labels:  github-api
AngularJS-ES6
No description or website provided.
Stars: ✭ 25 (+92.31%)
Mutual labels:  angularjs

angular-github-api-factory is an angularjs module with a github api factory.

npm version Bower version

Author: Jonathan Hornung (JohnnyTheTank)

Usage

  1. Install via either bower, npm or downloaded files:

    1. bower install --save angular-github-api-factory
    2. npm install --save angular-github-api-factory
    3. download angular-github-api-factory.zip
  2. Include dependencies in your HTML.

    1. When using bower:
    <script src="bower_components/angular-github-api-factory/dist/angular-github-api-factory.min.js"></script>
    1. When using npm:
    <script src="node_modules/angular-github-api-factory/dist/angular-github-api-factory.min.js"></script>
    1. when using downloaded files
    <script src="angular-github-api-factory.min.js"></script>
  3. Add jtt_github to your application's module dependencies.

  4. Use the factory githubFactory

factory methods

getUser

githubFactory.getUser({
    user:"<USERNAME_NAME>",
    access_token:"<ACCESS_TOKEN>" // (optional)
}).then(function(_data){
    //on success
}).catch(function (_data) {
    //on error
});

getUsers

// https://developer.github.com/v3/search/#search-users
githubFactory.getUsers({
    q:"<SEARCH_STRING>",  // (optional)
    sort:"<SORT_STRING>", // (optional) 'followers', 'repositories', 'joined'
    order:"<SORT_ORDER>", // (optional) 'desc', 'asc'
    per_page:"<ITEMS_PER_PAGE>", // (optional) valid values: 1-100 | default: 30
}).then(function(_data){
    //on success
}).catch(function (_data) {
    //on error
});

getRepo

githubFactory.getRepoByUserAndName({
    user:"<USER_NAME>",
    repo:"<REPO_NAME>",
    access_token:"<ACCESS_TOKEN>" // (optional)
}).then(function(_data){
    //on success
}).catch(function (_data) {
    //on error
});

getRepos

// https://developer.github.com/v3/search/#search-repositories
githubFactory.getReposByName({
    q:"<SEARCH_STRING>",
    sort:"<SORT_STRING>", // (optional) 'stars', 'forks', or 'updated'
    order:"<SORT_ORDER>", // (optional) 'desc', 'asc'
    per_page:"<ITEMS_PER_PAGE>", // (optional) valid values: 1-100 | default: 30
    access_token:"<ACCESS_TOKEN>" // (optional)
}).then(function(_data){
    //on success
}).catch(function (_data) {
    //on error
});
githubFactory.getReposByUser({
    user:"<USER_NAME>",
    q:"<SEARCH_STRING>", // (optional)
    sort:"<SORT_STRING>", // (optional) 'stars', 'forks', or 'updated'
    order:"<SORT_ORDER>", // (optional) 'desc', 'asc'
    per_page:"<ITEMS_PER_PAGE>", // (optional) valid values: 1-100 | default: 30
    access_token:"<ACCESS_TOKEN>" // (optional)
}).then(function(_data){
    //on success
}).catch(function (_data) {
    //on error
});

getEvents

githubFactory.getEventsFromRepoByUserAndName({
    user:"<USER_NAME>",
    repo:"<REPO_NAME>",
    q:"<SEARCH_STRING>",  // (optional)
    sort:"<SORT_STRING>", // (optional)
    order:"<SORT_ORDER>", // (optional) 'desc', 'asc'
    per_page:"<ITEMS_PER_PAGE>", // (optional) valid values: 1-100 | default: 30
    access_token:"<ACCESS_TOKEN>" // (optional)
}).then(function(_data){
    //on success
}).catch(function (_data) {
    //on error
});
githubFactory.getEventsByUser({
    user:"<USER_NAME>",
    q:"<SEARCH_STRING>", // (optional)
    sort:"<SORT_STRING>", // (optional)
    order:"<SORT_ORDER>", // (optional) 'desc', 'asc'
    per_page:"<ITEMS_PER_PAGE>", // (optional) valid values: 1-100 | default: 30
    access_token:"<ACCESS_TOKEN>" // (optional)
}).then(function(_data){
    //on success
}).catch(function (_data) {
    //on error
});

Github JSON API

More angular-api-factories

bandsintown - dailymotion - facebook - footballdata - flickr - github - openweathermap - tumblr - vimeo - wikipedia - youtube

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].