public class

AddToMyBoxMethod

extends BaseBoxMethod
java.lang.Object
   ↳ cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.methods.BaseBoxMethod
     ↳ cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.methods.AddToMyBoxMethod

Summary

[Expand]
Inherited Fields
From class cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.methods.BaseBoxMethod
Public Constructors
AddToMyBoxMethod()
Public Methods
AddToMyBoxResponse addToMyBox(AddToMyBoxRequest addToMyBoxRequest)
This method copies a file publicly shared by someone to a user's mybox.
[Expand]
Inherited Methods
From class cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.methods.BaseBoxMethod
From class java.lang.Object

Public Constructors

public AddToMyBoxMethod ()

Public Methods

public AddToMyBoxResponse addToMyBox (AddToMyBoxRequest addToMyBoxRequest)

This method copies a file publicly shared by someone to a user's mybox. 'file_id' and 'public_name' params identify a publicly shared file, you should provide either file_id or public name (like '31nhke0ahp') as a parameter. 'folder_id' is the id of a user's folder, where files are to be copied. On a successful result, the status will be 'addtomybox_ok'. If the result wasn't successful, the status field can be: 'addtomybox_error', 'not_logged_id', 'application_restricted', 's_link_exists'.

Parameters
addToMyBoxRequest Request
Returns
  • response
Throws
IOException io exception
BoxException box exception