We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c385093 + e9acca1 commit de0f402Copy full SHA for de0f402
src/ESignBsre.php
@@ -3,6 +3,7 @@
3
namespace DiskominfotikBandaAceh\ESignBsrePhp;
4
5
use GuzzleHttp\Client as GuzzleClient;
6
+use PhpParser\Node\Stmt\TryCatch;
7
8
class ESignBsre
9
{
@@ -81,6 +82,18 @@ public function verification()
81
82
return new ESignBsreResponse($response);
83
}
84
85
+ public function statusUser($nik) {
86
+ try {
87
+ $response = $this->http->request('GET', "{$this->getBaseUrl()}/api/user/status/$nik", [
88
+ 'auth' => $this->getAuth()
89
+ ]);
90
+ } catch (\Exception $e) {
91
+ $response = $e->getResponse();
92
+ }
93
+
94
+ return new ESignBsreResponse($response);
95
96
97
private function getAuth(){
98
return [$this->username, $this->password];
99
0 commit comments