Skip to content

Instantly share code, notes, and snippets.

@nobodyplace
Last active August 10, 2019 05:12
Show Gist options
  • Save nobodyplace/aaab1cb5a4310796095674a1681cc76e to your computer and use it in GitHub Desktop.
Save nobodyplace/aaab1cb5a4310796095674a1681cc76e to your computer and use it in GitHub Desktop.
<?php
$client = new \GuzzleHttp\Client();
$res = $client->post(
'https://hoge/issues.json',
[
'json' => [
'key' => $api_key
,'issue' => [
'project_id' => 1
,'subject' => '題名サンプル'
,'priority_id' => 3
]
]
]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment