Created
January 21, 2016 07:20
-
-
Save hscstudio/a2d58d5f9dfc039aa49a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function actionGetCekResi($resi='2784499770009') | |
| { | |
| $client = new Client(); | |
| $response = $client->createRequest() | |
| ->setMethod('post') | |
| ->setUrl('http://api.cekresi.co.id/cnote.php') | |
| ->setData(['id' => $resi]) | |
| ->send(); | |
| if ($response->isOk) { | |
| echo ($response->content); | |
| } | |
| else{ | |
| echo "error gan"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment