Skip to content

Instantly share code, notes, and snippets.

@hscstudio
Created January 21, 2016 07:20
Show Gist options
  • Select an option

  • Save hscstudio/a2d58d5f9dfc039aa49a to your computer and use it in GitHub Desktop.

Select an option

Save hscstudio/a2d58d5f9dfc039aa49a to your computer and use it in GitHub Desktop.
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