I'm new to HipChat API and I'm trying to make a simple slashcommand which returns a card. What am I doing wrong here (PHP file):
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "[REMOVED]"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array( 'color' => 'gray', 'message' => 'Test message', 'notify' => true, 'card' => array( 'title' => 'Test card', 'format' => 'compact', 'style' => 'application', 'url' => '[REMOVED]', 'description' => 'lorem impsum', 'id' => '234567890' ), 'message_format' => 'html' ))); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec ($ch); curl_close ($ch);
All help is appreciated.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event