PHP で Rackspace Cloud サーバーの Cloud File API を使用しています。サーバーに直接ファイルをダウンロードするための一時 URL を生成したいので、get_temp()
この API のメソッドを使用していますが、このメソッドを使用する前に、Meta Data キーを設定する必要があります。私のコンテナ用。どうすればこれを行うことができますか。
public function get_temp_url($key, $expires, $method)
{
$expires += time();
$url = $this->container->cfs_http->getStorageUrl() . '/' . $this->container->name . '/' . $this->name;
return $url . '?temp_url_sig=' . hash_hmac('sha1', strtoupper($method) .
"\n" . $expires . "\n" . parse_url($url, PHP_URL_PATH), $key) .
'&temp_url_expires=' . $expires;
}