PHP code example of bootdesk / chat-sdk-adapter-linear
1. Go to this page and download the library: Download bootdesk/chat-sdk-adapter-linear library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bootdesk / chat-sdk-adapter-linear example snippets
use BootDesk\ChatSDK\Linear\LinearAdapter;
$adapter = new LinearAdapter(
apiKey: env('LINEAR_API_KEY'),
httpClient: new \GuzzleHttp\Client,
webhookSecret: env('LINEAR_WEBHOOK_SECRET'),
);
// Post a comment on an issue
$adapter->postMessage('linear:ABC-123', 'Looking into this.');
// Post in a comment thread
$adapter->postMessage('linear:ABC-123:c:456', 'Reply to comment.');
// Post in an agent session
$adapter->postMessage('linear:ABC-123:s:session-xyz', 'Agent update.');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.