dropbox_api 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.rubocop.yml +14 -0
- data/.rubocop_todo.yml +442 -0
- data/Gemfile +5 -1
- data/TODO.md +16 -7
- data/api_coverage.md +7 -7
- data/docs/DropboxApi.html +4 -4
- data/docs/DropboxApi/Authenticator.html +3 -3
- data/docs/DropboxApi/ChunkedUploader.html +3 -3
- data/docs/DropboxApi/Client.html +212 -26
- data/docs/DropboxApi/ConnectionBuilder.html +3 -3
- data/docs/DropboxApi/Endpoints.html +3 -3
- data/docs/DropboxApi/Endpoints/Auth.html +3 -3
- data/docs/DropboxApi/Endpoints/Auth/TokenRevoke.html +3 -3
- data/docs/DropboxApi/Endpoints/Base.html +3 -3
- data/docs/DropboxApi/Endpoints/ContentDownload.html +3 -3
- data/docs/DropboxApi/Endpoints/ContentUpload.html +3 -3
- data/docs/DropboxApi/Endpoints/Files.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Copy.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/CopyReferenceGet.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/CopyReferenceSave.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/CreateFileRequest.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/CreateFolder.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Delete.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Download.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/GetMetadata.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/GetPreview.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/GetTemporaryLink.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/GetThumbnail.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/GetThumbnailBatch.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/ListFolder.html +30 -11
- data/docs/DropboxApi/Endpoints/Files/ListFolderContinue.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/ListFolderGetLatestCursor.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/ListFolderLongpoll.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/ListRevisions.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Move.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/PermanentlyDelete.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Restore.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/SaveUrl.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/SaveUrlCheckJobStatus.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Search.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Upload.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/UploadSessionAppendV2.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/UploadSessionFinish.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/UploadSessionStart.html +3 -3
- data/docs/DropboxApi/Endpoints/Rpc.html +4 -4
- data/docs/DropboxApi/Endpoints/RpcContent.html +3 -3
- data/docs/DropboxApi/Endpoints/RpcNotify.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing.html +5 -5
- data/docs/DropboxApi/Endpoints/Sharing/AddFileMember.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/AddFolderMember.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/CreateSharedLinkWithSettings.html +103 -12
- data/docs/DropboxApi/Endpoints/Sharing/GetSharedLinkMetadata.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/ListFileMembers.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/ListFolderMembers.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/ListSharedLinks.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/RevokeSharedLink.html +293 -0
- data/docs/DropboxApi/Endpoints/Sharing/ShareFolder.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/UnshareFile.html +3 -3
- data/docs/DropboxApi/Endpoints/Users.html +3 -3
- data/docs/DropboxApi/Endpoints/Users/GetAccount.html +3 -3
- data/docs/DropboxApi/Endpoints/Users/GetAccountBatch.html +3 -3
- data/docs/DropboxApi/Endpoints/Users/GetCurrentAccount.html +3 -3
- data/docs/DropboxApi/Endpoints/Users/GetSpaceUsage.html +3 -3
- data/docs/DropboxApi/Errors.html +5 -5
- data/docs/DropboxApi/Errors/AddFileMemberError.html +3 -3
- data/docs/DropboxApi/Errors/AddFolderMemberError.html +3 -3
- data/docs/DropboxApi/Errors/AddMemberSelectorError.html +3 -3
- data/docs/DropboxApi/Errors/AlreadySharedError.html +3 -3
- data/docs/DropboxApi/Errors/BadPathError.html +3 -3
- data/docs/DropboxApi/Errors/BasicError.html +4 -4
- data/docs/DropboxApi/Errors/CantCopySharedFolderError.html +3 -3
- data/docs/DropboxApi/Errors/CantMoveFolderIntoItselfError.html +3 -3
- data/docs/DropboxApi/Errors/CantNestSharedFolderError.html +3 -3
- data/docs/DropboxApi/Errors/CantShareOutsideTeamError.html +3 -3
- data/docs/DropboxApi/Errors/ContainsSharedFolderError.html +3 -3
- data/docs/DropboxApi/Errors/ConversionError.html +3 -3
- data/docs/DropboxApi/Errors/CreateFileRequestError.html +3 -3
- data/docs/DropboxApi/Errors/CreateFolderError.html +3 -3
- data/docs/DropboxApi/Errors/CreateSharedLinkWithSettingsError.html +3 -3
- data/docs/DropboxApi/Errors/CursorClosedError.html +3 -3
- data/docs/DropboxApi/Errors/CursorNotClosedError.html +3 -3
- data/docs/DropboxApi/Errors/DeleteError.html +3 -3
- data/docs/DropboxApi/Errors/DisallowedNameError.html +3 -3
- data/docs/DropboxApi/Errors/DisallowedSharedLinkPolicyError.html +3 -3
- data/docs/DropboxApi/Errors/DownloadError.html +3 -3
- data/docs/DropboxApi/Errors/DownloadFailedError.html +3 -3
- data/docs/DropboxApi/Errors/EmailUnverifiedError.html +3 -3
- data/docs/DropboxApi/Errors/FileAncestorConflictError.html +3 -3
- data/docs/DropboxApi/Errors/FileConflictError.html +3 -3
- data/docs/DropboxApi/Errors/FileMemberActionError.html +3 -3
- data/docs/DropboxApi/Errors/FolderConflictError.html +3 -3
- data/docs/DropboxApi/Errors/GetAccountError.html +3 -3
- data/docs/DropboxApi/Errors/GetCopyReferenceError.html +3 -3
- data/docs/DropboxApi/Errors/GetMetadataError.html +3 -3
- data/docs/DropboxApi/Errors/GroupDeletedError.html +3 -3
- data/docs/DropboxApi/Errors/GroupNotOnTeamError.html +3 -3
- data/docs/DropboxApi/Errors/HttpError.html +3 -3
- data/docs/DropboxApi/Errors/InProgressError.html +3 -3
- data/docs/DropboxApi/Errors/InsideAppFolderError.html +3 -3
- data/docs/DropboxApi/Errors/InsideOsxPackageError.html +3 -3
- data/docs/DropboxApi/Errors/InsidePublicFolderError.html +3 -3
- data/docs/DropboxApi/Errors/InsideSharedFolderError.html +3 -3
- data/docs/DropboxApi/Errors/InsufficientPlanError.html +3 -3
- data/docs/DropboxApi/Errors/InsufficientSpaceError.html +3 -3
- data/docs/DropboxApi/Errors/InternalError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidCommentError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidCopyReferenceError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidCursorError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidDropboxIdError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidEmailError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidFileError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidIdError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidMemberError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidPathError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidRevisionError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidSettingsError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidUrlError.html +3 -3
- data/docs/DropboxApi/Errors/IsAppFolderError.html +3 -3
- data/docs/DropboxApi/Errors/IsFileError.html +3 -3
- data/docs/DropboxApi/Errors/IsFolderError.html +3 -3
- data/docs/DropboxApi/Errors/IsOsxPackageError.html +3 -3
- data/docs/DropboxApi/Errors/IsPublicFolderError.html +3 -3
- data/docs/DropboxApi/Errors/ListFolderContinueError.html +3 -3
- data/docs/DropboxApi/Errors/ListFolderError.html +3 -3
- data/docs/DropboxApi/Errors/ListFolderLongpollError.html +3 -3
- data/docs/DropboxApi/Errors/ListRevisionsError.html +3 -3
- data/docs/DropboxApi/Errors/ListSharedLinksError.html +3 -3
- data/docs/DropboxApi/Errors/LookupError.html +3 -3
- data/docs/DropboxApi/Errors/MalformedPathError.html +3 -3
- data/docs/DropboxApi/Errors/NoAccountError.html +3 -3
- data/docs/DropboxApi/Errors/NoPermissionError.html +3 -3
- data/docs/DropboxApi/Errors/NoWritePermissionError.html +3 -3
- data/docs/DropboxApi/Errors/NotAMemberError.html +3 -3
- data/docs/DropboxApi/Errors/NotFileError.html +3 -3
- data/docs/DropboxApi/Errors/NotFolderError.html +3 -3
- data/docs/DropboxApi/Errors/NotFoundError.html +3 -3
- data/docs/DropboxApi/Errors/PollError.html +3 -3
- data/docs/DropboxApi/Errors/PreviewError.html +3 -3
- data/docs/DropboxApi/Errors/RateLimitError.html +3 -3
- data/docs/DropboxApi/Errors/RelocationError.html +3 -3
- data/docs/DropboxApi/Errors/RestoreError.html +3 -3
- data/docs/DropboxApi/Errors/RestrictedContentError.html +3 -3
- data/docs/DropboxApi/Errors/RevokeSharedLinkError.html +164 -0
- data/docs/DropboxApi/Errors/SaveCopyReferenceError.html +3 -3
- data/docs/DropboxApi/Errors/SaveUrlError.html +3 -3
- data/docs/DropboxApi/Errors/SearchError.html +3 -3
- data/docs/DropboxApi/Errors/SettingsError.html +3 -3
- data/docs/DropboxApi/Errors/ShareFolderError.html +3 -3
- data/docs/DropboxApi/Errors/SharePathError.html +3 -3
- data/docs/DropboxApi/Errors/SharedFolderAccessError.html +3 -3
- data/docs/DropboxApi/Errors/SharedLinkAccessDeniedError.html +3 -3
- data/docs/DropboxApi/Errors/SharedLinkAlreadyExistsError.html +3 -3
- data/docs/DropboxApi/Errors/SharedLinkError.html +3 -3
- data/docs/DropboxApi/Errors/SharedLinkMalformedError.html +143 -0
- data/docs/DropboxApi/Errors/SharedLinkNotFoundError.html +3 -3
- data/docs/DropboxApi/Errors/SharingFileAccessError.html +3 -3
- data/docs/DropboxApi/Errors/SharingUserError.html +3 -3
- data/docs/DropboxApi/Errors/TeamFolderError.html +3 -3
- data/docs/DropboxApi/Errors/TeamPolicyDisallowsMemberPolicyError.html +3 -3
- data/docs/DropboxApi/Errors/ThumbnailBatchError.html +3 -3
- data/docs/DropboxApi/Errors/ThumbnailError.html +3 -3
- data/docs/DropboxApi/Errors/TooManyFilesError.html +3 -3
- data/docs/DropboxApi/Errors/TooManyMembersError.html +3 -3
- data/docs/DropboxApi/Errors/TooManyPendingInvitesError.html +3 -3
- data/docs/DropboxApi/Errors/TooManyRequestsError.html +3 -3
- data/docs/DropboxApi/Errors/TooManySharedFolderTargetsError.html +3 -3
- data/docs/DropboxApi/Errors/TooManyWriteOperationsError.html +3 -3
- data/docs/DropboxApi/Errors/UnmountedError.html +3 -3
- data/docs/DropboxApi/Errors/UnshareFileError.html +3 -3
- data/docs/DropboxApi/Errors/UnsupportedContentError.html +3 -3
- data/docs/DropboxApi/Errors/UnsupportedExtensionError.html +3 -3
- data/docs/DropboxApi/Errors/UnsupportedImageError.html +3 -3
- data/docs/DropboxApi/Errors/UnsupportedLinkTypeError.html +3 -3
- data/docs/DropboxApi/Errors/UnverifiedDropboxId.html +3 -3
- data/docs/DropboxApi/Errors/UploadError.html +3 -3
- data/docs/DropboxApi/Errors/UploadSessionFinishError.html +3 -3
- data/docs/DropboxApi/Errors/UploadSessionLookupError.html +3 -3
- data/docs/DropboxApi/Errors/UploadSessionOffsetError.html +3 -3
- data/docs/DropboxApi/Errors/UploadWriteFailedError.html +3 -3
- data/docs/DropboxApi/Errors/WriteConflictError.html +3 -3
- data/docs/DropboxApi/Errors/WriteError.html +3 -3
- data/docs/DropboxApi/Metadata.html +3 -3
- data/docs/DropboxApi/Metadata/AccessLevel.html +3 -3
- data/docs/DropboxApi/Metadata/AddFileMemberResult.html +3 -3
- data/docs/DropboxApi/Metadata/AddMember.html +3 -3
- data/docs/DropboxApi/Metadata/Base.html +3 -3
- data/docs/DropboxApi/Metadata/BasicAccount.html +3 -3
- data/docs/DropboxApi/Metadata/CommitInfo.html +3 -3
- data/docs/DropboxApi/Metadata/Deleted.html +3 -3
- data/docs/DropboxApi/Metadata/Dimensions.html +3 -3
- data/docs/DropboxApi/Metadata/Field.html +3 -3
- data/docs/DropboxApi/Metadata/File.html +3 -3
- data/docs/DropboxApi/Metadata/FileLinkMetadata.html +3 -3
- data/docs/DropboxApi/Metadata/FileMemberAction.html +3 -3
- data/docs/DropboxApi/Metadata/FileRequest.html +3 -3
- data/docs/DropboxApi/Metadata/Folder.html +3 -3
- data/docs/DropboxApi/Metadata/FolderLinkMetadata.html +3 -3
- data/docs/DropboxApi/Metadata/FolderSharingInfo.html +3 -3
- data/docs/DropboxApi/Metadata/LinkPermissions.html +3 -3
- data/docs/DropboxApi/Metadata/Location.html +3 -3
- data/docs/DropboxApi/Metadata/MediaInfo.html +3 -3
- data/docs/DropboxApi/Metadata/MediaMetadata.html +3 -3
- data/docs/DropboxApi/Metadata/Member.html +3 -3
- data/docs/DropboxApi/Metadata/MemberAction.html +3 -3
- data/docs/DropboxApi/Metadata/MemberActionList.html +3 -3
- data/docs/DropboxApi/Metadata/MemberPermission.html +3 -3
- data/docs/DropboxApi/Metadata/MemberPermissionList.html +3 -3
- data/docs/DropboxApi/Metadata/Name.html +3 -3
- data/docs/DropboxApi/Metadata/ParentFolderAccessInfo.html +3 -3
- data/docs/DropboxApi/Metadata/PhotoMetadata.html +3 -3
- data/docs/DropboxApi/Metadata/Resource.html +3 -3
- data/docs/DropboxApi/Metadata/SharedFolder.html +3 -3
- data/docs/DropboxApi/Metadata/SharedFolderPolicy.html +3 -3
- data/docs/DropboxApi/Metadata/SharedLink.html +3 -3
- data/docs/DropboxApi/Metadata/SharedLinkMetadata.html +3 -3
- data/docs/DropboxApi/Metadata/SpaceAllocation.html +3 -3
- data/docs/DropboxApi/Metadata/SpaceUsage.html +3 -3
- data/docs/DropboxApi/Metadata/Tag.html +3 -3
- data/docs/DropboxApi/Metadata/Team.html +3 -3
- data/docs/DropboxApi/Metadata/TeamMemberInfo.html +3 -3
- data/docs/DropboxApi/Metadata/ThumbnailBatchResultData.html +3 -3
- data/docs/DropboxApi/Metadata/ThumbnailBatchResultEntry.html +3 -3
- data/docs/DropboxApi/Metadata/UploadSessionCursor.html +3 -3
- data/docs/DropboxApi/Metadata/VideoMetadata.html +3 -3
- data/docs/DropboxApi/Metadata/WriteMode.html +3 -3
- data/docs/DropboxApi/MiddleWare.html +3 -3
- data/docs/DropboxApi/MiddleWare/DecodeResult.html +3 -3
- data/docs/DropboxApi/MiddleWare/Stack.html +3 -3
- data/docs/DropboxApi/OptionsValidator.html +4 -4
- data/docs/DropboxApi/ResultBuilder.html +3 -3
- data/docs/DropboxApi/Results.html +3 -3
- data/docs/DropboxApi/Results/AddFileMemberResultList.html +3 -3
- data/docs/DropboxApi/Results/Base.html +3 -3
- data/docs/DropboxApi/Results/BasicAccountBatch.html +3 -3
- data/docs/DropboxApi/Results/GetCopyReferenceResult.html +3 -3
- data/docs/DropboxApi/Results/GetTemporaryLinkResult.html +3 -3
- data/docs/DropboxApi/Results/GetThumbnailBatchResult.html +3 -3
- data/docs/DropboxApi/Results/ListFolderGetLatestCursorResult.html +3 -3
- data/docs/DropboxApi/Results/ListFolderLongpollResult.html +3 -3
- data/docs/DropboxApi/Results/ListFolderResult.html +3 -3
- data/docs/DropboxApi/Results/ListRevisionsResult.html +3 -3
- data/docs/DropboxApi/Results/ListSharedLinksResult.html +3 -3
- data/docs/DropboxApi/Results/SaveCopyReferenceResult.html +3 -3
- data/docs/DropboxApi/Results/SaveUrlJobStatus.html +3 -3
- data/docs/DropboxApi/Results/SaveUrlResult.html +3 -3
- data/docs/DropboxApi/Results/Search.html +3 -3
- data/docs/DropboxApi/Results/Search/Match.html +3 -3
- data/docs/DropboxApi/Results/SearchResult.html +3 -3
- data/docs/DropboxApi/Results/ShareFolderLaunch.html +3 -3
- data/docs/DropboxApi/Results/SharedFileMembers.html +3 -3
- data/docs/DropboxApi/Results/SharedFolderMembers.html +3 -3
- data/docs/DropboxApi/Results/UploadSessionStart.html +3 -3
- data/docs/DropboxApi/Results/VoidResult.html +3 -3
- data/docs/DropboxScaffoldBuilder.html +3 -3
- data/docs/_index.html +29 -8
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +3 -3
- data/docs/file.api_coverage.html +3 -3
- data/docs/file.rails_setup.html +3 -3
- data/docs/frames.html +1 -1
- data/docs/index.html +3 -3
- data/docs/method_list.html +230 -214
- data/docs/top-level-namespace.html +3 -3
- data/dropbox_api.gemspec +1 -3
- data/lib/dropbox_api.rb +16 -1
- data/lib/dropbox_api/endpoints/base.rb +3 -1
- data/lib/dropbox_api/endpoints/file_requests/create_file_request.rb +2 -2
- data/lib/dropbox_api/endpoints/files/copy_batch.rb +35 -0
- data/lib/dropbox_api/endpoints/files/copy_batch_check.rb +20 -0
- data/lib/dropbox_api/endpoints/files/create_folder_batch.rb +40 -0
- data/lib/dropbox_api/endpoints/files/create_folder_batch_check.rb +21 -0
- data/lib/dropbox_api/endpoints/files/delete_batch.rb +22 -0
- data/lib/dropbox_api/endpoints/files/delete_batch_check.rb +20 -0
- data/lib/dropbox_api/endpoints/files/upload.rb +1 -1
- data/lib/dropbox_api/endpoints/sharing/create_shared_link_with_settings.rb +1 -1
- data/lib/dropbox_api/errors/create_folder_batch_error.rb +7 -0
- data/lib/dropbox_api/errors/delete_error.rb +3 -2
- data/lib/dropbox_api/errors/relocation_batch_entry_error.rb +9 -0
- data/lib/dropbox_api/results/copy_batch_result.rb +14 -0
- data/lib/dropbox_api/results/create_folder_batch_result.rb +20 -0
- data/lib/dropbox_api/results/create_folder_batch_result_entry.rb +19 -0
- data/lib/dropbox_api/results/delete_batch_result.rb +20 -0
- data/lib/dropbox_api/results/delete_batch_result_entry.rb +15 -0
- data/lib/dropbox_api/results/relocation_batch_result.rb +20 -0
- data/lib/dropbox_api/results/relocation_batch_result_entry.rb +15 -0
- data/lib/dropbox_api/version.rb +1 -1
- data/yardoc/rspec.rb +5 -5
- metadata +37 -18
data/Gemfile
CHANGED
|
@@ -4,6 +4,10 @@ gemspec
|
|
|
4
4
|
|
|
5
5
|
group :development do
|
|
6
6
|
# Documentation
|
|
7
|
-
gem 'yard-rspec', :git => "https://github.com/Jesus/yard-spec-plugin.git"
|
|
8
7
|
gem 'redcarpet'
|
|
8
|
+
gem 'yard-rspec', :git => "https://github.com/Jesus/yard-spec-plugin.git"
|
|
9
|
+
|
|
10
|
+
# Code linting
|
|
11
|
+
gem 'rubocop', :require => false
|
|
12
|
+
gem 'rubocop-rspec', :require => false
|
|
9
13
|
end
|
data/TODO.md
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Immediate
|
|
2
2
|
|
|
3
|
-
-
|
|
3
|
+
- Test all added classes since last release.
|
|
4
|
+
- Add scaffoldings for the new endpoints.
|
|
5
|
+
- Test all new paths to build errors & results.
|
|
6
|
+
- Update coverage document.
|
|
7
|
+
- Clear out Rubocop's TODO.
|
|
8
|
+
- Release!
|
|
9
|
+
- Update the guide to contribute, show how an endpoint is implemented and
|
|
10
|
+
documented.
|
|
11
|
+
|
|
12
|
+
# Mid-term
|
|
13
|
+
|
|
14
|
+
- Remove dependency on Faraday.
|
|
4
15
|
- Complete full [API coverage](api_coverage.md).
|
|
5
16
|
|
|
6
|
-
#
|
|
17
|
+
# Dreaming
|
|
7
18
|
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
- Supporting streams would be great.
|
|
11
|
-
- Add a layer to handle pagination, use `Enumerable`.
|
|
19
|
+
- Support streams.
|
|
20
|
+
- Add a layer to handle pagination.
|
data/api_coverage.md
CHANGED
|
@@ -38,16 +38,16 @@ API call | Status
|
|
|
38
38
|
API call | Status
|
|
39
39
|
--- | :---:
|
|
40
40
|
`/copy` | 🌕
|
|
41
|
-
`/copy_batch` |
|
|
42
|
-
`/copy_batch/check` |
|
|
41
|
+
`/copy_batch` | 🌕
|
|
42
|
+
`/copy_batch/check` | 🌕
|
|
43
43
|
`/copy_reference/get` | 🌕
|
|
44
44
|
`/copy_reference/save` | 🌕
|
|
45
45
|
`/create_folder` | 🌕
|
|
46
|
-
`/create_folder_batch` |
|
|
47
|
-
`/create_folder_batch/check` |
|
|
46
|
+
`/create_folder_batch` | 🌕
|
|
47
|
+
`/create_folder_batch/check` | 🌕
|
|
48
48
|
`/delete` | 🌕
|
|
49
|
-
`/delete_batch` |
|
|
50
|
-
`/delete_batch/check` |
|
|
49
|
+
`/delete_batch` | 🌕
|
|
50
|
+
`/delete_batch/check` | 🌕
|
|
51
51
|
`/download` | 🌔
|
|
52
52
|
`/download_zip` | 🌑
|
|
53
53
|
`/get_metadata` | 🌕
|
|
@@ -131,7 +131,7 @@ API call | Status
|
|
|
131
131
|
`/relinquish_folder_membership` | 🌑
|
|
132
132
|
`/remove_file_member_2` | 🌑
|
|
133
133
|
`/remove_folder_member` | 🌑
|
|
134
|
-
`/revoke_shared_link` |
|
|
134
|
+
`/revoke_shared_link` | 🌕
|
|
135
135
|
`/set_access_inheritance` | 🌑
|
|
136
136
|
`/share_folder` | 🌕
|
|
137
137
|
`/transfer_folder` | 🌑
|
data/docs/DropboxApi.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Module: DropboxApi
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.9.
|
|
9
|
+
— Documentation by YARD 0.9.16
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
<dt id="VERSION-constant" class="">VERSION =
|
|
110
110
|
|
|
111
111
|
</dt>
|
|
112
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.1.
|
|
112
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.1.16</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
|
113
113
|
|
|
114
114
|
</dl>
|
|
115
115
|
|
|
@@ -125,9 +125,9 @@
|
|
|
125
125
|
</div>
|
|
126
126
|
|
|
127
127
|
<div id="footer">
|
|
128
|
-
Generated on
|
|
128
|
+
Generated on Sat Feb 16 18:39:17 2019 by
|
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
130
|
-
0.9.
|
|
130
|
+
0.9.16 (ruby-2.3.3).
|
|
131
131
|
</div>
|
|
132
132
|
|
|
133
133
|
</div>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: DropboxApi::Authenticator
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.9.
|
|
9
|
+
— Documentation by YARD 0.9.16
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -207,9 +207,9 @@
|
|
|
207
207
|
</div>
|
|
208
208
|
|
|
209
209
|
<div id="footer">
|
|
210
|
-
Generated on
|
|
210
|
+
Generated on Sat Feb 16 18:39:18 2019 by
|
|
211
211
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
212
|
-
0.9.
|
|
212
|
+
0.9.16 (ruby-2.3.3).
|
|
213
213
|
</div>
|
|
214
214
|
|
|
215
215
|
</div>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: DropboxApi::ChunkedUploader
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.9.
|
|
9
|
+
— Documentation by YARD 0.9.16
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -401,9 +401,9 @@
|
|
|
401
401
|
</div>
|
|
402
402
|
|
|
403
403
|
<div id="footer">
|
|
404
|
-
Generated on
|
|
404
|
+
Generated on Sat Feb 16 18:39:18 2019 by
|
|
405
405
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
406
|
-
0.9.
|
|
406
|
+
0.9.16 (ruby-2.3.3).
|
|
407
407
|
</div>
|
|
408
408
|
|
|
409
409
|
</div>
|
data/docs/DropboxApi/Client.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: DropboxApi::Client
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.9.
|
|
9
|
+
— Documentation by YARD 0.9.16
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -306,6 +306,29 @@
|
|
|
306
306
|
<span class="summary_desc"><div class='inline'><p>List shared links of this user.</p>
|
|
307
307
|
</div></span>
|
|
308
308
|
|
|
309
|
+
</li>
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
<li class="public ">
|
|
313
|
+
<span class="summary_signature">
|
|
314
|
+
|
|
315
|
+
<a href="#revoke_shared_link-instance_method" title="#revoke_shared_link (instance method)">#<strong>revoke_shared_link</strong>(url) ⇒ Object </a>
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
</span>
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
<span class="summary_desc"><div class='inline'><p>Revoke a shared link.</p>
|
|
330
|
+
</div></span>
|
|
331
|
+
|
|
309
332
|
</li>
|
|
310
333
|
|
|
311
334
|
|
|
@@ -2488,6 +2511,9 @@ the default visibility is :public. (The resolved
|
|
|
2488
2511
|
visibility, though, may depend on other aspects such as team and shared
|
|
2489
2512
|
folder settings).</p>
|
|
2490
2513
|
|
|
2514
|
+
<p>NOTE: The <code>settings</code> parameter will only work for pro, business or
|
|
2515
|
+
enterprise accounts. It will return no permission error otherwise.</p>
|
|
2516
|
+
|
|
2491
2517
|
|
|
2492
2518
|
</div>
|
|
2493
2519
|
</div>
|
|
@@ -2530,6 +2556,58 @@ created shared link This field is optional.</p>
|
|
|
2530
2556
|
|
|
2531
2557
|
</ul>
|
|
2532
2558
|
|
|
2559
|
+
|
|
2560
|
+
|
|
2561
|
+
|
|
2562
|
+
|
|
2563
|
+
|
|
2564
|
+
<p class="tag_title">Options Hash (<tt>settings</tt>):</p>
|
|
2565
|
+
<ul class="option">
|
|
2566
|
+
|
|
2567
|
+
<li>
|
|
2568
|
+
<span class="name">requested_visibility</span>
|
|
2569
|
+
<span class="type">(<tt>Object</tt>)</span>
|
|
2570
|
+
<span class="default">
|
|
2571
|
+
|
|
2572
|
+
</span>
|
|
2573
|
+
|
|
2574
|
+
— <div class='inline'><p>The requested access for this
|
|
2575
|
+
shared link. This field is optional. Must be one of "public",
|
|
2576
|
+
"team_only" or "password".</p>
|
|
2577
|
+
</div>
|
|
2578
|
+
|
|
2579
|
+
</li>
|
|
2580
|
+
|
|
2581
|
+
<li>
|
|
2582
|
+
<span class="name">link_password</span>
|
|
2583
|
+
<span class="type">(<tt>Object</tt>)</span>
|
|
2584
|
+
<span class="default">
|
|
2585
|
+
|
|
2586
|
+
</span>
|
|
2587
|
+
|
|
2588
|
+
— <div class='inline'><p>If requested_visibility is
|
|
2589
|
+
"password" this is needed to specify the password to access the link.
|
|
2590
|
+
This field is optional.</p>
|
|
2591
|
+
</div>
|
|
2592
|
+
|
|
2593
|
+
</li>
|
|
2594
|
+
|
|
2595
|
+
<li>
|
|
2596
|
+
<span class="name">expires</span>
|
|
2597
|
+
<span class="type">(<tt>Object</tt>)</span>
|
|
2598
|
+
<span class="default">
|
|
2599
|
+
|
|
2600
|
+
</span>
|
|
2601
|
+
|
|
2602
|
+
— <div class='inline'><p>Expiration time of the shared link. By default
|
|
2603
|
+
the link won't expire. This field is optional.</p>
|
|
2604
|
+
</div>
|
|
2605
|
+
|
|
2606
|
+
</li>
|
|
2607
|
+
|
|
2608
|
+
</ul>
|
|
2609
|
+
|
|
2610
|
+
|
|
2533
2611
|
<p class="tag_title">Returns:</p>
|
|
2534
2612
|
<ul class="return">
|
|
2535
2613
|
|
|
@@ -2551,19 +2629,39 @@ created shared link This field is optional.</p>
|
|
|
2551
2629
|
<pre class="lines">
|
|
2552
2630
|
|
|
2553
2631
|
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2632
|
+
31
|
|
2633
|
+
32
|
|
2634
|
+
33
|
|
2635
|
+
34
|
|
2636
|
+
35
|
|
2637
|
+
36
|
|
2638
|
+
37
|
|
2639
|
+
38
|
|
2640
|
+
39
|
|
2641
|
+
40
|
|
2642
|
+
41
|
|
2643
|
+
42
|
|
2644
|
+
43
|
|
2645
|
+
44
|
|
2646
|
+
45</pre>
|
|
2559
2647
|
</td>
|
|
2560
2648
|
<td>
|
|
2561
|
-
<pre class="code"><span class="info file"># File 'lib/dropbox_api/endpoints/sharing/create_shared_link_with_settings.rb', line
|
|
2649
|
+
<pre class="code"><span class="info file"># File 'lib/dropbox_api/endpoints/sharing/create_shared_link_with_settings.rb', line 31</span>
|
|
2562
2650
|
|
|
2563
2651
|
<span class='id identifier rubyid_add_endpoint'>add_endpoint</span> <span class='symbol'>:create_shared_link_with_settings</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_settings'>settings</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='op'>|</span>
|
|
2564
|
-
<span class='
|
|
2565
|
-
</span
|
|
2566
|
-
|
|
2652
|
+
<span class='id identifier rubyid_validate_options'>validate_options</span><span class='lparen'>(</span><span class='lbracket'>[</span>
|
|
2653
|
+
<span class='symbol'>:requested_visibility</span><span class='comma'>,</span>
|
|
2654
|
+
<span class='symbol'>:link_password</span><span class='comma'>,</span>
|
|
2655
|
+
<span class='symbol'>:expires</span>
|
|
2656
|
+
<span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_settings'>settings</span><span class='rparen'>)</span>
|
|
2657
|
+
<span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:requested_visibility</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>public</span><span class='tstring_end'>'</span></span>
|
|
2658
|
+
<span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:link_password</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='kw'>nil</span>
|
|
2659
|
+
<span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:expires</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='kw'>nil</span>
|
|
2660
|
+
|
|
2661
|
+
<span class='id identifier rubyid_perform_request'>perform_request</span><span class='lparen'>(</span><span class='lbrace'>{</span>
|
|
2662
|
+
<span class='symbol'>:path</span> <span class='op'>=></span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span>
|
|
2663
|
+
<span class='symbol'>:settings</span><span class='op'>=></span> <span class='id identifier rubyid_settings'>settings</span>
|
|
2664
|
+
<span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
2567
2665
|
<span class='kw'>end</span></pre>
|
|
2568
2666
|
</td>
|
|
2569
2667
|
</tr>
|
|
@@ -2672,7 +2770,7 @@ deleting a folder. If the given "rev" doesn't match, a
|
|
|
2672
2770
|
</li>
|
|
2673
2771
|
|
|
2674
2772
|
<li>
|
|
2675
|
-
|
|
2773
|
+
won't delete the file if `parent_rev` doesn't match
|
|
2676
2774
|
<table class="source_code test_code">
|
|
2677
2775
|
<tr>
|
|
2678
2776
|
<td>
|
|
@@ -4817,6 +4915,21 @@ is set for photo and video. The default for this field is <code>false</code>.</p
|
|
|
4817
4915
|
returned for deleted file or folder, otherwise
|
|
4818
4916
|
<span class='object_link'><a href="Errors/NotFoundError.html" title="DropboxApi::Errors::NotFoundError (class)">Errors::NotFoundError</a></span>
|
|
4819
4917
|
will be raised. The default for this field is <code>false</code>.</p>
|
|
4918
|
+
</div>
|
|
4919
|
+
|
|
4920
|
+
</li>
|
|
4921
|
+
|
|
4922
|
+
<li>
|
|
4923
|
+
<span class="name">limit</span>
|
|
4924
|
+
<span class="type">(<tt>Numeric</tt>)</span>
|
|
4925
|
+
<span class="default">
|
|
4926
|
+
|
|
4927
|
+
</span>
|
|
4928
|
+
|
|
4929
|
+
— <div class='inline'><p>If present, will specify max number of
|
|
4930
|
+
results per request (Note:
|
|
4931
|
+
<a href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_parent" title="Dropbox docs">Dropbox docs</a> indicate
|
|
4932
|
+
this is "approximate", and more may be returned)</p>
|
|
4820
4933
|
</div>
|
|
4821
4934
|
|
|
4822
4935
|
</li>
|
|
@@ -4843,7 +4956,7 @@ will be raised. The default for this field is <code>false</code>.</p>
|
|
|
4843
4956
|
9</pre>
|
|
4844
4957
|
</td>
|
|
4845
4958
|
<td>
|
|
4846
|
-
<pre class="code"><span class="info file"># File 'spec/endpoints/files/list_folder_spec.rb', line
|
|
4959
|
+
<pre class="code"><span class="info file"># File 'spec/endpoints/files/list_folder_spec.rb', line 28</span>
|
|
4847
4960
|
|
|
4848
4961
|
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_list_folder'>list_folder</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
|
4849
4962
|
|
|
@@ -4866,7 +4979,7 @@ will be raised. The default for this field is <code>false</code>.</p>
|
|
|
4866
4979
|
15</pre>
|
|
4867
4980
|
</td>
|
|
4868
4981
|
<td>
|
|
4869
|
-
<pre class="code"><span class="info file"># File 'spec/endpoints/files/list_folder_spec.rb', line
|
|
4982
|
+
<pre class="code"><span class="info file"># File 'spec/endpoints/files/list_folder_spec.rb', line 28</span>
|
|
4870
4983
|
|
|
4871
4984
|
<span class='id identifier rubyid_expect'>expect</span> <span class='lbrace'>{</span>
|
|
4872
4985
|
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_list_folder'>list_folder</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/unexisting_folder</span><span class='tstring_end'>"</span></span>
|
|
@@ -4891,7 +5004,7 @@ will be raised. The default for this field is <code>false</code>.</p>
|
|
|
4891
5004
|
23</pre>
|
|
4892
5005
|
</td>
|
|
4893
5006
|
<td>
|
|
4894
|
-
<pre class="code"><span class="info file"># File 'spec/endpoints/files/list_folder_spec.rb', line
|
|
5007
|
+
<pre class="code"><span class="info file"># File 'spec/endpoints/files/list_folder_spec.rb', line 28</span>
|
|
4895
5008
|
|
|
4896
5009
|
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_list_folder'>list_folder</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
|
4897
5010
|
|
|
@@ -4920,7 +5033,7 @@ will be raised. The default for this field is <code>false</code>.</p>
|
|
|
4920
5033
|
33</pre>
|
|
4921
5034
|
</td>
|
|
4922
5035
|
<td>
|
|
4923
|
-
<pre class="code"><span class="info file"># File 'spec/endpoints/files/list_folder_spec.rb', line
|
|
5036
|
+
<pre class="code"><span class="info file"># File 'spec/endpoints/files/list_folder_spec.rb', line 28</span>
|
|
4924
5037
|
|
|
4925
5038
|
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_list_shared_links'>list_shared_links</span><span class='lparen'>(</span><span class='symbol'>:path</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path_prefix'>path_prefix</span><span class='embexpr_end'>}</span><span class='tstring_content'>/shared_folder</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
4926
5039
|
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_list_folder'>list_folder</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>shared_link:</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_links'>links</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span>
|
|
@@ -4947,7 +5060,7 @@ will be raised. The default for this field is <code>false</code>.</p>
|
|
|
4947
5060
|
39</pre>
|
|
4948
5061
|
</td>
|
|
4949
5062
|
<td>
|
|
4950
|
-
<pre class="code"><span class="info file"># File 'spec/endpoints/files/list_folder_spec.rb', line
|
|
5063
|
+
<pre class="code"><span class="info file"># File 'spec/endpoints/files/list_folder_spec.rb', line 28</span>
|
|
4951
5064
|
|
|
4952
5065
|
<span class='id identifier rubyid_expect'>expect</span> <span class='lbrace'>{</span>
|
|
4953
5066
|
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_list_folder'>list_folder</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/img.png</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='symbol'>:invalid_arg</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>value</span><span class='tstring_end'>"</span></span>
|
|
@@ -4966,10 +5079,6 @@ will be raised. The default for this field is <code>false</code>.</p>
|
|
|
4966
5079
|
<pre class="lines">
|
|
4967
5080
|
|
|
4968
5081
|
|
|
4969
|
-
24
|
|
4970
|
-
25
|
|
4971
|
-
26
|
|
4972
|
-
27
|
|
4973
5082
|
28
|
|
4974
5083
|
29
|
|
4975
5084
|
30
|
|
@@ -4982,10 +5091,16 @@ will be raised. The default for this field is <code>false</code>.</p>
|
|
|
4982
5091
|
37
|
|
4983
5092
|
38
|
|
4984
5093
|
39
|
|
4985
|
-
40
|
|
5094
|
+
40
|
|
5095
|
+
41
|
|
5096
|
+
42
|
|
5097
|
+
43
|
|
5098
|
+
44
|
|
5099
|
+
45
|
|
5100
|
+
46</pre>
|
|
4986
5101
|
</td>
|
|
4987
5102
|
<td>
|
|
4988
|
-
<pre class="code"><span class="info file"># File 'lib/dropbox_api/endpoints/files/list_folder.rb', line
|
|
5103
|
+
<pre class="code"><span class="info file"># File 'lib/dropbox_api/endpoints/files/list_folder.rb', line 28</span>
|
|
4989
5104
|
|
|
4990
5105
|
<span class='id identifier rubyid_add_endpoint'>add_endpoint</span> <span class='symbol'>:list_folder</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='op'>|</span>
|
|
4991
5106
|
<span class='id identifier rubyid_validate_options'>validate_options</span><span class='lparen'>(</span><span class='lbracket'>[</span>
|
|
@@ -4993,13 +5108,15 @@ will be raised. The default for this field is <code>false</code>.</p>
|
|
|
4993
5108
|
<span class='symbol'>:include_media_info</span><span class='comma'>,</span>
|
|
4994
5109
|
<span class='symbol'>:include_deleted</span><span class='comma'>,</span>
|
|
4995
5110
|
<span class='symbol'>:shared_link</span><span class='comma'>,</span>
|
|
4996
|
-
<span class='symbol'>:include_has_explicit_shared_members</span>
|
|
5111
|
+
<span class='symbol'>:include_has_explicit_shared_members</span><span class='comma'>,</span>
|
|
5112
|
+
<span class='symbol'>:limit</span>
|
|
4997
5113
|
<span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
|
4998
5114
|
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:recursive</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='kw'>false</span>
|
|
4999
5115
|
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:include_media_info</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='kw'>false</span>
|
|
5000
5116
|
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:include_deleted</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='kw'>false</span>
|
|
5001
5117
|
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:shared_link</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_build_shared_link_param'>build_shared_link_param</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:shared_link</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:shared_link</span><span class='rbracket'>]</span>
|
|
5002
|
-
|
|
5118
|
+
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:limit</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:limit</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:limit</span><span class='rbracket'>]</span>
|
|
5119
|
+
|
|
5003
5120
|
<span class='id identifier rubyid_perform_request'>perform_request</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span>
|
|
5004
5121
|
<span class='symbol'>:path</span> <span class='op'>=></span> <span class='id identifier rubyid_path'>path</span>
|
|
5005
5122
|
<span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
@@ -6485,6 +6602,75 @@ deleting a folder.</p>
|
|
|
6485
6602
|
</td>
|
|
6486
6603
|
</tr>
|
|
6487
6604
|
</table>
|
|
6605
|
+
</div>
|
|
6606
|
+
|
|
6607
|
+
<div class="method_details ">
|
|
6608
|
+
<h3 class="signature " id="revoke_shared_link-instance_method">
|
|
6609
|
+
|
|
6610
|
+
#<strong>revoke_shared_link</strong>(url) ⇒ <tt>Object</tt>
|
|
6611
|
+
|
|
6612
|
+
|
|
6613
|
+
|
|
6614
|
+
|
|
6615
|
+
|
|
6616
|
+
</h3><div class="docstring">
|
|
6617
|
+
<div class="discussion">
|
|
6618
|
+
<p>Revoke a shared link.</p>
|
|
6619
|
+
|
|
6620
|
+
<p>Note that even after revoking a shared link to a file, the file may be accessible
|
|
6621
|
+
if there are shared links leading to any of the file parent folders. </p>
|
|
6622
|
+
|
|
6623
|
+
<p>A successful response indicates that the shared link was revoked.</p>
|
|
6624
|
+
|
|
6625
|
+
|
|
6626
|
+
</div>
|
|
6627
|
+
</div>
|
|
6628
|
+
<div class="tags">
|
|
6629
|
+
<p class="tag_title">Parameters:</p>
|
|
6630
|
+
<ul class="param">
|
|
6631
|
+
|
|
6632
|
+
<li>
|
|
6633
|
+
|
|
6634
|
+
<span class='name'>url</span>
|
|
6635
|
+
|
|
6636
|
+
|
|
6637
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
6638
|
+
|
|
6639
|
+
|
|
6640
|
+
|
|
6641
|
+
—
|
|
6642
|
+
<div class='inline'><p>shared url which needs to be revoked.</p>
|
|
6643
|
+
</div>
|
|
6644
|
+
|
|
6645
|
+
</li>
|
|
6646
|
+
|
|
6647
|
+
</ul>
|
|
6648
|
+
|
|
6649
|
+
|
|
6650
|
+
</div>
|
|
6651
|
+
<table class="source_code">
|
|
6652
|
+
<tr>
|
|
6653
|
+
<td>
|
|
6654
|
+
<pre class="lines">
|
|
6655
|
+
|
|
6656
|
+
|
|
6657
|
+
17
|
|
6658
|
+
18
|
|
6659
|
+
19
|
|
6660
|
+
20
|
|
6661
|
+
21</pre>
|
|
6662
|
+
</td>
|
|
6663
|
+
<td>
|
|
6664
|
+
<pre class="code"><span class="info file"># File 'lib/dropbox_api/endpoints/sharing/revoke_shared_link.rb', line 17</span>
|
|
6665
|
+
|
|
6666
|
+
<span class='id identifier rubyid_add_endpoint'>add_endpoint</span> <span class='symbol'>:revoke_shared_link</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_url'>url</span><span class='op'>|</span>
|
|
6667
|
+
<span class='id identifier rubyid_perform_request'>perform_request</span><span class='lparen'>(</span><span class='lbrace'>{</span>
|
|
6668
|
+
<span class='symbol'>:url</span> <span class='op'>=></span> <span class='id identifier rubyid_url'>url</span>
|
|
6669
|
+
<span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
6670
|
+
<span class='kw'>end</span></pre>
|
|
6671
|
+
</td>
|
|
6672
|
+
</tr>
|
|
6673
|
+
</table>
|
|
6488
6674
|
</div>
|
|
6489
6675
|
|
|
6490
6676
|
<div class="method_details ">
|
|
@@ -8737,9 +8923,9 @@ that you can use to continue the upload afterwards.</p>
|
|
|
8737
8923
|
</div>
|
|
8738
8924
|
|
|
8739
8925
|
<div id="footer">
|
|
8740
|
-
Generated on
|
|
8926
|
+
Generated on Sat Feb 16 18:39:18 2019 by
|
|
8741
8927
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
8742
|
-
0.9.
|
|
8928
|
+
0.9.16 (ruby-2.3.3).
|
|
8743
8929
|
</div>
|
|
8744
8930
|
|
|
8745
8931
|
</div>
|