$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_URL => 'https://api.assembla.com/v1/spaces/cloudways-dev/tickets.json'
));
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
$response = curl_exec($ch);
print_r($response);
Array ( [url] => https://api.assembla.com/v1/spaces/cloudways/tickets.json [content_type] => [http_code] => 0 [header_size] => 0 [request_size] => 0 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0 [namelookup_time] => 0 [connect_time] => 0.218 [pretransfer_time] => 0 [size_upload] => 0 [size_download] => 0 [speed_download] => 0 [speed_upload] => 0 [download_content_length] => -1 [upload_content_length] => -1 [starttransfer_time] => 0 [redirect_time] => 0 )
waiting forward for your response.
Best Regards
Ralph
$api = new Assembla_API();
$api->postCreateTicket(array('space_id' => 'some-space-id'), array('ticket' => array('summary' => 'A test ticket')));
include( 'Assembla/Exception.php' );
include( 'Core/API.php' );
include( 'Assembla/API.php' );
$api = new Assembla_API();
$api->setUserName('user-name')->setPassword('pass');
$api->postCreateTicket(array('space_id' => 'my-spaceid'), array('ticket' => array('summary' => 'A test ticket')));
--
On Jun 21, 2017, at 10:28, moyed....@cloudways.com wrote:is this still applicable ?
--
You received this message because you are subscribed to the Google Groups "Assembla API Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-d...@googlegroups.com.
To post to this group, send email to assembla...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.