Api for get ticket by ticket id

This commit is contained in:
Vijay Sebastian
2016-02-22 11:48:25 +05:30
parent 3569d6ac48
commit 58e3f86152
3 changed files with 42 additions and 0 deletions

View File

@@ -396,5 +396,18 @@ class TestController extends Controller {
return response()->json(compact('error', 'file', 'line'));
}
}
public function getTicketById(){
try{
$url = $this->server . "helpdesk/my-tickets?id=1&api_key=9p41T2XFZ34YRZJUNQAdmM7iV0Rr1CjN&token=" . \Config::get('app.token');
$_this = new self();
$respose = $_this->callGetApi($url);
return $respose;
} catch (\Exception $e) {
$error = $e->getMessage();
$line = $e->getLine();
$file = $e->getFile();
return response()->json(compact('error', 'file', 'line'));
}
}
}