android - Is it possible to work with Dropbox REST API without any libraries, using only GET&POST requests? -
also preferably no start web-browser user logging-in. instance, es file manager shows form within own fragment.
i need application small, while of libraries of few megabytes.
you can access api without library, authentication requires oauth (which requires opening browser). calls core api http header authorization: bearer <token>
, http library do. example, curl
command write file called hello.txt
:
curl -x put https://api-content.dropbox.com/1/files_put/auto/hello.txt?overwrite=false \ -h 'authorization: bearer <your_token>' \ -h 'content-type: text/plain' \ -d 'hello, world!'
see blog posts how call core api from command-line curl , how variety of languages without using oauth or dropbox library.
Comments
Post a Comment