Created
August 19, 2011 04:41
-
-
Save mimeoconnect/1156054 to your computer and use it in GitHub Desktop.
Doc APIs - Flyer - Proof - GET
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 | |
| $Proof_ID = "[the id of your proof]"; | |
| $userid = "[user id]"; | |
| $userkey = "[user key]"; | |
| $format = "json"; | |
| $environment = "Sandbox"; | |
| $URL = 'https://developer.mimeo.com/api/spiralnotebook/'.$Proof_ID.'/'; | |
| $QueryString = "?userid=" . $userid; | |
| $QueryString .= "&userkey=" . $userkey; | |
| $QueryString .= "&format=" . urlencode($format); | |
| $QueryString .= "&environment=" . urlencode($environment); | |
| $URL .= $QueryString; | |
| //echo $URL; | |
| $curl_handle = curl_init(); | |
| curl_setopt($curl_handle, CURLOPT_URL, $URL); | |
| curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); | |
| curl_setopt($curl_handle,CURLOPT_SSL_VERIFYPEER,0); | |
| curl_setopt($curl_handle,CURLOPT_CAINFO,'[path to crt]/ca-bundle.crt'); // Make sure and get a ca-bundle.crt and use to verify peer | |
| $buffer = curl_exec($curl_handle); | |
| curl_close($curl_handle); | |
| var_dump($buffer); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment