Skip to content

This is the generated php client for the flowaccount open-api

Notifications You must be signed in to change notification settings

flowaccount/flowaccount-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAPIClient-php

FlowAccount.com โปรแกรมบัญชีออนไลน์ใช้งานง่าย สำหรับธุรกิจที่พึ่งเริ่มต้น # Introduction Servers Production site: https://www.flowaccount.com api url: https://openapi.flowaccount.com/v1 Beta test site: http://sandbox-new.flowaccount.com/ api url: https://openapi.flowaccount.com/test

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 2-oas3
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen For more information, please visit http://wwww.flowaccount.com

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

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



$apiInstance = new OpenAPI\Client\Api\AuthenticationApi(
    // 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()
);
$content_type = 'application/x-www-form-urlencoded'; // string | 
$grant_type = 'grant_type_example'; // string | 
$scope = 'scope_example'; // string | 
$client_id = 'client_id_example'; // string | 
$client_secret = 'client_secret_example'; // string | 

try {
    $result = $apiInstance->tokenPost($content_type, $grant_type, $scope, $client_id, $client_secret);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthenticationApi->tokenPost: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

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

Class Method HTTP request Description
AuthenticationApi tokenPost POST /token Generate Access Token
BillingNotesApi billingNotesEmailDocumentPost POST /billing-notes/email-document Send email billing notes document.
BillingNotesApi billingNotesGet GET /billing-notes Get list all billing notes documents.
BillingNotesApi billingNotesIdAttachmentPost POST /billing-notes/{id}/attachment Add Attachment to billing notes document.
BillingNotesApi billingNotesIdDelete DELETE /billing-notes/{id} Get billing notes document.
BillingNotesApi billingNotesIdGet GET /billing-notes/{id} Get billing notes document.
BillingNotesApi billingNotesIdStatusKeyStatusIdPost POST /billing-notes/{id}/status-key/{statusId} Change status of billing notes document.
BillingNotesApi billingNotesInlinePost POST /billing-notes/inline Create billing notes document with discount and tax inline.
BillingNotesApi billingNotesPost POST /billing-notes Create billing notes document.
BillingNotesApi billingNotesSharedocumentPost POST /billing-notes/sharedocument Share link billing notes document.
CashInvoiceApi cashInvoicesEmailDocumentPost POST /cash-invoices/email-document Send email cash invoices document.
CashInvoiceApi cashInvoicesGet GET /cash-invoices Get list all cash invoices documents
CashInvoiceApi cashInvoicesIdAttachmentPost POST /cash-invoices/{id}/attachment Add Attachment to cash invoices document.
CashInvoiceApi cashInvoicesIdDelete DELETE /cash-invoices/{id} Get cash invoices document.
CashInvoiceApi cashInvoicesIdGet GET /cash-invoices/{id} Get cash invoices document.
CashInvoiceApi cashInvoicesIdPaymentPost POST /cash-invoices/{id}/payment Change paid status of cash invoices document.
CashInvoiceApi cashInvoicesIdStatusKeyStatusIdPost POST /cash-invoices/{id}/status-key/{statusId} Change status of cash invoices document.
CashInvoiceApi cashInvoicesInlinePost POST /cash-invoices/inline Create cash invoices document with discount and tax inline.
CashInvoiceApi cashInvoicesPost POST /cash-invoices Create cash invoices document.
CashInvoiceApi cashInvoicesSharedocumentPost POST /cash-invoices/sharedocument Share link cash invoices document.
ContactsApi contactsGet GET /contacts Get list all contacts.
ContactsApi contactsIdDelete DELETE /contacts/{id} Delete contacts.
ContactsApi contactsIdGet GET /contacts/{id} Get contacts.
ContactsApi contactsIdPut PUT /contacts/{id} Update contacts.
ContactsApi contactsPost POST /contacts Create contacts
ExpensesApi expensesCategoriesAccountingGet GET /expenses/categories/accounting Accounting categorys expenses document.
ExpensesApi expensesCategoriesBusinessGet GET /expenses/categories/business Business categorys expenses document.
ExpensesApi expensesEmailDocumentPost POST /expenses/email-document Send email expenses document.
ExpensesApi expensesGet GET /expenses Get list all expenses documents.
ExpensesApi expensesIdAttachmentPost POST /expenses/{id}/attachment Add Attachment to expenses.
ExpensesApi expensesIdDelete DELETE /expenses/{id} Get expenses document.
ExpensesApi expensesIdGet GET /expenses/{id} Get expenses document.
ExpensesApi expensesIdPaymentPost POST /expenses/{id}/payment Change paid status of expenses document.
ExpensesApi expensesIdStatusKeyStatusIdPost POST /expenses/{id}/status-key/{statusId} Change status of expenses document.
ExpensesApi expensesInlinePost POST /expenses/inline Create expenses document with discount and tax inline.
ExpensesApi expensesPost POST /expenses Create expenses document.
ExpensesApi expensesSharedocumentPost POST /expenses/sharedocument Share link expenses documents.
ProductsApi productsGet GET /products Get list all products.
ProductsApi productsIdDelete DELETE /products/{id} Delete products.
ProductsApi productsIdGet GET /products/{id} Get products.
ProductsApi productsIdPut PUT /products/{id} Update products.
ProductsApi productsPost POST /products Create products.
PurchaseOrderApi purchasesOrdersEmailDocumentPost POST /purchases-orders/email-document Send email purchase order document.
PurchaseOrderApi purchasesOrdersGet GET /purchases-orders Get list all purchase order documents.
PurchaseOrderApi purchasesOrdersIdAttachmentPost POST /purchases-orders/{id}/attachment Add Attachment to purchase order document.
PurchaseOrderApi purchasesOrdersIdDelete DELETE /purchases-orders/{id} Get purchase order document.
PurchaseOrderApi purchasesOrdersIdGet GET /purchases-orders/{id} Get purchase order document.
PurchaseOrderApi purchasesOrdersIdStatusKeyStatusIdPost POST /purchases-orders/{id}/status-key/{statusId} Change status of purchase order document.
PurchaseOrderApi purchasesOrdersInlinePost POST /purchases-orders/inline Create purchase order document with discount and tax inline.
PurchaseOrderApi purchasesOrdersPost POST /purchases-orders Create purchase order document.
PurchaseOrderApi purchasesOrdersSharedocumentPost POST /purchases-orders/sharedocument Share link purchase order document.
QuotationsApi quotationsEmailDocumentPost POST /quotations/email-document Send email quotations document.
QuotationsApi quotationsGet GET /quotations Get list all quotations documents.
QuotationsApi quotationsIdAttachmentPost POST /quotations/{id}/attachment Add Attachment to quotations document.
QuotationsApi quotationsIdDelete DELETE /quotations/{id} Get quotations document.
QuotationsApi quotationsIdGet GET /quotations/{id} Get quotations document.
QuotationsApi quotationsIdStatusKeyStatusIdPost POST /quotations/{id}/status-key/{statusId} Change status of quotations document.
QuotationsApi quotationsInlinePost POST /quotations/inline Create quotations document with discount and tax inline.
QuotationsApi quotationsPost POST /quotations Create quotations document.
QuotationsApi quotationsSharedocumentPost POST /quotations/sharedocument Share link quotations document.
ReceiptApi receiptsEmailDocumentPost POST /receipts/email-document Send email receipt document.
ReceiptApi receiptsGet GET /receipts Get list all receipt documents
ReceiptApi receiptsIdAttachmentPost POST /receipts/{id}/attachment Add Attachment to receipt document.
ReceiptApi receiptsIdDelete DELETE /receipts/{id} Get receipt document.
ReceiptApi receiptsIdGet GET /receipts/{id} Get receipt document.
ReceiptApi receiptsIdPaymentPost POST /receipts/{id}/payment Change paid status of receipt document.
ReceiptApi receiptsIdStatusKeyStatusIdPost POST /receipts/{id}/status-key/{statusId} Change status of receipt document.
ReceiptApi receiptsInlinePost POST /receipts/inline Create receipt document with discount and tax inline.
ReceiptApi receiptsPost POST /receipts Create cash receipt document.
ReceiptApi receiptsSharedocumentPost POST /receipts/sharedocument Share link receipt document.
ReceivingInventoryApi purchasesEmailDocumentPost POST /purchases/email-document Send email receiving inventory document.
ReceivingInventoryApi purchasesGet GET /purchases Get list all receiving inventory documents.
ReceivingInventoryApi purchasesIdAttachmentPost POST /purchases/{id}/attachment Add Attachment to receiving inventory document.
ReceivingInventoryApi purchasesIdDelete DELETE /purchases/{id} Get receiving inventory document.
ReceivingInventoryApi purchasesIdGet GET /purchases/{id} Get receiving inventory document.
ReceivingInventoryApi purchasesIdStatusKeyStatusIdPost POST /purchases/{id}/status-key/{statusId} Change status of receiving inventory document.
ReceivingInventoryApi purchasesInlinePost POST /purchases/inline Create receiving inventory document with discount and tax inline.
ReceivingInventoryApi purchasesPost POST /purchases Create receiving inventory document.
ReceivingInventoryApi purchasesSharedocumentPost POST /purchases/sharedocument Share link receiving inventory document.
TaxInvoiceApi taxInvoicesEmailDocumentPost POST /tax-invoices/email-document Send Email tax invoice document
TaxInvoiceApi taxInvoicesGet GET /tax-invoices Get list all tax invocie documents.
TaxInvoiceApi taxInvoicesIdAttachmentPost POST /tax-invoices/{id}/attachment Add Attachment to tax Invoices document.
TaxInvoiceApi taxInvoicesIdDelete DELETE /tax-invoices/{id} Get tax invoices document.
TaxInvoiceApi taxInvoicesIdGet GET /tax-invoices/{id} Get tax invoices document.
TaxInvoiceApi taxInvoicesIdPaymentPost POST /tax-invoices/{id}/payment Change paid status of tax-invoice document.
TaxInvoiceApi taxInvoicesIdStatusKeyStatusIdPost POST /tax-invoices/{id}/status-key/{statusId} Change status of tax invoices document.
TaxInvoiceApi taxInvoicesInlinePost POST /tax-invoices/inline Create tax invocie document with discount and tax inline.
TaxInvoiceApi taxInvoicesPost POST /tax-invoices Create tax invocie document.
TaxInvoiceApi taxInvoicesSharedocumentPost POST /tax-invoices/sharedocument Share link tax invoice document.
WithholdingTaxApi withholdingTaxesEmailDocumentPost POST /withholding-taxes/email-document Send email withholding tax document.
WithholdingTaxApi withholdingTaxesGet GET /withholding-taxes Get list all withholding tax documents.
WithholdingTaxApi withholdingTaxesIdAttachmentPost POST /withholding-taxes/{id}/attachment Add Attachment to expenses.
WithholdingTaxApi withholdingTaxesIdDelete DELETE /withholding-taxes/{id} Get withholding tax document.
WithholdingTaxApi withholdingTaxesIdGet GET /withholding-taxes/{id} Get withholding tax document.
WithholdingTaxApi withholdingTaxesIdStatusKeyStatusIdPost POST /withholding-taxes/{id}/status-key/{statusId} Change status of withholding tax document.
WithholdingTaxApi withholdingTaxesPost POST /withholding-taxes Create withholding tax document.
WithholdingTaxApi withholdingTaxesSharedocumentPost POST /withholding-taxes/sharedocument Share link withholding tax documents.

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

Email: developer@flowaccount.com Tel: 02-026-8989

About

This is the generated php client for the flowaccount open-api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published