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

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.AddToTagMethod

public class AddToTagMethod
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
AddToTagMethod()
           
 
Method Summary
 AddToTagResponse addToTag(AddToTagRequest addToTagRequest)
          This method adds file or folder to tags list.
 
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

AddToTagMethod

public AddToTagMethod()
Method Detail

addToTag

public AddToTagResponse addToTag(AddToTagRequest addToTagRequest)
                          throws java.io.IOException,
                                 BoxException
This method adds file or folder to tags list. 'target' param can be either 'file' or 'folder' depending on what do you want to add, 'target_id' is the id of a file or folder to be added, 'tags' array of tags where target will be added. On successful a result, you will receive 'addtotag_ok'. If the result wasn't successful, status field can be: addtotag_error.

Parameters:
addToTagRequest - request
Returns:
response
Throws:
java.io.IOException - IO exception
BoxException - box exception