{"id":22413599,"url":"https://github.com/nextfaze/iqkit-ios","last_synced_at":"2025-03-27T03:28:59.249Z","repository":{"id":31636559,"uuid":"35201759","full_name":"NextFaze/iqkit-ios","owner":"NextFaze","description":"iQNECT Kit for iOS","archived":false,"fork":false,"pushed_at":"2017-06-06T05:18:45.000Z","size":48253,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-02-01T08:48:46.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NextFaze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-07T06:02:38.000Z","updated_at":"2019-01-28T06:26:22.000Z","dependencies_parsed_at":"2022-08-24T09:51:10.744Z","dependency_job_id":null,"html_url":"https://github.com/NextFaze/iqkit-ios","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NextFaze%2Fiqkit-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NextFaze%2Fiqkit-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NextFaze%2Fiqkit-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NextFaze%2Fiqkit-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NextFaze","download_url":"https://codeload.github.com/NextFaze/iqkit-ios/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245777143,"owners_count":20670479,"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":"2024-12-05T14:13:36.987Z","updated_at":"2025-03-27T03:28:59.227Z","avatar_url":"https://github.com/NextFaze.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"iQKit iOS SDK\n-------------\n\nThe iQKit iOS SDK gives you access to the powerful iQNECT Vision Search platform\nto integrate into your iOS app.\n\nInstallation\n------------\n\n#### With CocoaPods\n\nUsing [CocoaPods](https://cocoapods.org), add to your podfile:\n\n```\npod 'iQKit'\n```\n\nRun `pod install` to download the SDK and install it into your project, along with the SDK's dependencies.\n\n\nInitialization\n---------------\n\n#### Required\n\nIn your App Delegate, initialise the SDK with the App ID and secret you obtained from the [iQNECT Developer Portal](http://developer.iqnect.org):\n\n```objc\n#import \"iQKit.h\"\n```\n\n```objc\n[iQKit setAppID:@\"APP-ID\"\n   andAppSecret:@\"APP-SECRET\"];\n```\n\n#### Optional\n\nFor best results, report some further information about the user:\n\n```objc\n[iQKit setUserAge:@(42)];\n[iQKit setUserGender:@\"f\"]; \n```\n\nThe age and gender can be updated at anytime with these functions.\n\nUsage\n-----\n\n#### Vision Search\n\nTo initiate a vision search, add the following code to an appropriate view controller:\n\n```objc\niQScannerViewController *scannerViewController = [[iQScannerViewController alloc] init];\nscannerViewController.delegate = self;\n[self presentViewController:scannerViewController animated:NO completion:nil];\n```\n\nWhen the search is complete, you will get a callback via the `iQScannerViewControllerDelegate` protocol:\n\n```objc\n- (void)scannerViewController:(iQScannerViewController *)scannerViewController didLoadSearchResponse:(iQAPISearchResponse *)searchResponse\n{    \n    [self dismissViewControllerAnimated:YES completion:^{\n\t\tNSLog(@\"Payload URL: %@\", searchResponse.payload);\n    }];\n}\n```\n\nIn the callback, the `iQAPISearchResponse` object has a `payload` property which is the URL returned by the search. Use this URL, typically to load in a web view or to open the iQNECT app.\n\n#### Image Search\n\nThis is the same as the Keyword search, except the parameter is of type `UIImage`. \n\n```objc\n[[iQAPISearchRequest requestWithImage:image] runWithCompletionHandler:^(iQAPISearchResponse *response) {\n    NSLog(@\"Payload: %@\", response.payload); \n}];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextfaze%2Fiqkit-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextfaze%2Fiqkit-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextfaze%2Fiqkit-ios/lists"}