Created
October 18, 2014 00:14
-
-
Save ycombinator/f23193070bd1dfd5264e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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