Api specifications



Download 5.13 Mb.
Page46/48
Date31.07.2017
Size5.13 Mb.
#25031
1   ...   40   41   42   43   44   45   46   47   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 /FACORPAPI/FAWAPI.asmx HTTP/1.1

Host: api.filesanywhere.com

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

Content-Length: length

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










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 /FACORPAPI/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







Sample Visual Basic.Net Code

Private Sub GetClientDetails()

Dim GetClientDetailsResult As FAWAPI.GetClientDetailsResult = FAWAPI.GetClientDetails(sToken)

If GetClientDetailsResult.ErrorMessage.Length > 0 Then

MsgBox GetClientDetailsResult.ErrorMessage

Else

MsgBox GetClientDetailsResult.EmailAddress



End If

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

Response

GetClientDetailsResult

GetClientDetailsResult Properties

Name

Data Type

Description

ErrorMessage

String

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

EmailAddress

String

Client’s system email address

SetProfileImage

Set user profile image.

Syntax

SetProfileImageResult = SetProfileImage (Token, Paremeters)


Usage

Use the SetProfileImage function to upload and set the user profile image (maximum size 10MB).

The following parameters are needed to make the SetProfileImage call:


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

  • Paremeters is the object which contains the following properties to hold the required values to set the user profile image:

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

Host: api.filesanywhere.com

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

Content-Length: length

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










string
string

base64Binary




HTTP/1.1 200 OK

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

Content-Length: length



















Download 5.13 Mb.

Share with your friends:
1   ...   40   41   42   43   44   45   46   47   48




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

    Main page