Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
428 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Trello\Api\Board; | ||
|
||
use Trello\Api\AbstractApi; | ||
|
||
/** | ||
* Trello Board custom fields API | ||
* @link https://developers.trello.com/docs/getting-started-custom-fields | ||
* | ||
*/ | ||
class CustomFields extends AbstractApi | ||
{ | ||
/** | ||
* Base path of board custom fields api | ||
* @var string | ||
*/ | ||
protected $path = 'boards/#id#/customFields'; | ||
|
||
/** | ||
* Get custom fields related to a given board | ||
* @link https://developers.trello.com/docs/getting-started-custom-fields#section-get-custom-fields-on-a-board | ||
* | ||
* @param string $id the board's | ||
* @param array $params optional parameters | ||
* | ||
* @return array | ||
*/ | ||
public function all($id, array $params = array()) | ||
{ | ||
return $this->get($this->getPath($id), $params); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.