/** * Updates an existing Paper doc with the provided content. * * * @return Uploader used to upload the request body and finish request. */ DocsUpdateUploader docsUpdate(PaperDocUpdateArgs arg) throws DbxException { HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getApi(), "2/paper/docs/update", arg, false, PaperDocUpdateArgs.Serializer.INSTANCE); return new DocsUpdateUploader(_uploader, this.client.getUserId()); }
/** * Creates a new Paper doc with the provided content. * * * @return Uploader used to upload the request body and finish request. */ DocsCreateUploader docsCreate(PaperDocCreateArgs arg) throws DbxException { HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getApi(), "2/paper/docs/create", arg, false, PaperDocCreateArgs.Serializer.INSTANCE); return new DocsCreateUploader(_uploader, this.client.getUserId()); }
/** * Returns a {@link DbxClientV2} that performs requests against Dropbox API * user endpoints as the given team admin. * * <p> This method performs no validation of the team admin ID. </p> * * @param adminId Team member ID of the admin in client's team, never * {@code null}. * * @return Dropbox client that issues requests to user endpoints as the * given team Admin. * * @throws IllegalArgumentException If {@code adminId} is {@code null} */ public DbxClientV2 asAdmin(String adminId) { if (adminId == null) { throw new IllegalArgumentException("'adminId' should not be null"); } DbxRawClientV2 asAdminClient = new DbxTeamRawClientV2( _client.getRequestConfig(), _client.getHost(), accessToken, _client.getUserId(), null, adminId, null ); return new DbxClientV2(asAdminClient); }
/** * Returns a {@link DbxClientV2} that performs requests against Dropbox API * user endpoints as the given team member. * * <p> This method performs no validation of the team member ID. </p> * * @param memberId Team member ID of member in this client's team, never * {@code null}. * * @return Dropbox client that issues requests to user endpoints as the * given team member * * @throws IllegalArgumentException If {@code memberId} is {@code null} */ public DbxClientV2 asMember(String memberId) { if (memberId == null) { throw new IllegalArgumentException("'memberId' should not be null"); } DbxRawClientV2 asMemberClient = new DbxTeamRawClientV2( _client.getRequestConfig(), _client.getHost(), accessToken, _client.getUserId(), memberId, null, null ); return new DbxClientV2(asMemberClient); }
/** * Create a new file with the contents provided in the request. Note that * this endpoint is part of the properties API alpha and is slightly * different from {@link DbxUserFilesRequests#upload(String)}. Do not use * this to upload a file larger than 150 MB. Instead, create an upload * session with {@link DbxUserFilesRequests#uploadSessionStart(boolean)}. * * * @return Uploader used to upload the request body and finish request. */ AlphaUploadUploader alphaUpload(CommitInfoWithProperties arg) throws DbxException { HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getContent(), "2/files/alpha/upload", arg, false, CommitInfoWithProperties.Serializer.INSTANCE); return new AlphaUploadUploader(_uploader, this.client.getUserId()); }
/** * Append more data to an upload session. When the parameter close is set, * this call will close the session. A single request should not upload more * than 150 MB. The maximum size of a file one can upload to an upload * session is 350 GB. Calls to this endpoint will count as data transport * calls for any Dropbox Business teams with a limit on the number of data * transport calls allowed per month. For more information, see the <a * href="https://www.dropbox.com/developers/reference/data-transport-limit">Data * transport limit page</a>. * * * @return Uploader used to upload the request body and finish request. */ UploadSessionAppendV2Uploader uploadSessionAppendV2(UploadSessionAppendArg arg) throws DbxException { HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getContent(), "2/files/upload_session/append_v2", arg, false, UploadSessionAppendArg.Serializer.INSTANCE); return new UploadSessionAppendV2Uploader(_uploader, this.client.getUserId()); }
/** * Append more data to an upload session. A single request should not upload * more than 150 MB. The maximum size of a file one can upload to an upload * session is 350 GB. Calls to this endpoint will count as data transport * calls for any Dropbox Business teams with a limit on the number of data * transport calls allowed per month. For more information, see the <a * href="https://www.dropbox.com/developers/reference/data-transport-limit">Data * transport limit page</a>. * * * @return Uploader used to upload the request body and finish request. */ UploadSessionAppendUploader uploadSessionAppend(UploadSessionCursor arg) throws DbxException { HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getContent(), "2/files/upload_session/append", arg, false, UploadSessionCursor.Serializer.INSTANCE); return new UploadSessionAppendUploader(_uploader, this.client.getUserId()); }
/** * Create a new file with the contents provided in the request. Do not use * this to upload a file larger than 150 MB. Instead, create an upload * session with {@link DbxUserFilesRequests#uploadSessionStart(boolean)}. * Calls to this endpoint will count as data transport calls for any Dropbox * Business teams with a limit on the number of data transport calls allowed * per month. For more information, see the <a * href="https://www.dropbox.com/developers/reference/data-transport-limit">Data * transport limit page</a>. * * * @return Uploader used to upload the request body and finish request. */ UploadUploader upload(CommitInfo arg) throws DbxException { HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getContent(), "2/files/upload", arg, false, CommitInfo.Serializer.INSTANCE); return new UploadUploader(_uploader, this.client.getUserId()); }
/** * Finish an upload session and save the uploaded data to the given file * path. A single request should not upload more than 150 MB. The maximum * size of a file one can upload to an upload session is 350 GB. Calls to * this endpoint will count as data transport calls for any Dropbox Business * teams with a limit on the number of data transport calls allowed per * month. For more information, see the <a * href="https://www.dropbox.com/developers/reference/data-transport-limit">Data * transport limit page</a>. * * * @return Uploader used to upload the request body and finish request. */ UploadSessionFinishUploader uploadSessionFinish(UploadSessionFinishArg arg) throws DbxException { HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getContent(), "2/files/upload_session/finish", arg, false, UploadSessionFinishArg.Serializer.INSTANCE); return new UploadSessionFinishUploader(_uploader, this.client.getUserId()); }
false, UploadSessionStartArg.Serializer.INSTANCE); return new UploadSessionStartUploader(_uploader, this.client.getUserId());