Skip to content

Instantly share code, notes, and snippets.

@jessegreathouse
Created April 21, 2011 14:57
Show Gist options
  • Save jessegreathouse/934698 to your computer and use it in GitHub Desktop.
Save jessegreathouse/934698 to your computer and use it in GitHub Desktop.
<?php
//how to merge custom options into your client upon instantiation
$options = array(
'server' => 'http://staging.collegedegrees.com',
);
$client = new cdClient($options);
$client->request();
$client->initHeaders();
if (!$client->isType('html')) {
echo $client->getContent();
exit();
}
echo $client->getContent();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment