Skip to content

Commit

Permalink
intial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisChaumont committed Jan 26, 2021
0 parents commit cb8c4f4
Show file tree
Hide file tree
Showing 8 changed files with 629 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
temp/*
vendor/*
40 changes: 40 additions & 0 deletions README.md
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
16 changes: 16 additions & 0 deletions READMEs/README.post-message.md
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.

19 changes: 19 additions & 0 deletions composer.json
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/"
}
}
}
Loading

0 comments on commit cb8c4f4

Please sign in to comment.