{"id":26780825,"url":"https://github.com/gitobi/instagramer","last_synced_at":"2025-04-19T10:59:21.130Z","repository":{"id":29093381,"uuid":"32622607","full_name":"gitobi/Instagramer","owner":"gitobi","description":"Instagram API wrapper","archived":false,"fork":false,"pushed_at":"2015-04-10T14:36:08.000Z","size":216,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-03-17T17:31:41.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitobi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-21T06:33:26.000Z","updated_at":"2024-03-17T17:31:41.387Z","dependencies_parsed_at":"2022-08-02T13:14:32.458Z","dependency_job_id":null,"html_url":"https://github.com/gitobi/Instagramer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitobi%2FInstagramer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitobi%2FInstagramer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitobi%2FInstagramer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitobi%2FInstagramer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitobi","download_url":"https://codeload.github.com/gitobi/Instagramer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246150441,"owners_count":20731419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-29T07:18:13.821Z","updated_at":"2025-03-29T07:18:14.428Z","avatar_url":"https://github.com/gitobi.png","language":"Swift","readme":"# Instagramer\nInstagram API wrapper\n\n## Installation\n### [CocoaPods](http://cocoapods.org)\n`Podfile`:\n```ruby\nuse_frameworks!\npod 'Instagramer', :git =\u003e 'https://github.com/gitobi/Instagramer.git'\n```\n\ndependency [Alamofire](https://github.com/Alamofire/Alamofire) and [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON)\n\n## Usage\n\n`InstagramerDemo.swift`:\n```swift\nimport Instagramer\n\npublic class InstagramerDemo {\n    class var sharedInstance : InstagramerDemo {\n        struct Static {\n            static let instance = InstagramerDemo()\n        }\n        return Static.instance\n    }\n    private init() { }\n\n\n    var _instagramer = Instagramer(clientId: /* your application's CLIENT_ID */)\n\n    func setup() {\n        var needCallbackURLHandle = _instagramer.oAuth(\n            \"access_token_key\"\n            , redirectURI: /* your application's REDIRECT_URI */\n            , permitted : { [weak self] in\n                NSLog(\"permited : \\(self?._instagramer.oAuth.accessToken)\")\n            \n            }, denied : { [weak self] in\n                NSLog(\"denied   : \\(self?._instagramer.oAuth.errors)\")\n            }\n    }\n    \n    func oauthCallbackHandle(url: NSURL) -\u003e Bool {\n        return _instagramer.oAuthHandle(url)\n    }\n    \n    func mediaSearch() {\n        _instagramer.mediaSearch(lat: /* latitude */, lng: /* longitude */)\n        .progress { (bytesRead, totalBytesRead, totalBytesExpectedToRead) in\n            NSLog(\"\\(bytesRead)\")\n        }\n        .response() { (request, response, data, error) in\n            NSLog(\"\\(request)\")\n        }\n        .complete() { (models: [InstagramerMedia]) in\n            for model in models {\n            NSLog(\"\\(models.images.thumbnail.url)\")\n        }\n    }\n```\n\n`AppDelegate.swift`:\n```swift\n    func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -\u003e Bool {\n        return InstagramerDemo.sharedInstance.oauthCallbackHandle(url)\n    }\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitobi%2Finstagramer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitobi%2Finstagramer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitobi%2Finstagramer/lists"}