https://github.com/reactmore/oyindonesia-php-sdk
oyindonesia-php-sdk
https://github.com/reactmore/oyindonesia-php-sdk
Last synced: 10 months ago
JSON representation
oyindonesia-php-sdk
- Host: GitHub
- URL: https://github.com/reactmore/oyindonesia-php-sdk
- Owner: reactmore
- License: mit
- Created: 2021-09-05T13:18:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-06T09:07:01.000Z (over 4 years ago)
- Last Synced: 2025-01-26T13:29:05.107Z (about 1 year ago)
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OY INDONESIA PHP SDK
Unofficial oyindonesia-php-sdk
[Official Documentations](https://api-docs.oyindonesia.com/)
## Instalations
```
composer install reactmore/oyindonesia-php-sdk
```
## Example
```php
'Your-api-Key',
'stage' => 'productions-or-sandbox',
'username' => 'Your-oy-username',
]);
// EXAMPLE AccountInquiry method InquiryInvoices
// Documentations
// https://api-docs.oyindonesia.com/?shell#get-account-inquiry-invoices-account-inquiry
$AccountInquiry = $data->AccountInquiry()->InquiryInvoices();
// set body
$AccountInquiry->setPayload(['id' => '5ede8690-03f7-4b91-8eaa-4a5aff50c540']);
echo '
';
// Get Respon Data
var_dump($AccountInquiry->getdata());
// Get Respon Data as Json
var_dump($AccountInquiry->getJson());
// Get Respon Data as Object
var_dump($AccountInquiry->getResponse());
// Get Respon Status Code
var_dump($AccountInquiry->getStatusCode());
echo '
';
```