{"id":1897,"url":"https://github.com/Constantine-Fry/das-quadrat","last_synced_at":"2025-08-02T05:33:07.241Z","repository":{"id":23318105,"uuid":"26678002","full_name":"constantine-fry/das-quadrat","owner":"constantine-fry","description":"A Swift wrapper for Foursquare API. iOS and OSX.","archived":false,"fork":false,"pushed_at":"2019-03-26T15:37:59.000Z","size":421,"stargazers_count":171,"open_issues_count":14,"forks_count":49,"subscribers_count":22,"default_branch":"develop","last_synced_at":"2025-07-22T03:59:38.807Z","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":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/constantine-fry.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-15T11:33:46.000Z","updated_at":"2022-06-18T07:13:00.000Z","dependencies_parsed_at":"2022-08-21T21:10:15.913Z","dependency_job_id":null,"html_url":"https://github.com/constantine-fry/das-quadrat","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/constantine-fry/das-quadrat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/constantine-fry%2Fdas-quadrat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/constantine-fry%2Fdas-quadrat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/constantine-fry%2Fdas-quadrat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/constantine-fry%2Fdas-quadrat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/constantine-fry","download_url":"https://codeload.github.com/constantine-fry/das-quadrat/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/constantine-fry%2Fdas-quadrat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268339405,"owners_count":24234544,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-01-05T20:15:58.440Z","updated_at":"2025-08-02T05:33:06.901Z","avatar_url":"https://github.com/constantine-fry.png","language":"Swift","funding_links":[],"categories":["SDK","Unofficial"],"sub_categories":["Unofficial","Other free courses"],"readme":"Das Quadrat [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n===========\n\nDas Quadrat is Foursquare API wrapper written in Swift.\n\n\n### Features\n\n+ Supports iOS and OSX.\n+ Covers all API endpoints.\n+ Authorization process implemented for both platforms.\n+ Native authorization on iOS.\n+ Image downloader/uploader.\n+ Image cache.\n+ Supports multiple accounts.\n\n\n### Installation\n\n#### Carthage Installation\n\nInstall Das Quadrat using the [Carthage](http://github.com/Carthage/Carthage) dependency manager.\n\n```\ngithub \"Constantine-Fry/das-quadrat\" \u003e= 1.0\n```\n\n#### Cocoapods\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\nuse_frameworks!\n\npod 'QuadratTouch', '\u003e= 1.0'\n```\n\n#### Embedded framework (iOS 8.0+)\n\n1. Add Das Quadrat as a submodule.\n\t`git submodule add git@github.com:Constantine-Fry/das-quadrat.git`\n2. Drag-and-drop `Quadrat.xcodeproj` into your project. The project has two targets: Quadrat.framework for OSX project, QuadratTouch.framework for iOS projects.\n3. Add new target in \"Build Phases\" -\u003e \"Target Dependencies\".\n4. Click the `+` button at the top left of the panel and choose \"New copy files phase\".\n  * Rename the new phase to \"Copy Frameworks\".\n  * Set the \"Destination\" to \"Frameworks\".\n5. Add Quadrat framework to this phase.\n6. Here is the [image](https://cloud.githubusercontent.com/assets/239692/5367193/367f8640-7ffa-11e4-8b9b-88cef33bcd79.png) to visualise the result.\n7. Read [wiki](https://github.com/Constantine-Fry/das-quadrat/wiki) for details.\n\nYou can add source code files directly into your project to support iOS 7.0.\n\n### Usage\n\n##### Setup session\n\n```swift\nlet client = Client(clientID:       \"FOO.................FOO\",\n   \t\t\t\t\tclientSecret:   \"BAR.................BAR\",\n    \t\t\t\tredirectURL:    \"testapp123://foursquare\")\nvar configuration = Configuration(client:client)\nSession.setupSharedSessionWithConfiguration(configuration)\n\nlet session = Session.sharedSession()\n```\n\n##### Search request\n\n```swift\nvar parameters = [Parameter.query:\"Burgers\"]\nparameters += self.location.parameters()\nlet searchTask = session.venues.search(parameters) {\n    (result) -\u003e Void in\n    if let response = result.response {\n\t\tself.venues = response[\"venues\"] as [JSONParameters]?\n\t\tself.tableView.reloadData()\n    }\n}\nsearchTask.start()\n```\n\n##### Multi request\n\n```swift\nlet task1 = self.quadratSession.users.get()\nlet task2 = self.quadratSession.users.friends(userId: \"self\", parameters: nil)\n\nlet multiTask = self.quadratSession.multi.get([task1, task2]){\n\t(responses) -\u003e Void in\n\tprintln(responses)\n}\nmultiTask.start()\n```\n\n##### Native authorization\n\nThe library will attempt to authorize natively via the actual Foursquare app, if installed. It will switch to the app to authorize, and then switch back to your app on success. Currently, there is no mechanism in place in Foursquare's app to switch back to your app if the user cancels the authorization from there, so the user will need to return to your app manually if they choose to cancel the authorization.\n\nIf the Foursquare app is not installed on the user's device, your app will instead present a modal view controller containing a `UIWebView` that will display a web-based authorization screen instead. This occurs without leaving your app, and can be cancelled to return to the previous screen.\n\nOn iOS9 an app must declare which URL scheme it wants to check with `canOpenURL:`. \nTo enable native authorization with Foursquare app you must add `foursquareauth` to `LSApplicationQueriesSchemes` array\nin info.plist file in your project.\n\n\n### Requirements\n\nSwift 2.0 / iOS 8.0+ / Mac OS X 10.9+\n\n### License\n\nThe BSD 2-Clause License. See License.txt for details.\n\n===========\nBonn, December 2014.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FConstantine-Fry%2Fdas-quadrat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FConstantine-Fry%2Fdas-quadrat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FConstantine-Fry%2Fdas-quadrat/lists"}