{"id":30441651,"url":"https://github.com/edwellbrook/gosquared-swift","last_synced_at":"2026-04-20T14:02:05.066Z","repository":{"id":32553468,"uuid":"36135840","full_name":"edwellbrook/gosquared-swift","owner":"edwellbrook","description":"Interact with the GoSquared API in Swift","archived":false,"fork":false,"pushed_at":"2019-02-17T21:18:39.000Z","size":145,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-26T22:47:00.826Z","etag":null,"topics":["api","client","gosquared","ios","macos","osx","swift","wrapper"],"latest_commit_sha":null,"homepage":"https://cocoapods.org/pods/GoSquaredAPI","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/edwellbrook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-23T18:05:13.000Z","updated_at":"2023-02-02T20:34:25.000Z","dependencies_parsed_at":"2022-08-20T20:50:25.480Z","dependency_job_id":null,"html_url":"https://github.com/edwellbrook/gosquared-swift","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/edwellbrook/gosquared-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwellbrook%2Fgosquared-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwellbrook%2Fgosquared-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwellbrook%2Fgosquared-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwellbrook%2Fgosquared-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edwellbrook","download_url":"https://codeload.github.com/edwellbrook/gosquared-swift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwellbrook%2Fgosquared-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32050451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","client","gosquared","ios","macos","osx","swift","wrapper"],"created_at":"2025-08-23T07:09:59.862Z","updated_at":"2026-04-20T14:02:05.031Z","avatar_url":"https://github.com/edwellbrook.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoSquared Swift API\n\n[![Build Status](https://travis-ci.org/edwellbrook/gosquared-swift.svg?branch=master)](https://travis-ci.org/edwellbrook/gosquared-swift)\n\nThe GoSquared Swift API library allows you to interact with the [GoSquared API](https://www.gosquared.com/docs/api/). It was written to make building apps to present the GoSquared data easier.\n\nIt is written in Swift 3 and has support for the [Swift Package Manager](https://github.com/apple/swift-package-manager).\n\n## Installation\n\n[CocoaPods](https://cocoapods.org) is the recommended way to install this library:\n\n```ruby\n# In your Podfile add the following, then\n# save and run `pod install`:\npod 'GoSquaredAPI'\n```\n\n\u003e **Note:** Although I recommend CocoaPods, you can install this library manually, with git submodules, the Swift Package Manager or Carthage.\n\n## Example Usage\n\n```swift\nimport GoSquaredAPI\n\n// Configure client\nlet gosquared = GoSquared(apiKey: \"API_KEY\", project: \"PROJECT_TOKEN\")\n\n// Build request\nlet request = gosquared.now.concurrents()\n\n// Execute request\nGoSquaredAPI.performRequest(request) { response, error in\n    // do something with response/error\n}\n```\n\n## API\n\nThe API breaks down each GoSquared product into its own namespace (e.g. \"now\", \"trends\", \"people\").\n\nEach namespace then has multiple functions, which return a `URLRequest`. This `URLRequest` can then be executed with the provided `GoSquaredAPI.performRequest`, or your own networking system.\n\nThe request building and execution are decoupled to give you full control over your networking.\n\n### Account\n\n - `blockedItems()`\n - `isBotBlockingEnabled()`\n - `setBotBlockingEnabled(enabled: Bool)`\n - `blockedIPs()`\n - `blockIPs(ipAddresses: [String])`\n - `unblockIPs(ipAddresses: [String])`\n - `blockedVisitors()`\n - `blockVisitors(visitorIds: [String])`\n - `unblockVisitors(visitorIds: [String])`\n - `reportPreferences()`\n - `sharedUsers()`\n - `projects()`\n - `taggedVisitors()`\n - `webhooks()`\n - `addWebhook(_ webhookUrl: String, name: String)`\n - `webhookTriggers(webhookId: Int)`\n - `addWebhookTrigger(webhookId: Int, trigger: String, value: AnyObject)`\n - `removeWebhookTrigger(_ webhookId: Int, triggerId: Int)`\n - `me()`\n\n### Chat\n\n - `chats()`\n - `messages(personId: String, limit: Int, offset: Int)`\n - `stream()`\n\n### Ecommerce\n\n - `aggregate(parameters: [String: String])`\n - `browsers(parameters: [String: String])`\n - `categories(parameters: [String: String])`\n - `countries(parameters: [String: String])`\n - `languages(parameters: [String: String])`\n - `os(parameters: [String: String])`\n - `products(parameters: [String: String])`\n - `sources(parameters: [String: String])`\n - `transactions(parameters: [String: String])`\n\n### Now\n\n - `browsers()`\n - `campaigns()`\n - `concurrents()`\n - `engagement()`\n - `geo()`\n - `overview()`\n - `pages()`\n - `sources()`\n - `timeSeries()`\n - `visitors()`\n\n### People\n\n - `devices(limit: Int, offset: Int)`\n - `device(deviceId: String)`\n - `eventTypes()`\n - `search(_ query: String, parameters: [String: String])`\n - `details(personId: String)`\n - `devices(personId: String, limit: Int, offset: Int)`\n - `feed(personId: String, parameters: [String: String])`\n - `smartGroups()`\n\n### Trends\n\n - `aggregate(parameters: [String: String])`\n - `browsers(parameters: [String: String])`\n - `categories(parameters: [String: String])`\n - `countries(parameters: [String: String])`\n - `events(parameters: [String: String])`\n - `languages(parameters: [String: String])`\n - `organisations(parameters: [String: String])`\n - `os(parameters: [String: String])`\n - `pages(parameters: [String: String])`\n - `basePaths(parameters: [String: String])`\n - `products(parameters: [String: String])`\n - `screenDimensions(parameters: [String: String])`\n - `sources(parameters: [String: String])`\n - `transactions(parameters: [String: String])`\n\n### Combining Functions\n\nThe **Now** and **Trends** namespaces offer the ability to group multiple calls to the same namespace into one request. An example of this can be seen below:\n\n```swift\nimport GoSquaredAPI\n\n// Configure client\nlet gosquared = GoSquared(apiKey: \"API_KEY\", project: \"PROJECT_TOKEN\")\n\n// Build request with endpoints and parameters\nlet request = gosquared.now.combiningFunction(functions: [\n    GoSquaredAPI.CombiningFunction(endpoint: \"timeSeries\", parameters: [ \"limit\": \"0\" ]),\n    GoSquaredAPI.CombiningFunction(endpoint: \"concurrents\", parameters: [ \"limit\": \"0\" ])\n])\n\n// Execute request\nGoSquaredAPI.performRequest(request) { response, error in\n    // do something with response/error\n}\n```\n\n## License\n\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwellbrook%2Fgosquared-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedwellbrook%2Fgosquared-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwellbrook%2Fgosquared-swift/lists"}