Archived
1
0
Commit Graph

50 Commits

Author SHA1 Message Date
Nick Craig-Wood
8304fd7ea3 Deprecate the v1 API 2021-02-07 15:02:09 +01:00
58f839b210 Merge pull request #24 from ncw/trim-metadata
Remove extra / in Metadata request
2016-04-24 14:40:17 +02:00
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
b7d75fe255 Merge pull request #20 from ncw/size-to-int64
Make Entry.Size and ChunkUploadResponse.Offset be int64 - fixes #19
2015-08-04 19:56:54 +02: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
daee057d5b Golint and allow SharedFolders to returns the list of shared folders 2015-04-25 11:37:14 +02:00
6250fdfc3b Merge pull request #15 from sirwart/master
Allow easier use of the library in servers
2015-04-25 10:52:07 +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
ba894b878f Merge pull request #17 from meshelton/context
Adds a method to supply a context to the db.client
2015-04-15 19:46:30 +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
b9979d969d Fix sharing file without short URL (Fix #16) 2015-02-26 19:27:41 +01:00
4423ac7952 Add Delete method to Datastore (Fixes #13) 2015-02-19 20:18:33 +01:00
2b5a13d88e Merge pull request #12 from kron4eg/latest_cursor
Added (*Dropbox).LatestCursor() call and tests
2014-12-18 20:41:58 +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
5bb11ef380 Update to support new oauth2 API (Fixes #11) 2014-12-17 19:32:12 +01:00
2d085bf608 Update RootDirectory in tests 2014-12-06 16:47:56 +01:00
9c5d0890e3 Use new auto value for RootDirectory 2014-12-06 16:41:37 +01:00
c30fa0c6e4 Update to support new oauth2 API 2014-12-06 16:41:37 +01:00
a07cde5996 Merge pull request #7 from garfunkel/master
Fix partial Download()'s that use Range headers.
2014-10-01 19:45:55 +02: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
a7ca85be35 Switch from github.com/golang/oauth2 to github.com/stacktic/oauth2 2014-09-07 19:15:26 +02:00
c2d783465a Use the transport from from oauth2.Config 2014-09-07 19:14:55 +02:00
348b447074 Sync with golang/oauth2 (Fix #6) 2014-09-07 18:54:24 +02:00
67aa2e3d8c Sync with golang/oauth2 2014-08-14 22:45:47 +02:00
eb9bd0a1ae Use github.com/golang/oauth2 2014-08-10 18:52:39 +02:00
2d1aafcc97 Merge pull request #5 from ncw/urlescape
Escape paths in urls - fixes #4
2014-07-29 07:51:30 +02:00
Nick Craig-Wood
0a9c3185c6 Escape paths in urls - fixes #4 2014-07-28 23:53:25 +01:00
d8e2508d11 Add travis file 2014-07-28 21:31:12 +02:00
47f8bf4c1d Merge pull request #3 from ncw/go1.1compatibility
Make compatible with go 1.1
2014-07-19 16:57:48 +02:00
Nick Craig-Wood
04ed0a20f9 Make compatible with go 1.1 2014-07-19 15:36:35 +01:00
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
8022b93829 Fix typos 2014-07-12 20:06:22 +02:00
01efebcc1a Improve HTTP status code handling (Fix #1) 2014-07-12 20:05:57 +02:00
558d54553c Add support for the datastore API (early beta) 2014-03-23 18:58:53 +01:00
fd846090f2 Add tests 2014-03-23 18:49:17 +01:00
2496f9db0a Parse time as time.Time 2014-03-23 18:48:54 +01:00
c03c8754dc Return the array instead of a pointer to the array for Search and Revisions. 2014-03-17 21:36:19 +01:00
a573b1dd4f Send locale 2014-03-12 19:24:36 +01:00
2e03dbd4e0 Fix copy 2014-03-12 19:22:05 +01:00
47f279a224 Lintify 2014-02-24 19:22:35 +01:00
cb92bcb643 Return the ChunkUploadResponse when err is EOF 2014-02-20 20:53:22 +01:00
f21fab56e0 Use MixedCaps 2014-02-20 20:41:00 +01:00
8eaf250013 Update README.md 2014-02-20 18:57:34 +01:00
87ea2501b4 Update README.md 2014-02-19 23:16:26 +01:00
680ec4d023 Initial import 2014-02-19 23:15:46 +01:00
2b824ec48e Initial commit 2014-02-19 14:12:56 -08:00