{"id":19466756,"url":"https://github.com/zulip/swift-zulip-api","last_synced_at":"2025-10-07T08:31:21.030Z","repository":{"id":54505512,"uuid":"128697105","full_name":"zulip/swift-zulip-api","owner":"zulip","description":"A Zulip library written in Swift.","archived":false,"fork":false,"pushed_at":"2022-07-13T12:08:09.000Z","size":147,"stargazers_count":18,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-23T22:26:06.609Z","etag":null,"topics":["swift","zulip"],"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/zulip.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-09T01:20:08.000Z","updated_at":"2025-07-11T01:03:31.000Z","dependencies_parsed_at":"2022-08-13T18:01:08.009Z","dependency_job_id":null,"html_url":"https://github.com/zulip/swift-zulip-api","commit_stats":null,"previous_names":["skunkmb/swift-zulip-api","skunkmb/zulip-swift"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/zulip/swift-zulip-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zulip%2Fswift-zulip-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zulip%2Fswift-zulip-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zulip%2Fswift-zulip-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zulip%2Fswift-zulip-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zulip","download_url":"https://codeload.github.com/zulip/swift-zulip-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zulip%2Fswift-zulip-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278743105,"owners_count":26037974,"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-10-07T02:00:06.786Z","response_time":59,"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":["swift","zulip"],"created_at":"2024-11-10T18:30:02.996Z","updated_at":"2025-10-07T08:31:20.669Z","avatar_url":"https://github.com/zulip.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `swift-zulip-api` \u003cimg alt=\"Swift logo\" src=\"https://raw.githubusercontent.com/zulip/swift-zulip-api/master/assets/zulip-logo.png\" height=50 /\u003e \u003cimg alt=\"Swift logo\" src=\"https://raw.githubusercontent.com/zulip/swift-zulip-api/master/assets/swift-logo.png\" height=50 /\u003e\n\n[![Travis CI build status](https://img.shields.io/travis/com/zulip/swift-zulip-api.svg)](https://travis-ci.com/github/zulip/swift-zulip-api)\n[![GitHub tag](https://img.shields.io/github/tag/zulip/swift-zulip-api.svg)](https://github.com/zulip/swift-zulip-api)\n[![language badge](https://img.shields.io/badge/language-Swift-orange.svg)](https://swift.org)\n\nA library to access the Zulip API with **Swift**.\n\n## Installation\n\n### Swift Package Manager\n\n`swift-zulip-api` can be installed with the\n[Swift Package Manager](https://is.gd/aRdTkN).\n\nIn your `dependencies`, add\n[`https://github.com/zulip/swift-zulip-api.git`](https://is.gd/SQQWRT):\n\n```swift\ndependencies: [\n    .package(\n        url: \"https://github.com/zulip/swift-zulip-api.git\",\n        from: \"0.3.0\"\n    )\n]\n```\n\n### CocoaPods\n\n`swift-zulip-api` can also be installed with [CocoaPods](https://is.gd/iMgFFg).\n\nIn your `Podfile`, add `swift-zulip-api`.\n\n```ruby\npod 'swift-zulip-api'\n```\n\nThen run `pod install` from the terminal.\n\n```bash\npod install\n```\n\n## Usage\n\n### Set-up\n\n```swift\nimport SwiftZulipAPI\n\n// Set up a Zulip configuration.\nlet config = Config(\n    emailAddress: \"email@example.com\",\n    apiKey: \"yourapikey\",\n    realmURL: \"https://example.com\"\n)\n\n// Create the Zulip client.\nlet zulip = Zulip(config: config)\n```\n\n### Functions\n\n`swift-zulip-api` is split into a few different namespaces, each with their own\nfunctions:\n\n**messages:**\n```swift\nlet messages = zulip.messages()\n```\n\n[See the full `messages` docs.](https://github.com/zulip/swift-zulip-api/blob/master/docs/messages.md)\n\n**streams:**\n```swift\nlet streams = zulip.streams()\n```\n\n[See the full `streams` docs.](https://github.com/zulip/swift-zulip-api/blob/master/docs/streams.md)\n\n**users:**\n```swift\nlet users = zulip.users()\n```\n\n[See the full `users` docs.](https://github.com/zulip/swift-zulip-api/blob/master/docs/users.md)\n\n**events:**\n```swift\nlet events = zulip.events()\n```\n\n[See the full `events` docs.](https://github.com/zulip/swift-zulip-api/blob/master/docs/events.md)\n\n### Examples\n\nEach of the function docs has examples for how to use the functions. There is\nalso a [full Swift example file](https://github.com/zulip/swift-zulip-api/blob/master/example/SwiftZulipAPIExample/main.swift)\nif you want to see every function being used in an actual example program.\nThe example can be run by using\n\n```bash\nswift run SwiftZulipAPIExample\n```\n\nfrom the terminal.\n\n### Bots\n\n`swift-zulip-api` supports writing Bots to automatically respond to users. Each\nbot will respond when it is mentioned in a message.\n\n[See the full bots docs.](https://github.com/zulip/swift-zulip-api/blob/master/docs/bots.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzulip%2Fswift-zulip-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzulip%2Fswift-zulip-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzulip%2Fswift-zulip-api/lists"}