Search Github repositories by platform and organization.
This project is mainly inspired from this project
target 'DemoApp' do
pod 'GithubAPISDK', :git => 'https://github.com/jbdtky/github-api-sdk.git'
end
$ pod install
There is 2 platforms available
.ios
.android
let instance = GithubAPISDK(
DefaultAPIProvider(
maximumSimultaneously: 10,
queue: DispatchQueue.global(qos: .utility)))
instance.fetchRepositories(.ios, organization: "myorg") { result in
switch result {
case let .success(repositories):
print(repositories)
case let .failure(error):
print(error)
}
}
You can implement your own API provider using the protocol APIProviderProtocol
and provide it to the SDK during the initialization
. So it allows you to use your favorite framework like Moya, Alamofire or APIKit.
Please feel free to submit a PR for any contribution.