Skip to content

Commit 03b7525

Browse files
committed
Changed integration examples
1 parent 82ae353 commit 03b7525

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed
File renamed without changes.

examples/boards_of_team.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
namespace Webhooks\Wrapper;
3+
4+
set_include_path('..');
5+
6+
require "vendor/autoload.php";
7+
8+
require ".config";
9+
10+
$client = new Trello\Client();
11+
$client->authenticate($key, $token, Trello\Client::AUTH_URL_CLIENT_ID);
12+
13+
$trello = new Trello($client);
14+
$team = $trello->getTeam($testTeamId);
15+
print_r($team);
16+
17+
$models = $trello->getBoards($team);
18+
print_r($models);

examples/lists_of_board.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
namespace Webhooks\Wrapper;
3+
4+
set_include_path('..');
5+
6+
require "vendor/autoload.php";
7+
8+
require ".config";
9+
10+
$client = new Trello\Client();
11+
$client->authenticate($key, $token, Trello\Client::AUTH_URL_CLIENT_ID);
12+
13+
$trello = new Trello($client);
14+
$board = $trello->getBoard($testBoardId);
15+
print_r($board);
16+
17+
$models = $trello->getLists($board);
18+
print_r($models);

0 commit comments

Comments
 (0)