Location: PHPKode > projects > php-opencloud > php-opencloud-master/samples/auth_rax.php
<?php
// (c)2012 Rackspace Hosting
// See COPYING for licensing information

namespace OpenCloud;

require_once('rackspace.php');
require_once('compute.php');

// my credentials
define('AUTHURL', 'https://identity.api.rackspacecloud.com/v2.0/');
$mysecret = array(
    'username' => '{username}',
    'apiKey' => '{apiKey}'
);

// establish our credentials
$connection = new Rackspace(AUTHURL, $mysecret);
Return current item: php-opencloud