Update companion-app.md

This commit is contained in:
Josh Freeman
2018-08-25 12:59:27 +01:00
committed by GitHub
parent ccb5892f15
commit 5509342380
+4 -5
View File
@@ -97,16 +97,15 @@ foreach (range(0, 15) as $i) {
]); ]);
if ($response->getStatusCode() == 200) { if ($response->getStatusCode() == 200) {
// this is the API JSON data // this is the API JSON data
$data = (string)$response->getBody(); $data = (string)$response->getBody();
// this is the json response from the server, do something with it. // this is the json response from the server, do something with it.
print_r($data); print_r($data);
break; break;
} }
// delay for 250 milliseconds // delay for 250 milliseconds
usleep(250000); usleep(250000);
} }
``` ```