Skip to content

Latest commit

 

History

History
124 lines (80 loc) · 3.39 KB

BusinessInfomationApi.md

File metadata and controls

124 lines (80 loc) · 3.39 KB

OpenAPI\Client\BusinessInfomationApi

All URIs are relative to https://openapi.flowaccount.com/v1

Method HTTP request Description
companyInfoGet GET /company/info Get business infomation
companyInfoPut PUT /company/info Edit business infomation

companyInfoGet

\OpenAPI\Client\Model\CompanyInfoResponse companyInfoGet($authorization)

Get business infomation

เรียกดูข้อมูลธรุกิจ

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


$apiInstance = new OpenAPI\Client\Api\BusinessInfomationApi(
    // 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()
);
$authorization = 'Bearer accessToken'; // string | 

try {
    $result = $apiInstance->companyInfoGet($authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BusinessInfomationApi->companyInfoGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
authorization string [default to 'Bearer accessToken']

Return type

\OpenAPI\Client\Model\CompanyInfoResponse

Authorization

No authorization required

HTTP request headers

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

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

companyInfoPut

\OpenAPI\Client\Model\CompanyInfoResponse companyInfoPut($authorization, $company_info)

Edit business infomation

แก้ไขข้อมูลธรุกิจ

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


$apiInstance = new OpenAPI\Client\Api\BusinessInfomationApi(
    // 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()
);
$authorization = 'Bearer accessToken'; // string | 
$company_info = new \OpenAPI\Client\Model\CompanyInfo(); // \OpenAPI\Client\Model\CompanyInfo | 

try {
    $result = $apiInstance->companyInfoPut($authorization, $company_info);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BusinessInfomationApi->companyInfoPut: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
authorization string [default to 'Bearer accessToken']
company_info \OpenAPI\Client\Model\CompanyInfo

Return type

\OpenAPI\Client\Model\CompanyInfoResponse

Authorization

No authorization required

HTTP request headers

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

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