![]() Chat APIĪllows you to send, update and delete messages with methods:Īllows you to send, get info, delete, or just list files: Invite, archive, rename, join, kick, setPurpose. all allowed api methods you could see here: Slack Web API Methods. Slack( 'Team')-> info() All Injectable Contracts: Generic APIĪllows you to do generic requests to the api with the following http verbs: or just use the helper //Autoload the api Invite a new member to your team SlackUserAdmin:: invite(" [ Lists all channels on your team SlackChannel:: lists() ** \Wgmv\SlackApi\Contracts\SlackChannel $slackchannel */ $slackchannel = app( 'slack.channel') Įtc Example Usage //Lists all users on your team SlackUser:: lists() Otherwise, just use the singleton shortcuts: /** \Wgmv\SlackApi\Contracts\SlackApi $slackapi */ $slackapi = app( 'slack.api') If you want to use facades, add this lines on bootstrap/app.php class_alias( 'Wgmv\SlackApi\Facades\SlackApi', 'SlackApi') I have not tested the lumen installation! Documentation from the original package:Īdd the following line on bootstrap/app.php: // $app->register('App\Providers\AppServiceProvider') (by default that comes commented) $app-> register( 'Wgmv\SlackApi\SlackApiServiceProvider') Get you token here:Ĭonfigure your slack team token in config/services.php [ Wgmv\ SlackApi\ SlackApiServiceProvider::class, updated slack api options on a couple of methodsĬomposer require wgmv/laravel-slack-api Installation on Laravel 5.removed cache as it was not needed anymore. ![]() removed functionality to lookup user by nickname: this package provides basic functionality.The package is a fork from The original package is not maintained and I made several changes that possibly make this version incompatible to the original. This package provides a simple way to use the Slack API.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |