https://github.com/jdisho/unsplashswift
🌯 A Swift wrapper for the Unsplash API
https://github.com/jdisho/unsplashswift
free images photography photos pictures unsplash unsplash-api
Last synced: 8 months ago
JSON representation
🌯 A Swift wrapper for the Unsplash API
- Host: GitHub
- URL: https://github.com/jdisho/unsplashswift
- Owner: jdisho
- License: mit
- Created: 2018-03-26T20:41:32.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-27T14:47:39.000Z (about 8 years ago)
- Last Synced: 2024-12-01T23:42:10.185Z (over 1 year ago)
- Topics: free, images, photography, photos, pictures, unsplash, unsplash-api
- Language: Swift
- Size: 101 KB
- Stars: 18
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UnsplashSwift
🌯 A Swift wrapper for the Unsplash API
## 🛠 Installation
### CocoaPods
To integrate UnsplashSwift into your Xcode project using CocoaPods, specify it in your `Podfile`:
```ruby
pod 'UnsplashSwift'
```
## 👨🏻💻 Usage
```swift
let unsplash = Provider(clientID: "xxx") // only for public actions
// OR
let unsplash = Provider(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](https://github.com/Alamofire/Alamofire) for more information about `Response Handling`, `Response Validation`
## 🐨 Author
Created with ❤️ by [Joan Disho](https://twitter.com/_disho)
## 🙏 Acknowledgements
Inspired by [Moya](https://github.com/Moya/Moya)
### 📃 License
UnsplashSwift is released under an MIT license. See [License.md](https://github.com/jdisho/UnsplashSwift/blob/master/LICENSE) for more information.