GetCurrencyList - accountsIQ/API-Wiki GitHub Wiki

NOTE: This method is still available but obsolete. Please use GetCurrencies instead.


The GetCurrencyList function retrieves the list of available currency codes.

Declaration

C#

public WSResult2OfArrayOfString GetCurrencyList(string token)

Visual Basic

Public Function GetCurrencyList(ByVal token As String) As WSResult2OfArrayOfString

Parameter List

Parameter Type Description
token String The session token retrieved during authentication.

Example

C#

Integration ws = new Integration();

String auth = ws.Login(entityID, partnerKey, userKey);
if (auth != null)
{
  WSResult2OfArrayOfString currencies = ws.GetCurrencyList(auth);
  if (currencies.Status == OperationStatus.Success)
  {
      foreach (String currencyCode in currencies.Result)
      {
          // Do something with each currency code
      }
  }
  else
  {
      // Examine ErrorCode to get more information on the failure
  }
}

Visual Basic

Dim ws As New Integration

Dim auth As String = ws.Login(entityID, partnerKey, userKey)
If (Not Me.auth Is Nothing) Then
  Dim currencies As WSResult2OfArrayOfString = Me.ws.GetCurrencyList(Me.auth)
  If (currencies.Status = OperationStatus.Success) Then
      Dim currencyCode As String
      For Each currencyCode In currencies.Result
        ' Do something with each currency code
      Next
  Else
    ' Examine ErrorCode to get more information on the failure
  End If
End If

See Also

⚠️ **GitHub.com Fallback** ⚠️