darovi/laravelslackinvite

This package is abandoned and no longer maintained. The author suggests using the danrovito/laravelslackinvite package instead.

A Slack user invite service provider for Laravel

v1.1 2017-07-13 01:56 UTC

This package is auto-updated.

Last update: 2019-12-01 02:18:53 UTC


README

Latest Stable Version Total Downloads License StyleCI Codeship Status for Darovi/LaravelSlackInvite

Getting started

To get started you must first install the package from composer.

composer require danrovito/laravelslackinvite

Add the following to your .env file

SLACK_TOKEN=YOUR_SLACK_TOKEN  (this token can be generated here `https://api.slack.com/docs/oauth-test-tokens`)
SLACK_HOSTNAME=YOUR_SLACK_NAME (this is the HOSTNAME.slack.com in your slack url)

Usage

To use Slack invite all you have to do is use the following. Supply your users email address in the EMAIL_ADDRESS space.

\Darovi\LaravelSlackInvite\Slack::invite('EMAIL_ADDRESS');

You will receive a json response

{"ok":true}

or

{"ok":false,"error":"already_invited"}

License

Laravel Slack Invite is open-sourced software licensed under the MIT license

Bug Reporting and Feature Requests

Please add as many details as possible regarding submission of issues and feature requests

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.