MENU
    GetAllCurrencies API
    • 1 Minute to read
    • Dark
    • PDF

    GetAllCurrencies API

    • Dark
    • PDF

    Article summary

    Retrieves the collection of currency objects. Each currency object returned from this method corresponds to a data row of currency in the database.

    Syntax

    Currency = api.GetAllCurrencies()
    Shell

    Usage

    Use the GetAllCurrencies call to retrieve currency data. Upon invocation, the Web Service queries the database for currency data rows and returns the collection of currency objects. Each currency object corresponds to a data row in the database. The Client application can then use methods on the collection of currency objects to iterate through the collection and retrieve information. The Client application must be logged in with sufficient access rights to query currency objects.

    Response

    Currency()

    The GetAllCurrencies method call returns collection of Currency objects which contain the data values of currency data rows in the database.

    Sample Code

    Private Sub getAllCurrencies()
    Dim api As New HostAPI()
    Dim objCurrency() As Currency
    Try
    'Call the web method to retrieve the list of currencies
    		objCurrency = api.getALLCurrencies()
    'Loop through the currency collection objects to display the currencies retrieved
    If Not objCurrency Is Nothing Then
    			Console.WriteLine("Code" & vbTab & "|Name")
    For Each _Obj As Currency in objCurrency
    				Console.WriteLine(_Obj.Code & vbTab & "|" & _Obj.Name)
    Next
    End If
    Catch ex As Exception
    End Try
    End Sub
    Shell

    Was this article helpful?