API Call to DreamObject



Just getting started and not even sure this will work for me. I want to have JSON or XML files that I can GET using an API request. I’m not even sure where to begin.
How do I upload the files?
How do I make the API request call?
What keys do I need in the header for the request?

I am using the files to make updates for a mobile application.

Any help would be appreciated.


If you just need to be able to fetch files, and you’re okay with them being publicly accessible, the only API you need is HTTP. All objects uploaded to DreamObjects are accessible at a URL of the form:


You can use any HTTP library to make such a request (including a web browser - try clicking that link!). No special headers are necessary.

If that doesn’t do what you need, or if you need further information, please see the documentation at: http://docs.dreamobjects.net/ — libraries are available for a number of major languages. Let us know if you need any additional assistance.


The request does not work for me when I am calling a JSON file. I am using the example you have above with my bucket name and the name of the file as the objectname and all I get returned is:

This XML file does not appear to have any style information associated with it. The document tree is shown below.



That error message indicates that the URL you requested doesn’t match up with any object in the bucket you specified. Check the names of the bucket and object to make sure you haven’t entered either one incorrectly.


I checked the names again and maybe I did enter incorrectly, but now I get this error


My bucket is set to be public right now which really doesn’t make much sense to use dream objects. I could just add the file to a folder and get it the same way (which by the way I have tried and it works), couldn’t I?