REST api for PHP Follow
Hi Guys,
I need to create a api that will communicate with bitbucket and youtrack using PHP. Anyway anyone who can give me a sample code that can achive login and get youtrack issue info?
Sorry I really don't have any idea where and how to start. if I will be given a sample code that is working (login and get issue info), I can start working on it.
Hoping for help.
Thanks
I need to create a api that will communicate with bitbucket and youtrack using PHP. Anyway anyone who can give me a sample code that can achive login and get youtrack issue info?
Sorry I really don't have any idea where and how to start. if I will be given a sample code that is working (login and get issue info), I can start working on it.
Hoping for help.
Thanks
Please sign in to leave a comment.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://xxxxx.myjetbrains.com/youtrack/rest/user/login");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "login=xxxxx&password=xxxxxx");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec ($ch);
curl_close ($ch);