Giter Club home page Giter Club logo

instagram's Introduction

Instagram

An Instagram API written in swift that can be used freely in iOS, macOS and Linux client and server applications.

The Goal

My goal when creating this library was to enable developers to add this library to their Swift based project to connect to the Instagram API via simple calls. With this library you don't have to worry about any of the networking or HTTP.

Setting up the API has never been easier:

let api = InstagramAPI(clientId: "YOUR_CLIENT_ID", clientSecret: "YOUR_CLIENT_SECRET")
api.accessToken = "..."

And this API allows you to make simple calls and handle the asynchronous result in a closure like this:

let userId = ...
api.getUserRecentMedia(userId) { recentMedia in
    print(recentMedia)
}

Contributing

Obviously this is still a work in progress. Please feel free to fork and PRs are more than welcome! I haven't had a lot of time recently to make any significant progress on this but I think this would be useful for a lot of people.

Direction

Swift being open source offers some great opportunities for cross-platform software and libraries. I haven't had a lot of time to dedicate to this API and much remains to be done. The Swift Server APIs Project is aiming to built a full suite of networking utilities that can run on both macOS and Linux and I hope Alamofire moves towards those APIs eventually to help with cross-platform support because it's one of the cleanest and simplest networking libraries I've seen out there. It integrates nicely in Swift with the new advent of closures and looks a lot like GCD's facelift in Swift 3.

instagram's People

Contributors

califrench avatar serhii-londar avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.