new module:api/CloudStorageApi(apiClient)
- Source:
Constructs a new CloudStorageApi.
Parameters:
Name | Type | Description |
---|---|---|
apiClient |
module:ApiClient | Optional API client implementation to use, |
Methods
createProvider(accountId, userId, optsOrCallback, callback)
- Source:
Configures the redirect URL information for one or more cloud storage providers for the specified user.
Configures the redirect URL information for one or more cloud storage providers for the specified user. The redirect URL is added to the authentication URL to complete the return route.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
||||||
userId |
String | The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. |
||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||
callback |
module:api/CloudStorageApi~createProviderCallback | The callback function, accepting three arguments: error, data, response |
deleteProvider(accountId, userId, serviceId, callback)
- Source:
Deletes the user authentication information for the specified cloud storage provider.
Deletes the user authentication information for the specified cloud storage provider. The next time the user tries to access the cloud storage provider, they must pass normal authentication for this cloud storage provider.
Parameters:
Name | Type | Description |
---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
userId |
String | The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. |
serviceId |
String | The ID of the service to access. Valid values are the service name ("Box") or the numerical serviceId ("4136"). |
callback |
module:api/CloudStorageApi~deleteProviderCallback | The callback function, accepting three arguments: error, data, response |
deleteProviders(accountId, userId, optsOrCallback, callback)
- Source:
Deletes the user authentication information for one or more cloud storage providers.
Deletes the user authentication information for one or more cloud storage providers. The next time the user tries to access the cloud storage provider, they must pass normal authentication.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
||||||
userId |
String | The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. |
||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||
callback |
module:api/CloudStorageApi~deleteProvidersCallback | The callback function, accepting three arguments: error, data, response |
getProvider(accountId, userId, serviceId, optsOrCallback, callback)
- Source:
Gets the specified Cloud Storage Provider configuration for the User.
Retrieves the list of cloud storage providers enabled for the account and the configuration information for the user.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
||||||
userId |
String | The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. |
||||||
serviceId |
String | The ID of the service to access. Valid values are the service name ("Box") or the numerical serviceId ("4136"). |
||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||
callback |
module:api/CloudStorageApi~getProviderCallback | The callback function, accepting three arguments: error, data, response |
list(accountId, userId, serviceId, folderId, optsOrCallback, callback)
- Source:
Gets a list of all the items from the specified cloud storage provider.
Retrieves a list of all the items in all the folders associated with the user from the specified cloud storage provider. You can limit the scope of the returned items by providing a comma separated list of folder IDs in the request.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
||||||||||||||||||||||||
userId |
String | The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. |
||||||||||||||||||||||||
serviceId |
String | The ID of the service to access. Valid values are the service name ("Box") or the numerical serviceId ("4136"). |
||||||||||||||||||||||||
folderId |
String | The ID of the folder being accessed. |
||||||||||||||||||||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||||||||||||||||||||
callback |
module:api/CloudStorageApi~listCallback | The callback function, accepting three arguments: error, data, response |
listFolders(accountId, userId, serviceId, optsOrCallback, callback)
- Source:
Retrieves a list of all the items in a specified folder from the specified cloud storage provider.
Retrieves a list of all the items in a specified folder from the specified cloud storage provider.
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
|||||||||||||||||||||
userId |
String | The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. |
|||||||||||||||||||||
serviceId |
String | The ID of the service to access. Valid values are the service name ("Box") or the numerical serviceId ("4136"). |
|||||||||||||||||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
|||||||||||||||||||||
callback |
module:api/CloudStorageApi~listFoldersCallback | The callback function, accepting three arguments: error, data, response |
listProviders(accountId, userId, optsOrCallback, callback)
- Source:
Get the Cloud Storage Provider configuration for the specified user.
Retrieves the list of cloud storage providers enabled for the account and the configuration information for the user.
The {serviceId} parameter can be either the service name or serviceId.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
accountId |
String | The external account number (int) or account ID Guid. |
||||||
userId |
String | The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. |
||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||
callback |
module:api/CloudStorageApi~listProvidersCallback | The callback function, accepting three arguments: error, data, response |
Type Definitions
createProviderCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the createProvider operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/CloudStorageProviders | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
deleteProviderCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the deleteProvider operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/CloudStorageProviders | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
deleteProvidersCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the deleteProviders operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/CloudStorageProviders | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
getProviderCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the getProvider operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/CloudStorageProviders | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
listCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the list operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/ExternalFolder | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
listFoldersCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the listFolders operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/ExternalFolder | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
listProvidersCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the listProviders operation. If none specified a Promise will be returned.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
module:model/CloudStorageProviders | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |