Created
August 19, 2011 06:35
-
-
Save mimeoconnect/1156196 to your computer and use it in GitHub Desktop.
Doc APIs - Spiral Notebook - Proof - POST
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 | |
| $pdfurl = "[url of pdf]"; | |
| $userid = "[user id]"; | |
| $userkey = "[user key]"; | |
| $format = "json"; | |
| $environment = "Sandbox"; | |
| $curl_handle = curl_init(); | |
| curl_setopt($curl_handle, CURLOPT_URL, 'https://developer.mimeo.com/api/spiralnotebook/proof/'); | |
| curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); | |
| curl_setopt($curl_handle, CURLOPT_POST, 1); | |
| curl_setopt($curl_handle, CURLOPT_POSTFIELDS, array( | |
| 'format' => 'json', | |
| 'userid' => $userid, | |
| 'userkey' => $userkey, | |
| 'pdfurl' => $pdfurl, | |
| 'environment' => $environment | |
| )); | |
| $buffer = curl_exec($curl_handle); | |
| curl_close($curl_handle); | |
| var_dump($buffer); | |
| //$result = json_decode($buffer); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment