Cleanup cookiejar

This commit is contained in:
Maurits van der Schee 2017-02-04 17:46:08 +01:00
commit 89c095a127

View file

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