Api specifications



Download 5.13 Mb.
Page15/48
Date31.07.2017
Size5.13 Mb.
#25031
1   ...   11   12   13   14   15   16   17   18   ...   48

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 /fawapi.asmx HTTP/1.1

Host: 64.156.56.142

Content-Type: text/xml; charset=utf-8

Content-Length: length

SOAPAction: "http://api.filesanywhere.com/ItemDescription"










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 /fawapi.asmx HTTP/1.1

Host: 64.156.56.142

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







Sample Visual Basic.Net Code

Private Sub getItemDescription ()

Dim FAWAPI As New WebReference.FAWAPI

Dim ItemDescriptionResult As New WebReference.ItemDescriptionResult

ItemDescriptionResult= FAWAPI.ItemDescription(Token, Path)

If ItemDescriptionResult.ErrorMessage IsNot Nothing Then

Msgbox ItemDescriptionResult.ErrorMessage

Exit Sub

End If


If ItemDescriptionResult.Comment IsNot Nothing Then

Msgbox ItemDescriptionResult.Comment

End If

ItemDescriptionResult = Nothing



FAWAPI = Nothing

End Sub


Request Arguments

Name

Data Type

Required

Description

Token

String

Yes

The Token ID returned back in the last AccountLogin call

Path

String

No

Full FilesAnywhere path of the Item in the form \UserVolume\FolderName\ItemName or \UserVolume\FolderName\

Response

ItemDescriptionResult

ItemDescriptionResult Properties

Name

Data Type

Description

ErrorMessage

String

A description of the error, if any error was encountered while the ItemComment method was executed. If the ItemDescription call was successful, the ErrorMessage is blank or null.

Comment

String

Comment of the item as string.

ItemDescriptionAdd

This method adds description of a file/folder.

Syntax

ItemDescriptionAddResult = ItemDescriptionAdd(Token,Path,Description)

Usage

Use the ItemDescriptionAdd method to add the description of an item.

The following parameters are needed to make the ItemDescriptionAdd call:


  • Token (The Token ID returned by the last AccountLogin call).

  • Path (Name of the item with the FilesAnywhere Path). The Path should be formatted like, for file: \UserVolume\FolderName\FileName and for folder: \UserVolume\FolderName\, where UserVolume is the FilesAnywhere UserName in whose account the file/folder exists.

  • Description (Description of a file/folder)




Download 5.13 Mb.

Share with your friends:
1   ...   11   12   13   14   15   16   17   18   ...   48




The database is protected by copyright ©ininet.org 2024
send message

    Main page