zulip-swift

A library to access the Zulip API with Swift.
Installation
Swift Package Manager
zulip-swift
can be installed with the
Swift Package Manager.
In your dependencies
, add
https://github.com/skunkmb/zulip-swift.git
:
dependencies: [
.package(
url: "https://github.com/skunkmb/zulip-swift.git",
from: "0.1.1"
)
]
CocoaPods
zulip-swift
can also be installed with CocoaPods.
In your Podfile
, add zulip-swift
.
pod 'zulip-swift'
Then run pod install
from the terminal.
pod install
Usage
Set-up
// Set up a Zulip configuration.
let config = Config(
emailAddress: "[email protected]",
apiKey: "yourapikey",
realmURL: "https://example.com"
)
// Create the Zulip client.
let zulip = Zulip(config: config)
Functions
zulip-swift
is split into a few different namespaces, each with their own
functions:
messages:
let messages = zulip.messages()
streams:
let streams = zulip.streams()
users:
let users = zulip.users()
events:
let events = zulip.events()