-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cb8c4f4
Showing
8 changed files
with
629 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
temp/* | ||
vendor/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Slack messaging tools | ||
|
||
![GitHub release](https://img.shields.io/github/release/FrancoisChaumont/slack-api-tools.svg) | ||
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/FrancoisChaumont/slack-api-tools/issues) | ||
|
||
Set of messaging tools using Slack API. | ||
|
||
## Requirements | ||
|
||
- [Composer](https://getcomposer.org) | ||
- PHP 7.4+ | ||
|
||
## Installation | ||
|
||
``` | ||
composer install | ||
``` | ||
|
||
## Tools | ||
|
||
### Post a message to a channel | ||
See [post-message.php](post-message.php) | ||
``` | ||
post-messsage.php -h/--help | ||
``` | ||
See [README.post-message.md](READMEs/README.post-message.md) for more details. | ||
|
||
## Built with | ||
* Visual Studio Code | ||
|
||
## Authors | ||
* **Francois Chaumont** - *Initial work* - [FrancoisChaumont](https://github.com/FrancoisChaumont) | ||
|
||
See also the list of [contributors](https://github.com/FrancoisChaumont/db/graphs/contributors) who participated in this project. | ||
|
||
## License | ||
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details. | ||
|
||
## Notes | ||
Todo: Add more tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Post a message to a Slack channel | ||
|
||
## Introduction | ||
|
||
**Create a Slack app** | ||
See [create app](https://api.slack.com/start/overview#creating) documentation. | ||
|
||
Grant permission: `chat:write` | ||
|
||
**Sending a message** | ||
See [sending message](https://api.slack.com/messaging/sending) documentation. | ||
|
||
**Find channel ID** | ||
- In the Slack desktop app, right-click on the channel and select copy link. The last part of the URL is the ID. | ||
- In the browser version, navigate to the channel and check the URL. The last part of the URL is the ID. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "francoischaumont/slack", | ||
"description": "Message functionalities through Slack API and apps", | ||
"authors": [ | ||
{ | ||
"name": "Francois Chaumont", | ||
"role": "main developer" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.4", | ||
"guzzlehttp/guzzle": "^7.2" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"FC\\Slack\\": "src/Slack/" | ||
} | ||
} | ||
} |
Oops, something went wrong.