Skip to content

CaptainTeemo/IGKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IGKit

Carthage compatible GitHub license

Features

  • All in one framework without any third-party dependency.
  • Built in network request tool base on NSURLSession.
  • Built in JSON struct.
  • Built in model-to-JSON tool.
  • Built in Promise tool.
  • Easy to use.

At a glance

User.fetchSelfFeed().then { (mediaArray, page) -> Void in
    self.dataSource = mediaArray
    dispatch_async(dispatch_get_main_queue(), { 
        self.tableView.reloadData()
    })
}.error { (error) in
    print(error)
}

Authentication

IGKit uses Webkit to handle login stuff, please refer Instagram Documentation for Authentication details.

So login could as easy as:

// in some viewController
Authentication.login([.Basic], viewController: self, done: { (error) -> Void in
    //error should be nil if login succeed
})

The first parameter here is Login Permission, see Document for details.

Requirements

  • iOS 8.0+
  • Xcode 7.3+

Carthage

Put github "CaptainTeemo/IGKit" in your cartfile and run carthage update from terminal, then drag built framework to you project.

About

Yet another Instagram SDK written in pure Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published