Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion v6/dropbox/files/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ type Client interface {
// https://content.dropboxapi.com/apitul/1/bNi2uIYF51cVBND --header
// "Content-Type: application/octet-stream" --data-binary @local_file.txt A
// successful temporary upload link consumption request returns the content
// hash of the uploaded data in JSON format. Example succesful temporary
// hash of the uploaded data in JSON format. Example successful temporary
// upload link consumption response: {"content-hash":
// "599d71033d700ac892a0e48fa61b125d2f5994"} An unsuccessful temporary
// upload link consumption request returns any of the following status
Expand Down
2 changes: 1 addition & 1 deletion v6/dropbox/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const (
hostContent = "content"
hostNotify = "notify"
sdkVersion = "6.0.2"
specVersion = "85f2eff"
specVersion = "444efad"
)

// Version returns the current SDK version and API Spec version
Expand Down
14 changes: 8 additions & 6 deletions v6/dropbox/sharing/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type AddFileMemberArgs struct {
// File : File to which to add members.
File string `json:"file"`
// Members : Members to add. Note that even an email address is given, this
// may result in a user being directy added to the membership if that email
// may result in a user being directly added to the membership if that email
// is the user's main account email.
Members []*MemberSelector `json:"members"`
// CustomMessage : Message to send to added members in their invitation.
Expand Down Expand Up @@ -3914,11 +3914,10 @@ const (

// SharedLinkSettings : has no documentation (yet)
type SharedLinkSettings struct {
// RequestedVisibility : The requested access for this shared link.
RequestedVisibility *RequestedVisibility `json:"requested_visibility,omitempty"`
// LinkPassword : If `requested_visibility` is
// `RequestedVisibility.password` this is needed to specify the password to
// access the link.
// RequirePassword : Boolean flag to enable or disable password protection.
RequirePassword bool `json:"require_password,omitempty"`
// LinkPassword : If `require_password` is true, this is needed to specify
// the password to access the link.
LinkPassword string `json:"link_password,omitempty"`
// Expires : Expiration time of the shared link. By default the link won't
// expire.
Expand All @@ -3932,6 +3931,9 @@ type SharedLinkSettings struct {
// Access : Requested access level you want the audience to gain from this
// link. Note, modifying access level for an existing link is not supported.
Access *RequestedLinkAccessLevel `json:"access,omitempty"`
// RequestedVisibility : Use `audience` instead. The requested access for
// this shared link.
RequestedVisibility *RequestedVisibility `json:"requested_visibility,omitempty"`
}

// NewSharedLinkSettings returns a new SharedLinkSettings instance
Expand Down
16 changes: 8 additions & 8 deletions v6/dropbox/team/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func NewActiveWebSession(SessionId string, UserAgent string, Os string, Browser
// AddSecondaryEmailResult : Result of trying to add a secondary email to a
// user. 'success' is the only value indicating that a secondary email was
// successfully added to a user. The other values explain the type of error that
// occurred, and include the email for which the error occured.
// occurred, and include the email for which the error occurred.
type AddSecondaryEmailResult struct {
dropbox.Tagged
// Success : Describes a secondary email that was successfully added to a
Expand Down Expand Up @@ -464,7 +464,7 @@ const (
// DeleteSecondaryEmailResult : Result of trying to delete a secondary email
// address. 'success' is the only value indicating that a secondary email was
// successfully deleted. The other values explain the type of error that
// occurred, and include the email for which the error occured.
// occurred, and include the email for which the error occurred.
type DeleteSecondaryEmailResult struct {
dropbox.Tagged
// Success : The secondary email was successfully deleted.
Expand Down Expand Up @@ -1951,8 +1951,8 @@ type LegalHoldPolicy struct {
Description string `json:"description,omitempty"`
// ActivationTime : The time at which the legal hold was activated.
ActivationTime *time.Time `json:"activation_time,omitempty"`
// Members : Team members IDs and number of permanetly deleted members under
// hold.
// Members : Team members IDs and number of permanently deleted members
// under hold.
Members *MembersInfo `json:"members"`
// Status : The current state of the hold.
Status *LegalHoldStatus `json:"status"`
Expand Down Expand Up @@ -4440,7 +4440,7 @@ func NewRemovedStatus(IsRecoverable bool, IsDisconnected bool) *RemovedStatus {
// ResendSecondaryEmailResult : Result of trying to resend verification email to
// a secondary email address. 'success' is the only value indicating that a
// verification email was successfully sent. The other values explain the type
// of error that occurred, and include the email for which the error occured.
// of error that occurred, and include the email for which the error occurred.
type ResendSecondaryEmailResult struct {
dropbox.Tagged
// Success : A verification email was successfully sent to the secondary
Expand Down Expand Up @@ -5844,7 +5844,7 @@ func (u *UploadApiRateLimitValue) UnmarshalJSON(body []byte) error {
// UserAddResult : Result of trying to add secondary emails to a user. 'success'
// is the only value indicating that a user was successfully retrieved for
// adding secondary emails. The other values explain the type of error that
// occurred, and include the user for which the error occured.
// occurred, and include the user for which the error occurred.
type UserAddResult struct {
dropbox.Tagged
// Success : Describes a user and the results for each attempt to add a
Expand Down Expand Up @@ -5968,7 +5968,7 @@ func NewUserDeleteEmailsResult(User *UserSelectorArg, Results []*DeleteSecondary
// UserDeleteResult : Result of trying to delete a user's secondary emails.
// 'success' is the only value indicating that a user was successfully retrieved
// for deleting secondary emails. The other values explain the type of error
// that occurred, and include the user for which the error occured.
// that occurred, and include the user for which the error occurred.
type UserDeleteResult struct {
dropbox.Tagged
// Success : Describes a user and the results for each attempt to delete a
Expand Down Expand Up @@ -6036,7 +6036,7 @@ func NewUserResendEmailsResult(User *UserSelectorArg, Results []*ResendSecondary
// UserResendResult : Result of trying to resend verification emails to a user.
// 'success' is the only value indicating that a user was successfully retrieved
// for sending verification emails. The other values explain the type of error
// that occurred, and include the user for which the error occured.
// that occurred, and include the user for which the error occurred.
type UserResendResult struct {
dropbox.Tagged
// Success : Describes a user and the results for each attempt to resend
Expand Down
Loading