在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:JohnnyTheTank/angular-github-api-factory开源软件地址:https://github.com/JohnnyTheTank/angular-github-api-factory开源编程语言:JavaScript 100.0%开源软件介绍:angular-github-api-factory is an angularjs module with a github api factory. Author: Jonathan Hornung (JohnnyTheTank) Usage
factory methodsgetUsergithubFactory.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
}); getRepogithubFactory.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
}); getEventsgithubFactory.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 APIMore angular-api-factoriesbandsintown - dailymotion - facebook - footballdata - flickr - github - openweathermap - tumblr - vimeo - wikipedia - youtube LicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论