That's right, try looking into https://github.com/WindowsAzure/azure-sdk-for-php/blob/master/WindowsAzure/Common/Internal/ServiceManagementSettings.php as an example and do similar one for Media Services.