Api specifications



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










string


string


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


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

Dim FAWAPI As New WebReference.FAWAPI

Dim ItemCommentAddResult As New WebReference.ItemCommentAddResult

ItemCommentAddResult= FAWAPI.ItemCommentAdd(Token, Path,Comment,fullName,ParentId)

If ItemCommentAddResult.ErrorMessage IsNot Nothing Then

Msgbox ItemCommentAddResult.ErrorMessage

Exit Sub

End If


If ItemCommentAddResult.CommentAdded IsNot Nothing Then

Msgbox ItemCommentAddResult.CommentAdded

End If

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

Yes

Full FilesAnywhere path of the file/folder in the form \UserVolume\FolderName\FileName or \UserVolume\FolderName\

Comment

String

Yes

Comment of an Item

FullName

String

No

Full name of user who is adding the comment of an Item. If user has passed null then system will pick up the full name of User from database.

ParentId

String

No

If user is adding a new comment of an Item then this ParentId should be 0 else if user is replying of any exisisting comment then this ParentId should be the id of exisisting comment.)

Response

ItemCommentAddResult

ItemCommentAddResult Properties

Name

Data Type

Description

ErrorMessage

String

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

CommentAdded

Boolean

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

ItemCommentRemove

This method removes comment of a file/folder.

Syntax

ItemCommentRemoveResult = ItemCommentRemove(Token, CommentId)

Usage

Use the ItemCommentRemove method to remove the comment of a file/folder.

The following parameters are needed to make the ItemCommentRemove call:


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

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




Download 5.13 Mb.

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




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

    Main page