Api specifications



Download 5.13 Mb.
Page13/48
Date31.07.2017
Size5.13 Mb.
#25031
1   ...   9   10   11   12   13   14   15   16   ...   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/ItemCommentUpdate"










string

string

int





HTTP/1.1 200 OK

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

Content-Length: length












string

boolean








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

int





HTTP/1.1 200 OK

Content-Type: application/soap+xml; charset=utf-8

Content-Length: length












string

boolean







Sample Visual Basic.Net Code

Private Sub ItemCommentUpdate()

Dim FAWAPI As New WebReference.FAWAPI

Dim ItemCommentUpdateResult As New WebReference.ItemCommentUpdateResult

ItemCommentUpdateResult= FAWAPI.ItemCommentUpdate(Token,ItemComment,CommentId)

If ItemCommentUpdateResult.ErrorMessage IsNot Nothing Then

Msgbox ItemCommentUpdateResult.ErrorMessage

Exit Sub

End If


If ItemCommentUpdateResult.CommentUpdated IsNot Nothing Then

Msgbox ItemCommentUpdateResult.CommentUpdated

End If

ItemCommentUpdateResult = 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

ItemComment

String

Yes

Updated comment of an Item

CommentId

Integer

Yes

CommentId of a comment added on a file/folder.

Response

ItemCommentUpdateResult

ItemCommentUpdateResult Properties

Name

Data Type

Description

ErrorMessage

String

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

CommentUpdated

Boolean

If comment is Updated successfully then this will return True else false.

ItemCommentsList

This method returns the comments list of a file/folder.

Syntax

ItemCommentsListResult = ItemCommentsList(Token,ItemPath)

Usage

Use the ItemCommentsList method to get the comments list of an item.

The following parameters are needed to make the ItemCommentsList call:


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

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




Download 5.13 Mb.

Share with your friends:
1   ...   9   10   11   12   13   14   15   16   ...   48




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

    Main page