
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
angular-github-api-factory
Advanced tools
angular-github-api-factory is an angularjs module with a github api factory.
Author: Jonathan Hornung (JohnnyTheTank)
Install via either bower, npm or downloaded files:
bower install --save angular-github-api-factory
npm install --save angular-github-api-factory
Include dependencies in your HTML.
<script src="bower_components/angular-github-api-factory/dist/angular-github-api-factory.min.js"></script>
<script src="node_modules/angular-github-api-factory/dist/angular-github-api-factory.min.js"></script>
<script src="angular-github-api-factory.min.js"></script>
Add jtt_github
to your application's module dependencies.
Use the factory githubFactory
githubFactory.getUser({
user:"<USERNAME_NAME>",
access_token:"<ACCESS_TOKEN>" // (optional)
}).then(function(_data){
//on success
}).catch(function (_data) {
//on error
});
//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
});
githubFactory.getRepoByUserAndName({
user:"<USER_NAME>",
repo:"<REPO_NAME>",
access_token:"<ACCESS_TOKEN>" // (optional)
}).then(function(_data){
//on success
}).catch(function (_data) {
//on error
});
// 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
});
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
});
bandsintown - dailymotion - facebook - footballdata - flickr - github - openweathermap - tumblr - vimeo - wikipedia - youtube
MIT
FAQs
angularjs factory for github json rest api requests
We found that angular-github-api-factory demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.