Latest 1.0.4
Homepage https://github.com/TheM4hd1/SwiftyInsta
License MIT
Platforms ios 10.0
Authors

Logo

About Instagram APIs

Instagram offers two kind of APIs for developers. The Official API and Unofficial API.

They both have pros and cons, the private api is a tokenless api which means it doesn’t require any token or app registration in Instagram system.


But you should know that its not authorized, maintained, sponsored or endorsed by Instagram.

SwiftyInsta, Tokenless Instagram API

SwiftyInsta allows you to build your own customized Instagram client or Bot. It is 100% open for all developers who wish to create applications on Instagram platform.

This project is still in development phase and intends to provide all features which are available in the Official API.

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate SwiftyInsta into your Xcode project using CocoaPods, specify it to a target in your Podfile:

pod 'SwiftyInsta'

Then, run the following command:

$ pod install

Manual

To use this library in your project manually you may:

  • Add compiled framework from General > Linked frameworks and libraries
  • Clone the project, right click on your root project(not SwiftyInsta) and select Add files..., then select the SwiftyInsta.xcodeproj. after that go to your project>embeded libraries and select SwiftyInsta.framework, build the project and import SwiftyInsta

Usage

Create API Handler Instance

import SwiftyInsta

let _urlSession = URLSession(configuration: .default)
let handler = try! APIBuilder()
.createBuilder()
.setHttpHandler(urlSession: _urlSession)
.setRequestDelay(delay: .default)
.setUser(user: user)
.build()

Login

try? handler.login { (result) in
    //result: Result<LoginResultModel>
}

aslo to prevent known login issues, you can use Siwa, a helper framework for SwiftyInsta

Search User

try? handler.getUser(username: "username", completion: { (result) in
    //result: (Result<UserModel>)
})

Documentation

  • See Features for all available APIs
  • See Usage for more specific usage and use case documentation
  • See Tests for some real world examples

Contributions

Pull requests and issues are welcome

License

SwiftyInsta is licensed under the MIT license. See LICENSE for more info.

Thanks to

mpg25

a-legotin

Latest podspec

{
    "name": "SwiftyInsta",
    "version": "1.0.4",
    "summary": "Private and Tokenless Instagram RESTful API.",
    "description": "SwiftyInsta allows you to build your own customized Instagram client or Bot",
    "homepage": "https://github.com/TheM4hd1/SwiftyInsta",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "TheM4HD1": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "swift_versions": "4.2",
    "source": {
        "git": "https://github.com/TheM4hd1/SwiftyInsta.git",
        "tag": "1.0.4"
    },
    "source_files": "SwiftyInsta/**/*.{h,m,swift}",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This