https://github.com/seratch/jslack-kotlin-examples
A collection of Slack API examples in Kotlin
https://github.com/seratch/jslack-kotlin-examples
Last synced: over 1 year ago
JSON representation
A collection of Slack API examples in Kotlin
- Host: GitHub
- URL: https://github.com/seratch/jslack-kotlin-examples
- Owner: seratch
- License: mit
- Created: 2019-07-08T04:12:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-28T23:12:00.000Z (over 6 years ago)
- Last Synced: 2025-01-20T22:13:32.730Z (over 1 year ago)
- Language: Kotlin
- Homepage: https://github.com/seratch/jslack
- Size: 68.4 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slack API examples in Kotlin
This is a collection of Slack API examples in Kotlin.
https://github.com/seratch/jslack-kotlin-examples/tree/master/src/test/kotlin/example
All the examples in this repository use [jSlack](https://github.com/seratch/jslack), a well-maintained Java Slack API client.
If you have feedback or suggestions, raise a ticket [at the library's GitHub Issues](https://github.com/seratch/jslack/issues).
## Prerequisites
```bash
export SLACK_TEST_OAUTH_ACCESS_TOKEN=xoxp-00000000-00000000-00000000-00000000
export SLACK_BOT_USER_TEST_OAUTH_ACCESS_TOKEN=xoxb-00000000-00000000
export SLACK_WEBHOOK_TEST_URL=https://hooks.slack.com/services/T00000000/B00000000/D6apuEH80000000000000000
```
If you're an admin of Slack org/workspace, you can try AuditLogsTest and SCIMTest with the following env variable (required scopes: admin, auditlogs:read).
```bash
export SLACK_TEST_ADMIN_OAUTH_ACCESS_TOKEN=xoxp-00000000-00000000-00000000-00000000
```
## License
The MIT License