REST api for PHP

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.
Found this code and working, but how can I transfer the session and tell to the rest api that I'm logged in and can execute new codes like getting issue info and etc?

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"");
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);
I'm able to make this work.. but sad as the community / forum don't have care? or no active helper? Thanks anyway

Please sign in to leave a comment.