Skip to content

Commit

Permalink
update penggunaan API
Browse files Browse the repository at this point in the history
  • Loading branch information
lintangtimur committed Apr 27, 2023
1 parent f8739c6 commit bbc6834
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,57 @@
Unofficial API cek pajak esamsat jateng

![image](https://user-images.githubusercontent.com/16686825/234086044-10b56c4f-439b-4ef1-a6a5-894ab1c45515.png)

## Installation
-----

Require this package with composer using the following command:

```bash
composer require lintangtimur/cek-pajak-api
```

## Example
----

#### Register
```php
<?php
use Stelin\CekPajakApi\CekPajak;

$form = [
"name"=> 'lintang',
'email'=> '[email protected]',
'password'=>'123456'
];

$reg = new CekPajak()
$reg = (new CekPajak)->register($form);
```

#### Login
```php
<?php
use Stelin\CekPajakApi\CekPajak;

$form = [
"name"=> 'lintang',
'email'=> '[email protected]',
'password'=>'123456'
];

$login = new CekPajak()
$login = (new CekPajak)->login($form)->accessToken;
```

#### Check Pajak
```php
<?php
use Stelin\CekPajakApi\CekPajak;

$cp = new CekPajak($accessToken)
$cp->cekPajak('H','1234','AA')->totalPkbPokok;

//Melihat rincian akhir pajak
$a->cekPajak('H','1234','AA')->rincian->masaAkhirBerlakuPajak;
```

0 comments on commit bbc6834

Please sign in to comment.