Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 2.17 KB

MetaFieldApi.md

File metadata and controls

60 lines (42 loc) · 2.17 KB

Swagger\Client\MetaFieldApi

All URIs are relative to /

Method HTTP request Description
getKimaipluginMetafieldsApiMetafieldsCget GET /api/metafields Returns a collection of meta-fields

getKimaipluginMetafieldsApiMetafieldsCget

\Swagger\Client\Model\MetaFieldRule[] getKimaipluginMetafieldsApiMetafieldsCget($entity)

Returns a collection of meta-fields

Example

<?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;
}
?>

Parameters

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]

Return type

\Swagger\Client\Model\MetaFieldRule[]

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]