PHP code example of cjrasmussen / trello-api

1. Go to this page and download the library: Download cjrasmussen/trello-api 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/ */

    

cjrasmussen / trello-api example snippets


use cjrasmussen\TrelloApi\TrelloApi;

$trello = new TrelloApi($key, $token);

// GET THE CARD DATA FOR A SPECIFIED LIST
$data = $trello->request('GET', "/1/lists/{$list_id}}/cards");

// MARK A SPECIFIED CARD AS ARCHIVED
$trello->request('PUT', "/1/cards/{$card_id}/closed", ['value' => true]);