Skip to content

Commit d15737e

Browse files
Update README.md
1 parent b9ca878 commit d15737e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,20 @@ Kode yang disediakan ada beberapa yaitu tanda tangan digital invisible, verifika
4040

4141
- Tanda tangan digital invisible
4242
```php
43-
$esign = new ESignBSrE($baseUrl, $username, $password);
43+
$esign = new DiskominfotikBandaAceh\ESignBsrePhp\ESignBSrE($baseUrl, $username, $password);
4444
$response = $esign->setFile($file, $filename)->sign($nik, $passphrase);
45+
$response->getStatus(); //Get status response (int)
46+
$response->getErrors(); //Get error response
47+
$response->getData(); //Get data as blob pdf
4548
```
4649

4750
- Verifikasi tanda tangan digital
4851
```php
49-
$esign = new ESignBSrE();
52+
$esign = new DiskominfotikBandaAceh\ESignBsrePhp\ESignBSrE($baseUrl, $username, $password);
5053
$response = $esign->setFile($file, $filename)->verification();
51-
```
52-
53-
### Mengambil Response
54-
```php
55-
$status = $response->getStatus();
56-
$data = $response->getData();
57-
$errors = $response->getErrors();
54+
$response->getStatus(); //Get status response (int)
55+
$response->getErrors(); //Get error response
56+
$response->getData(); //Get data as array (tergantung dari API BSrE)
5857
```
5958

6059
<!--### Testing

0 commit comments

Comments
 (0)