Response
DownloadWithCheckoutResult
DownloadWithCheckoutResult Properties
DownloadZipFile
Syntax
DownloadZipFileResult = DownloadZipFile(Token,Path)
Usage
Use the DownloadZipFile method to download a zip file for a file or a folder.
The following parameters are needed to make the DownloadZipFile call:
-
Token. (The Token ID returned by the last AccountLogin call).
-
Path. (The path of the file/folder to be downloaded).
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /v2/fawapi.asmx HTTP/1.1
Host: api.filesanywhere.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.filesanywhere.com/DownloadZipFile"
string
string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
Unknown or Processing or Complete or Errored
long
Response>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /v2/fawapi.asmx HTTP/1.1
Host: api.filesanywhere.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
string
string
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
Unknown or Processing or Complete or Errored
long
Request Arguments
Name
|
Data Type
|
Required
|
Description
|
Token
|
String
|
Yes
|
The Token ID returned by the last AccountLogin call.
|
Path
|
String
|
Yes
|
The path to the file or folder to be downloaded.
|
Response
DownloadZipFileResult
DownloadZipFileResult Properties
Name
|
Data Type
|
Description
|
ErrorMessage
|
String
|
A description of the error, if any error was encountered while the DownloadZipFile method was executed. If the DownloadZipFile call was successful, the ErrorMessage is blank
|
DownloadFileStatus
|
Enum
|
The status for the download requrest.
|
ProcessId
|
Long
|
Process identifier used when DownloadFileStatus = Processing.
|
Sample Visual Basic.Net Code
Private Sub btnDownload_Click(sender As Object, e As EventArgs)
txtError.Text = String.Empty
Dim objFAWAPI As FAWAPI.FAWAPIv2SoapClient = New FAWAPI.FAWAPIv2SoapClient()
Dim objDownload As FAWAPI.DownloadFileResultv2 = Nothing
Do
objDownload = objFAWAPI.DownloadZipFile(txtToken.Text, "\USERNAME\FOLDERPATH\")
System.Threading.Thread.Sleep(500) 'Give some pause and display progress to user
Loop While (objDownload.DownloadFileStatus = FAWAPI.DownloadFileStatus.Processing)
If (Not String.IsNullOrEmpty(objDownload.ErrorMessage)) Then
txtError.Text = objDownload.ErrorMessage
Return
End If
txtDownloadURL.Text = "Status:" + objDownload.DownloadFileStatus + " , URL: " + objDownload.URL
End Sub
EditDocumentWithZoho
Syntax
EditDocumentWithZohoResult = EditDocumentWithZoho(Token,Path)
Usage
Use the DownloadZipFile method to download one a file as a zip file.
The following parameters are needed to make the EditDocumentWithZoho call:
-
Token. (The Token ID returned by the last AccountLogin call).
-
Path. (The path of the document to be edited).
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /v2/fawapi.asmx HTTP/1.1
Host: api.filesanywhere.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.filesanywhere.com/EditDocumentWithZoho"
string
string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
string
string
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /v2/fawapi.asmx HTTP/1.1
Host: api.filesanywhere.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
string
string
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
string
string
Request Arguments
Name
|
Data Type
|
Required
|
Description
|
Token
|
String
|
Yes
|
The Token ID returned by the last AccountLogin call.
|
Path
|
String
|
Yes
|
The path to the document to be edited.
|
Response
EditDocumentWithZohoResult
EditDocumentWithZohoResult Properties
Name
|
Data Type
|
Description
|
ErrorMessage
|
String
|
A description of the error, if any error was encountered while the EditDocumentWithZoho method was executed. If the EditDocumentWithZoho call was successful, the ErrorMessage is blank
|
URL
|
String
|
A URL which can be opened in a browser to edit the document.
|
ESendFiles
Syntax
ESendFilesResult = ESendFiles(Token,FileList,Recipients,Message)
Usage
Use the ESendFiles method to send files directly to another user’s file inbox.
The following parameters are needed to make the ESendFiles call:
-
Token. (The Token ID returned by the last AccountLogin call).
-
FileList. (The paths of the files to be sent to the recipients).
-
Recipients (A list of usernames to receive the files).
-
Message (A message to send with the notifications to the recipients).
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /v2/fawapi.asmx HTTP/1.1
Host: api.filesanywhere.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.filesanywhere.com/ESendFiles"
string
string
string
string
string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
string
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /v2/fawapi.asmx HTTP/1.1
Host: api.filesanywhere.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
string
string
string
string
string
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
string
Request Arguments
Name
|
Data Type
|
Required
|
Description
|
Token
|
String
|
Yes
|
The Token ID returned by the last AccountLogin call.
|
FileList
|
String()
|
Yes
|
The paths to the files to be sent to the recipients.
|
Recipients
|
String
|
Yes
|
A comma-separated list of usernames.
|
Message
|
String
|
Yes
|
A message to include in the notifications to the recipients.
|
Response
ESendFilesResult
ESendFilesResult Properties
Name
|
Data Type
|
Description
|
ErrorMessage
|
String
|
A description of the error, if any error was encountered while the ESendFiles method was executed. If the ESendFiles call was successful, the ErrorMessage is blank
|
GetAccountDetails
Syntax
GetAccountDetailsResult = GetAccountDetails(Token)
Usage
Use the GetAccountDetails method to retrieve a user’s account properties, including email address, storage allocation, storage usage, user account type, and account status.
The following parameters are needed to make the DownloadZipFile call:
-
Token. (The Token ID returned by the last AccountLogin call).
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /v2/fawapi.asmx HTTP/1.1
Host: api.filesanywhere.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.filesanywhere.com/GetAccountDetails"
string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
string
string
boolean
long
string
long
string
string
string
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /v2/fawapi.asmx HTTP/1.1
Host: api.filesanywhere.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
string
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
string
string
boolean
long
string
long
string
string
string
Request Arguments
Name
|
Data Type
|
Required
|
Description
|
Token
|
String
|
Yes
|
The Token ID returned by the last AccountLogin call.
|
Response
GetAccountDetailsResult
GetAccountDetailsResult Properties
Name
|
Data Type
|
Description
|
ErrorMessage
|
String
|
A description of the error, if any error was encountered while the GetAccountDetails method was executed. If the GetAccountDetails call was successful, the ErrorMessage is blank
|
Share with your friends: |