Skip to content

Instantly share code, notes, and snippets.

@DragonBe
Created November 6, 2012 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DragonBe/4022228 to your computer and use it in GitHub Desktop.
Save DragonBe/4022228 to your computer and use it in GitHub Desktop.
My trial to access CDN API of Windows Azure
public function listCdnEndpoints()
{
$context = new HttpCallContext();
$context->setMethod(Resources::HTTP_GET);
$context->setPath($this->_getCdnEndpointsPath());
$context->addStatusCode(Resources::STATUS_OK);
// echo '<pre>' . var_export($context,1) . '</pre>';die;
$response = $this->sendContext($context);
$serialized = $this->dataSerializer->unserialize($response->getBody());
return GetStorageServiceCdnResult::create($serialized);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment