Created
March 26, 2012 17:44
-
-
Save christeredvartsen/2207411 to your computer and use it in GitHub Desktop.
Add image via SSL
This file contains 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 | |
$host = 'https://imbo-ssl.example.com'; | |
$publicKey = '<public key>'; | |
$privateKey = '<private key>'; | |
$driver = new ImboClient\Driver\Curl(array( | |
'sslVerifyPeer' => false, | |
)); | |
$client = new ImboClient\Client($host, $publicKey, $privateKey, $driver); | |
$client->addImage('/some/image.jpg'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment