RSGithubRepoListing
此框架接受 Github 用户名,并返回与之关联的仓库。
使用 CocoaPods 进行安装
要使用 CocoaPods 将 RSGithubRepoListing 集成到您的 Xcode 项目中,请在您的 Podfile
中指定它。
pod 'RSGithubRepoListing', '~> 0.0.5'
用法
使用 Objective-C
#import <RSGithubRepoListing/RSGithubRepoListing.h>
// In your custom function
GithubServices *services = [[GithubServices alloc] init];
[services getGithubReposForUsername:**required username** completionBlocl:^(RSGithubRepos * allRepos) {
// You will get all records in RSGithubRepos array.
}];
使用 Swift
import RSGithubRepoListing
// In your custom function
let gitServices = GithubServices()
gitServices.getGithubRepos(forUsername: username) { [weak self] (allRepos) in
// You will get all records in RSGithubRepos array.
}
许可证
RSGithubRepoListing 使用的是 MIT 许可证。