15
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Backlog のAPIのラッパー(PHP)

Posted at

を書きました。backlog-v2

使いかた

composerでatomita/backlog-v2をインストールして

require "./vendor/autoload.php";

use \atomita\Backlog;
use \atomita\BacklogException;

$backlog = new Backlog('space-name', 'api-key');
try{
	$space = $backlog->space->get();
	var_dump($space);

	$comment = $backlog->issues->param('issue id')->comments->post(['content' => 'comment message']));
	var_dump($comment);
}
catch(BacklogException $e){
	// error処理
}

って感じ。
application/jsonで返ってくるAPIは、json_decodeして返します。

api-keyはbacklogの個人設定のところで作れます。

15
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?