Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.