Created
December 15, 2014 16:23
-
-
Save waleoyediran/fc04038d15891c93e00e 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
$object = array( | |
'id' => 123, | |
'message' => 'Testing' | |
); | |
$jsonObject = json_encode($object); | |
$headers ("Content-type: application/json") | |
$resp = Yii::app()->curl->post($url, $jsonObject, $headers); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment