Skip to content

Instantly share code, notes, and snippets.

@ycombinator
Created October 18, 2014 00:14
Show Gist options
  • Select an option

  • Save ycombinator/f23193070bd1dfd5264e to your computer and use it in GitHub Desktop.

Select an option

Save ycombinator/f23193070bd1dfd5264e to your computer and use it in GitHub Desktop.
var pkgcloud = require('pkgcloud')
// Connect to Rackspace Cloud
var rackspaceClient = pkgcloud.storage.createClient({
provider: 'rackspace',
username: process.env.RAX_USERNAME,
apiKey: process.env.RAX_API_KEY,
region: process.env.RAX_REGION
})
// List objects
rackspaceClient.getFiles({ name: 'logos' }, function(err, files) {
console.error(err)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment