Update Cartfile
A Swift module to help make requests to the Slack Web API.
Add SKWebAPI to your pod file:
use_frameworks! pod 'SKWebAPI'
and run
# Use CocoaPods version >= 1.4.0 pod install
Add SKWebAPI to your Cartfile:
github "pvzig/SKWebAPI"
carthage bootstrap
Drag the built SKWebAPI.framework into your Xcode project.
SKWebAPI.framework
Add SKWebAPI to your Package.swift
import PackageDescription let package = Package( dependencies: [ .package(url: "https://github.com/pvzig/SKWebAPI.git", .upToNextMinor(from: "4.1.0")) ] )
Run swift build on your application’s main directory.
swift build
To use the library in your project import it:
import SKWebAPI
Initialize an instance of SKWebAPI with a Slack auth token and make your requests:
SKWebAPI
let webAPI = WebAPI(token: xoxp-SLACK_AUTH_TOKEN) webAPI.authenticationTest(success: { (user, team) in print("\(user) - \(team)") }, failure: nil)
SlackKit currently supports the a subset of the Slack Web API that is available to bot users:
api.test
api.revoke
auth.test
channels.history
channels.info
channels.list
channels.mark
channels.create
channels.invite
channels.setPurpose
channels.setTopic
chat.delete
chat.meMessage
chat.postMessage
chat.update
emoji.list
files.comments.add
files.comments.edit
files.comments.delete
files.delete
files.info
files.upload
groups.close
groups.history
groups.info
groups.list
groups.mark
groups.open
groups.setPurpose
groups.setTopic
im.close
im.history
im.list
im.mark
im.open
mpim.close
mpim.history
mpim.list
mpim.mark
mpim.open
oauth.access
pins.add
pins.list
pins.remove
reactions.add
reactions.get
reactions.list
reactions.remove
rtm.start
stars.add
stars.remove
team.info
users.getPresence
users.info
users.list
users.setActive
users.setPresence
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
SKWebAPI has been consolidated into SlackKit
A Swift module to help make requests to the Slack Web API.
Installation
CocoaPods
Add SKWebAPI to your pod file:
and run
Carthage
Add SKWebAPI to your Cartfile:
and run
Drag the built
SKWebAPI.framework
into your Xcode project.Swift Package Manager
Add SKWebAPI to your Package.swift
Run
swift build
on your application’s main directory.To use the library in your project import it:
Usage
Initialize an instance of
SKWebAPI
with a Slack auth token and make your requests:Web API Methods
SlackKit currently supports the a subset of the Slack Web API that is available to bot users:
api.test
api.revoke
auth.test
channels.history
channels.info
channels.list
channels.mark
channels.create
channels.invite
channels.setPurpose
channels.setTopic
chat.delete
chat.meMessage
chat.postMessage
chat.update
emoji.list
files.comments.add
files.comments.edit
files.comments.delete
files.delete
files.info
files.upload
groups.close
groups.history
groups.info
groups.list
groups.mark
groups.open
groups.setPurpose
groups.setTopic
im.close
im.history
im.list
im.mark
im.open
mpim.close
mpim.history
mpim.list
mpim.mark
mpim.open
oauth.access
pins.add
pins.list
pins.remove
reactions.add
reactions.get
reactions.list
reactions.remove
rtm.start
stars.add
stars.remove
team.info
users.getPresence
users.info
users.list
users.setActive
users.setPresence