π― A Swift wrapper for the Unsplash API
To integrate UnsplashSwift into your Xcode project using CocoaPods, specify it in your Podfile
:
pod 'UnsplashSwift'
let unsplash = Provider<Unsplash>(clientID: "xxx") // only for public actions
// OR
let unsplash = Provider<Unsplash>(token: "xxx") // for all actions
provider.request(.photos(page: 1, perPage: 10, orderBy: .popular)).responseJSON { response in
// do something with the response
}
UnsplashSwift is build on top of Alamofire.
See Alamofire for more information about Response Handling
, Response Validation
Created with β€οΈ by Joan Disho
Inspired by Moya
UnsplashSwift is released under an MIT license. See License.md for more information.