Download the PHP package giagara/laravel-asana-webhook without Composer
On this page you can find all versions of the php package giagara/laravel-asana-webhook. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download giagara/laravel-asana-webhook
More information about giagara/laravel-asana-webhook
Files in giagara/laravel-asana-webhook
Package laravel-asana-webhook
Short Description Laravel asana webhook integration
License MIT
Homepage https://github.com/giagara/asana-webhook
Informations about the package laravel-asana-webhook
Laravel asana webhook integration
This package let you integrate easily with Asana Webhooks.
Installation
Install the package via composer:
Publish config file with
Usage
First of all you need to configure the personal access token to communicate with Asana. You can get it here: https://developers.asana.com/docs/personal-access-token
Add it in your .env file
Configure the routing by adding items to the route
array in config file.
Alternatively the configuration can support name and middlewares
NOTE: the invokable class must implements AsanaActionInterface
.
NOTE: the route is forced to use api/
prefix so, in this case, the final path will be api/webhook
.
Example:
After this the route api/webhook will be mapped to your invokable class.
Available commands
Webhook list
NOTE: For this feature create ASANA_WORKSPACE_ID
field in .env file.
get workspace id by calling this url
Webhook creation
To create a new webhook in Asana you can use the CreateWebhookCommand
by calling:
It will ask for resource id (see Asana documentation) and target url (that should be already reachable by Asana).
You can pass the parameters in command directly with:
The --route
parameter is the route name: see php artisan route:list
Delete Webhook
TODO
- [x] Create webhook list command
- [x] Delete a webhook via command
- [x] Add middleware to route configs
- [x] Add name to route config
- [x] Trigger via route name
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Garavaglia Giacomo
- All Contributors
License
The MIT License (MIT). Please see License File for more information.