All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
getKimaipluginMetafieldsApiMetafieldsCget | GET /api/metafields | Returns a collection of meta-fields |
\Swagger\Client\Model\MetaFieldRule[] getKimaipluginMetafieldsApiMetafieldsCget($entity)
Returns a collection of meta-fields
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP bearer authorization: bearer
$config = Swagger\Client\Configuration::getDefaultConfiguration()
->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\MetaFieldApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$entity = "entity_example"; // string | The type of object to fetch meta-fields for. Allowed values: timesheet, customer, project, activity, user, expense, invoice - returns all if not given (default: all)
try {
$result = $apiInstance->getKimaipluginMetafieldsApiMetafieldsCget($entity);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MetaFieldApi->getKimaipluginMetafieldsApiMetafieldsCget: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
entity | string | The type of object to fetch meta-fields for. Allowed values: timesheet, customer, project, activity, user, expense, invoice - returns all if not given (default: all) | [optional] |
\Swagger\Client\Model\MetaFieldRule[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]