Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

libcurl 은 PHP 언어에도 binding 되어 있어서 손쉽게 사용할 수 있다. 

 

 

JSON 데이타 POST 예제

 

JIRA REST API 를 이용해서 사용자 등록

<?php
 
  $user = array("name" => "userId",
                "password" => "userPwd",
                "emailAddress" => "user@example.com",
                "displayName" => "< USER DISPLAY NAME >",
                "notification" => "true");

  $json = json_encode($user);
  print("$json\n");


  $http_status = 0;

  $url = "https://jira-host-name/rest/api/2/user/";
  $ret = Curl($url, $json, $http_status) ;
  var_dump($ret); 
?>

 

 

Ref

 

  • No labels