Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:custom_development_guide:apis:http:import [2016/09/14 01:41] liuxlen:custom_development_guide:apis:http:import [2019/01/03 07:19] (current) donnie
Line 8: Line 8:
  
 ^ Parameters      ^ Type      ^ Description         ^ ^ Parameters      ^ Type      ^ Description         ^
 +|EVENT|String|Import|
 |orgidentity|String|team identity string| |orgidentity|String|team identity string|
 |usertype|String|agent / account| |usertype|String|agent / account|
Line 48: Line 49:
 unassignToCurrent: if customer doesn't belong to any package, move the customer to current package unassignToCurrent: if customer doesn't belong to any package, move the customer to current package
 reassignToCurrent: always move customer to current package</code>| reassignToCurrent: always move customer to current package</code>|
-|callbackFuc|String|callback function| 
  
 <note important>You must set all parameters, if you have no data, use a empty string. <note important>You must set all parameters, if you have no data, use a empty string.
 ex: when you don't have field phone_field,priority_field,dialtime_field, it looks like ex: when you don't have field phone_field,priority_field,dialtime_field, it looks like
  
-importWS(orgidentity,usertype,user,pwdtype,password,modeltype,model_id,sourcecontext,source_user,source_pwd,exetime,delrow, '', '', '',emptyagentresetstatusdupwaydupdiallistchangepackage)+EVENT=Import&orgidentity=orgidentity&usertype=usertype&user=user&pwdtype=pwdtype&password=password&modeltype=modeltype
 +model_id=model_id&source=source&context=context&source_user=source_user&source_pwd=source_pwd&exetime=exetime
 +delrow=delrow**&phone_field=&priority_field=&dialtime_field=**&emptyagent=emptyagent&resetstatus=resetstatus& 
 +dupway=dupway&dupdiallist=dupdiallist&changepackage=changepackage
 </note> </note>
  
Line 59: Line 62:
  
 <code> <code>
-{code:code,message:message}+|Retuen|code|Retuen|message
 </code> </code>
  
-  * Type of the Return Value:JSON+  * Type of the Return Value:String
   * Return Values:   * Return Values:
  
 ^ Value      ^ Description       ^ ^ Value      ^ Description       ^
-|<code>{code:1,message:message}</code>|<code>{code:succeed,message:when import from http or ftp, it gives import job id, or else it return a message</code>+|<code>|Retuen|1|Retuen|message</code>|<code>|Retuen|succeed|Retuen|message:when import from http or ftp, it gives import job id, or else it return a message</code>
-|<code>{code:2,message:message}</code>|<code>{code:failed,message:message}</code>|+|<code>|Retuen|2|Retuen|message</code>|<code>|Retuen|failed|Retuen|message</code>|
en/custom_development_guide/apis/http/import.1473817270.txt.gz · Last modified: (external edit)
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki