Back to Collection Items
<?php
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
// For versions of Chilkat < 10.0.0, use new COM('Chilkat_9_5_0.Chilkat.Http')
$http = new COM("Chilkat.Http");
$http->BasicAuth = 1;
$http->Login = '{{webservice_key}}';
$http->Password = 'password';
// For versions of Chilkat < 10.0.0, use new COM('Chilkat_9_5_0.Chilkat.JsonObject')
$queryParams = new COM("Chilkat.JsonObject");
$queryParams->UpdateString('schema','blank');
// resp is a Chilkat.HttpResponse
$resp = $http->QuickRequestParams('GET','https://localhost:8080/api/articles',$queryParams);
if ($http->LastMethodSuccess == 0) {
print $http->LastErrorText . "\n";
exit;
}
print $resp->StatusCode . "\n";
print $resp->BodyStr . "\n";
?>
Curl Command
curl -G -d "schema=blank"
-u '{{webservice_key}}:password'
https://localhost:8080/api/articles
Postman Collection Item JSON
{
"name": "Get article blank schema",
"request": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{webservice_url}}/api/articles?schema=blank",
"host": [
"{{webservice_url}}"
],
"path": [
"api",
"articles"
],
"query": [
{
"key": "schema",
"value": "blank"
}
]
}
},
"response": [
]
}