|
@@ -26,6 +26,9 @@ function call($method, $url, $data = false) {
|
26
|
26
|
// in case you are using php-api-auth:
|
27
|
27
|
$csrf = call('POST','http://localhost/blog.php/', 'username=admin&password=admin');
|
28
|
28
|
$response = call('GET','http://localhost/blog.php/posts?include=categories,tags,comments&filter=id,eq,1&csrf='. trim($csrf));
|
|
29
|
+
|
|
30
|
+unlink($cookiejar);
|
|
31
|
+
|
29
|
32
|
$jsonObject = json_decode($response,true);
|
30
|
33
|
|
31
|
34
|
$jsonObject = php_crud_api_transform($jsonObject);
|