Latest 0.2.0
Homepage https://github.com/jdisho/UnsplashSwift
License MIT
Platforms ios 8.0, osx 10.10, watchos 2.0, tvos 9.0
Authors

🌯 A Swift wrapper for the Unsplash API

🛠 Installation

CocoaPods

To integrate UnsplashSwift into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'UnsplashSwift'

👨🏻‍💻 Usage

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

🐨 Author

Created with ❤️ by Joan Disho

🙏 Acknowledgements

Inspired by Moya

📃 License

UnsplashSwift is released under an MIT license. See License.md for more information.

Latest podspec

{
    "name": "UnsplashSwift",
    "version": "0.2.0",
    "license": {
        "type": "MIT"
    },
    "homepage": "https://github.com/jdisho/UnsplashSwift",
    "authors": {
        "Joan Disho": "[email protected]"
    },
    "summary": "A Swift wrapper for the Unsplash API",
    "source": {
        "git": "https://github.com/jdisho/UnsplashSwift.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.10",
        "watchos": "2.0",
        "tvos": "9.0"
    },
    "default_subspecs": "Core",
    "subspecs": [
        {
            "name": "Core",
            "source_files": "UnsplashSwift/Sources/*.swift",
            "frameworks": "Foundation",
            "dependencies": {
                "Alamofire": [
                    "~> 4.7"
                ]
            }
        }
    ]
}

Pin It on Pinterest

Share This