Created
November 30, 2012 19:53
-
-
Save sidchilling/4178129 to your computer and use it in GitHub Desktop.
POST request with Requests
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
| <?php | |
| # Include Requests.php and autoloader | |
| $response = Requests::request($url, array(), $data, Requests::POST); # empty array for headers if you want to send any | |
| if ($response->success) { | |
| $response = json_decode($response->body); | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment