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/v2/FAWAPI.asmx HTTP/1.1
Host: localhost
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
string
string
Sample Visual Basic.Net Code
Private Sub GetID3Tag()
Dim FAWAPI As New WebReference.FAWAPI
Dim ID3TagResult As New WebReference.GetID3TagResult
ID3TagResult = FAWAPI. GetID3Tag (Token, FilePath)
If ID3TagResult.ErrorMessage IsNot Nothing Then
Msgbox ID3TagResult.ErrorMessage
End If
ID3TagResult = 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
|
FilePath
|
String
|
Yes
|
The full FilesAnywhere path of the MP3 file in the form \UserVolume\FolderName\ItemName
|
GetAPIURL
This function returns the API URL.
Syntax
GetAPIURLResult = GetAPIURL(APIKey,ClientId)
Usage
Use the GetAPIURL method to get the API URL of a specific client.
The following parameters are needed to make the GetAPIURL call:
-
APIKey (A Developer API Key. See the “Getting Started” section above, to find out how to obtain a Developer API Key).
-
ClientId for which you want to get the API URL
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/v1/FAWAPI.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.filesanywhere.com/GetAPIURL"
string
int
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 /FACORPAPI/v1/FAWAPI.asmx HTTP/1.1
Host: localhost
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
string
Sample Visual Basic.Net Code
Private Sub GetAPIURL()
Dim FAWAPI As New WebReference.FAWAPI()
Dim APIURLResult As New WebReference.GetAPIURLResult
APIURLResult = FAWAPI.GetAPIURL(APIKey, ClientId)
If APIURLResult.ErrorMessage.Length > 0 Then
MsgBox(APIURLResult.ErrorMessage)
Else
MsgBox(APIURLResult.APIURL)
End If
APIURLResult = Nothing
FAWAPI = Nothing
End Sub
Request Arguments
Name
|
Data Type
|
Required
|
Description
|
APIKey
|
String
|
Yes
|
A Developer API Key. The “Getting Started” section describes how to obtain a Developer API Key
|
ClientId
|
Integer
|
Yes
|
Client Id for which you want to know API URL
|
Response
GetAPIURLResult
GetAPIURLResult Properties
Name
|
Data Type
|
Description
|
ErrorMessage
|
String
|
A description of the error, if any error was encountered while the GetAPIURL method was executed. If the GetAPIURL call was successful, the ErrorMessage is blank
|
APIURL
|
String
|
If the GetAPIURL call was successful, APIURL contains the API URL of given ClientId
|
GetClientID
Provides you the ClientID for a Company code.
Syntax
GetClientIDResult = GetClientID(APIKey, Parameters)
Usage
Use the GetClientID method to get the ClientID of a specific Company code.
The following parameters are needed to make the GetClientID call:
-
APIKey (A Developer API Key. See the “Getting Started” section above, to find out how to obtain a Developer API Key).
-
Parameters is the object which contains the following property to hold the required parameters value to get the Client ID:
-
CompanyCode: Company code of the client for which you want to get the ClientID.
Share with your friends: |