cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.methods
Class AddToMyBoxMethod

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

public class AddToMyBoxMethod
extends BaseBoxMethod

Author:
Jimmy

Field Summary
 
Fields inherited from class cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.methods.BaseBoxMethod
apiRequestFormat, apiUploadUrlPrefix, apiUrlPrefix, apiVersion, config, httpManager, soapApiUrl, xmlApiUrl
 
Constructor Summary
AddToMyBoxMethod()
           
 
Method Summary
 AddToMyBoxResponse addToMyBox(AddToMyBoxRequest addToMyBoxRequest)
          This method copies a file publicly shared by someone to a user's mybox.
 
Methods inherited from class cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.methods.BaseBoxMethod
getBaseSoapDocument, getElementByActionName, getRestUrl, getSoapElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddToMyBoxMethod

public AddToMyBoxMethod()
Method Detail

addToMyBox

public AddToMyBoxResponse addToMyBox(AddToMyBoxRequest addToMyBoxRequest)
                              throws java.io.IOException,
                                     BoxException
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:
java.io.IOException - io exception
BoxException - box exception