Skip to content

Latest commit

 

History

History
169 lines (118 loc) · 5.8 KB

ApprovalBundleApiApi.md

File metadata and controls

169 lines (118 loc) · 5.8 KB

Swagger\Client\ApprovalBundleApiApi

All URIs are relative to /

Method HTTP request Description
getKimaipluginApprovalApiApprovalovertimeOvertimeforyearuntil GET /api/overtime_year
getKimaipluginApprovalApiApprovalovertimeweeklyWeeklyovertime GET /api/weekly_overtime
postKimaipluginApprovalApiApprovalbundleapiSubmitweek POST /api/add_to_approve

getKimaipluginApprovalApiApprovalovertimeOvertimeforyearuntil

getKimaipluginApprovalApiApprovalovertimeOvertimeforyearuntil($user, $date)

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\ApprovalBundleApiApi(
    // 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
);
$user = "user_example"; // string | User ID to get information for
$date = "date_example"; // string | Date to get overtime until/including this date: Y-m-d

try {
    $apiInstance->getKimaipluginApprovalApiApprovalovertimeOvertimeforyearuntil($user, $date);
} catch (Exception $e) {
    echo 'Exception when calling ApprovalBundleApiApi->getKimaipluginApprovalApiApprovalovertimeOvertimeforyearuntil: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
user string User ID to get information for [optional]
date string Date to get overtime until/including this date: Y-m-d [optional]

Return type

void (empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

getKimaipluginApprovalApiApprovalovertimeweeklyWeeklyovertime

getKimaipluginApprovalApiApprovalovertimeweeklyWeeklyovertime($user, $date)

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\ApprovalBundleApiApi(
    // 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
);
$user = "user_example"; // string | User ID to get information for
$date = "date_example"; // string | Date to get weekly overtime overview up from this date: Y-m-d

try {
    $apiInstance->getKimaipluginApprovalApiApprovalovertimeweeklyWeeklyovertime($user, $date);
} catch (Exception $e) {
    echo 'Exception when calling ApprovalBundleApiApi->getKimaipluginApprovalApiApprovalovertimeweeklyWeeklyovertime: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
user string User ID to get information for [optional]
date string Date to get weekly overtime overview up from this date: Y-m-d [optional]

Return type

void (empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

postKimaipluginApprovalApiApprovalbundleapiSubmitweek

postKimaipluginApprovalApiApprovalbundleapiSubmitweek($user, $date)

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\ApprovalBundleApiApi(
    // 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
);
$user = "user_example"; // string | User ID to get information for
$date = "date_example"; // string | Date as monday of selected week: Y-m-d

try {
    $apiInstance->postKimaipluginApprovalApiApprovalbundleapiSubmitweek($user, $date);
} catch (Exception $e) {
    echo 'Exception when calling ApprovalBundleApiApi->postKimaipluginApprovalApiApprovalbundleapiSubmitweek: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
user string User ID to get information for [optional]
date string Date as monday of selected week: Y-m-d [optional]

Return type

void (empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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