/** * Converts a draft to an email and sends it. * * @param RemoteApi $client The connection resource * @param array $auth Array of authentication information (email, password) * @param integer $issue_id The issue ID * @param integer $draft_id The sequential id of the draft to send * @return array An array containing draft details. */ public static function sendDraft($client, $auth, $issue_id, $draft_id) { $result = $client->sendDraft($auth[0], $auth[1], $issue_id, (int) $draft_id); echo $result; }