Share Groups
A ShareGroup is a way for you to store and name groups of email contacts to be used for sending share and inbox invitations.
List Share Groups
SDK Method
share_group.List()
Return Values
Returns a *share_group.Iter and an error. Range over All() to receive files_sdk.ShareGroup values and errors.
Check each loop error before using its resource. Next() and Err() remain supported.
Authorization Requirement
Available to all authenticated keys or sessions.
ShareGroupListParams Fields
| Field | Description |
|---|---|
| UserId int64 | User ID. Provide a value of 0 to operate the current session's user. |
Additional Arguments
Show Share Group
SDK Method
share_group.Find()
Return Values
Returns a files_sdk.ShareGroup value and an error.
Authorization Requirement
Available to all authenticated keys or sessions.
ShareGroupFindParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Share Group ID. |
Create Share Group
SDK Method
share_group.Create()
Return Values
Returns a files_sdk.ShareGroup value and an error.
Authorization Requirement
Available to all authenticated keys or sessions.
ShareGroupCreateParams Fields
| Field | Description |
|---|---|
| UserId int64 | User ID. Provide a value of 0 to operate the current session's user. |
| Notes string | Additional notes of the share group |
| Name string Required | Name of the share group |
| Members array(object) Required | A list of share group members. |
Update Share Group
SDK Method
share_group.Update()
Return Values
Returns a files_sdk.ShareGroup value and an error.
Authorization Requirement
Available to all authenticated keys or sessions.
ShareGroupUpdateParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Share Group ID. |
| Notes string | Additional notes of the share group |
| Name string | Name of the share group |
| Members array(object) | A list of share group members. |
Delete Share Group
SDK Method
share_group.Delete()
Return Values
Returns an error, or nil on success.
Authorization Requirement
Available to all authenticated keys or sessions.
ShareGroupDeleteParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Share Group ID. |
The ShareGroup Object
Some of the methods above return a ShareGroup object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| Id int64 | Share Group ID |
| Name string | Name of the share group |
| Notes string | Additional notes of the share group |
| UserId int64 | Owner User ID |
| Members array(object) | A list of share group members |