Api specifications



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










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

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 ItemCommentRemove()

Dim FAWAPI As New WebReference.FAWAPI

Dim ItemCommentRemoveResult As New WebReference.ItemCommentRemoveResult

ItemCommentRemoveResult= FAWAPI.ItemCommentRemove(Token, CommentId)

If ItemCommentRemoveResult.ErrorMessage IsNot Nothing Then

Msgbox ItemCommentRemoveResult.ErrorMessage

Exit Sub

End If


If ItemCommentRemoveResult.CommentRemoved IsNot Nothing Then

Msgbox ItemCommentRemoveResult.CommentRemoved

End If

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

CommentId

Integer

Yes

CommentId of a comment added on a file/folder.

Response

ItemCommentRemoveResult

ItemCommentRemoveResult Properties

Name

Data Type

Description

ErrorMessage

String

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

CommentRemoved

Boolean

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

ItemCommentUpdate

This method Update the comment of a file/folder.

Syntax

ItemCommentUpdateResult = ItemCommentUpdate(Token,ItemComment,CommentId)

Usage

Use the ItemCommentUpdate method to update the comment of a file/folder.

The following parameters are needed to make the ItemCommentUpdate call:


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

  • ItemComment (The updated comment of a file/folder)

  • CommentId (CommentId of a comment added on file/folder)




Download 5.13 Mb.

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




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

    Main page