Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aliou/dropbox
A simple Dropbox API wrapper in Elixir. Not production ready, use at your own risk.
https://github.com/aliou/dropbox
Last synced: 1 day ago
JSON representation
A simple Dropbox API wrapper in Elixir. Not production ready, use at your own risk.
- Host: GitHub
- URL: https://github.com/aliou/dropbox
- Owner: aliou
- Created: 2016-07-23T18:36:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-20T21:59:41.000Z (about 8 years ago)
- Last Synced: 2024-04-14T18:17:41.979Z (7 months ago)
- Language: Elixir
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dropbox
A simple Dropbox API wrapper in Elixir. For now only supports uploading.
## Example
```elixir
data = "Hello, world"
file_path = "/test_file.txt"client = %Dropbox.Client{ access_token: "YOUR_ACCESS_TOKEN" }
case Dropbox.upload(client, data, file_path) do
{ :ok, _ } -> IO.puts "Successfully uploaded \"#{file_path}\"."
{ :error, _ } -> IO.puts "An error occured while uploading \"#{file_path}\""
end
```## Installation
Add `dropbox` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:dropbox, github: "aliou/dropbox"}]
end
```