Skip to content

Instantly share code, notes, and snippets.

@christeredvartsen
Created March 26, 2012 17:44
Show Gist options
  • Save christeredvartsen/2207411 to your computer and use it in GitHub Desktop.
Save christeredvartsen/2207411 to your computer and use it in GitHub Desktop.
Add image via SSL
<?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