CreateAPIClient

CreateAPIClient () {rc_Client}

Create an instance of the API client to call custom APIs. See rc_Client for information on returned object.

Public Sub radius_Sample()  
     ' Error handling.
     On Error GoTo radius_ErrorHandling

     ' Declare variable as correct type & initialise.
     Dim radius_Client As rc_Client
     Set radius_Client = RadiusCore.CreateApiClient

     ' Use API client to call API for `Active Organisation`.
     With radius_Client
         ' Setup to call GET accounts endpoint.
         .Setup HttpGet, Json, xroResAccounts
         ' Execute API request, retrieving data from Xero.
         .Execute
         ' You can access the returned data with the `.Data` property of this class.
     End With

     Exit Sub

 radius_ErrorHandling:
     ' Implement per RadiusCore error handling example.
End Sub