Nick Craig-Wood
fe9596bfbb
Remove extra / in Metadata request
...
This fixes the issuing of a request with a doubled slash in the URL.
This causes Dropbox to issue a 301 redirect to the URL without the
`//` which causes an extra HTTP transaction.
2016-04-24 11:09:33 +01:00
Nick Craig-Wood
65cf94b76c
Make Entry.Size and ChunkUploadResponse.Offset be int64 - fixes #19
...
This allows the code to deal with files > 2 GB in size. Previous to
this change a file > 2 GB would cause a JSON unmarshal error.
This is a breaking change to the API. However the Go compiler will
throw errors at the right places when compiling so should be easy to
fix up the code.
2015-08-03 21:03:46 +01:00
Arnaud Ysmal
daee057d5b
Golint and allow SharedFolders to returns the list of shared folders
2015-04-25 11:37:14 +02:00
Brian Smith
93a842e25d
Support for the shared folder API call
2015-04-25 10:50:03 +02:00
Brian Smith
55eb966d46
Add support to read modifier data in metadata
2015-04-25 10:50:03 +02:00
Brian Smith
285abe6e58
Support setting the redirect url and authorizing via a provided code
...
This is useful when authorizing users on a website.
2015-04-25 10:50:03 +02:00
Michael Eugene Shelton
4f7d6e9bd0
Adds a method to supply a context to the db.client
2015-04-14 10:04:55 -04:00
Arnaud Ysmal
b9979d969d
Fix sharing file without short URL ( Fix #16 )
2015-02-26 19:27:41 +01:00
Artiom Di
113ba79265
Added (*Dropbox).LatestCursor() call and tests
...
See: https://www.dropbox.com/developers/core/docs#delta-latest-cursor
2014-12-18 16:42:59 +02:00
Arnaud Ysmal
5bb11ef380
Update to support new oauth2 API ( Fixes #11 )
2014-12-17 19:32:12 +01:00
Arnaud Ysmal
9c5d0890e3
Use new auto value for RootDirectory
2014-12-06 16:41:37 +01:00
Arnaud Ysmal
c30fa0c6e4
Update to support new oauth2 API
2014-12-06 16:41:37 +01:00
Simon Allen
5858852ef5
Fix minor documentation issue
2014-10-01 10:11:44 +10:00
Simon Allen
85aed1f9bd
Fix partial Download()'s that use Range headers.
2014-10-01 09:51:12 +10:00
Arnaud Ysmal
a7ca85be35
Switch from github.com/golang/oauth2 to github.com/stacktic/oauth2
2014-09-07 19:15:26 +02:00
Arnaud Ysmal
348b447074
Sync with golang/oauth2 ( Fix #6 )
2014-09-07 18:54:24 +02:00
Arnaud Ysmal
67aa2e3d8c
Sync with golang/oauth2
2014-08-14 22:45:47 +02:00
Arnaud Ysmal
eb9bd0a1ae
Use github.com/golang/oauth2
2014-08-10 18:52:39 +02:00
Nick Craig-Wood
0a9c3185c6
Escape paths in urls - fixes #4
2014-07-28 23:53:25 +01:00
Arnaud Ysmal
811d4db755
Handle unexpected HTTP error codes
2014-07-13 12:13:36 +02:00
Nick Craig-Wood
8f46d993e2
Preserve HTTP staus codes in errors if possible
...
Dropbox being a REST driven service often returns useful information
in the HTTP error code. Make sure we return these in a custom Error
type if possible.
2014-07-13 10:29:54 +01:00
Arnaud Ysmal
01efebcc1a
Improve HTTP status code handling ( Fix #1 )
2014-07-12 20:05:57 +02:00
Arnaud Ysmal
558d54553c
Add support for the datastore API (early beta)
2014-03-23 18:58:53 +01:00
Arnaud Ysmal
2496f9db0a
Parse time as time.Time
2014-03-23 18:48:54 +01:00
Arnaud Ysmal
c03c8754dc
Return the array instead of a pointer to the array for Search and Revisions.
2014-03-17 21:36:19 +01:00
Arnaud Ysmal
a573b1dd4f
Send locale
2014-03-12 19:24:36 +01:00
Arnaud Ysmal
2e03dbd4e0
Fix copy
2014-03-12 19:22:05 +01:00
Arnaud Ysmal
47f279a224
Lintify
2014-02-24 19:22:35 +01:00
Arnaud Ysmal
cb92bcb643
Return the ChunkUploadResponse when err is EOF
2014-02-20 20:53:22 +01:00
Arnaud Ysmal
f21fab56e0
Use MixedCaps
2014-02-20 20:41:00 +01:00
Arnaud Ysmal
680ec4d023
Initial import
2014-02-19 23:15:46 +01:00