Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbarroca committed Aug 7, 2017
1 parent de5fc92 commit abf51b3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,15 @@ function markaspot_open311_requests_create($data) {
$curl = curl_init();
$service_request_url = 'http:https://www.mopa.co.mz/reports/'.$service_request[0]['service_request_id'];
$service_request_description = $service_request[0]['description'];
$service_request_id = 'Novo problema: '.$service_request[0]['service_request_id'];
$service_request_title = 'Novo problema: '.$service_request[0]['service_request_id'];

$json = <<<json
{
"app_id": "8c492b14-4577-4478-9422-6a19a6553e55",
"included_segments": ["All"],
"url": "$service_request_url",
"contents": {"en": "$service_request_description"},
"headings": {"en": "$service_request_id"}
"headings": {"en": "$service_request_title"}
}
json;

Expand All @@ -313,6 +313,7 @@ json;
"cache-control: no-cache",
"content-type: application/json",
"postman-token: 8be9d18c-cc37-b68c-2e76-620fc6e7cbbb"
),
));

$response = curl_exec($curl);
Expand Down

0 comments on commit abf51b3

Please sign in to comment.