ApiUrl
Overview
The ApiUrl
property of the Account
class is used to store and retrieve the URL associated with the account's API endpoint.
Syntax
vba
' To get the API URL
Account.ApiUrl
' To set the API URL
Account.ApiUrl = "https://api.example.com"
Return Value
When accessed, the ApiUrl
property returns a String
that stores the API URL of the account.
Example
This example demonstrates how to set and retrieve the API URL for an account to ensure it is correctly configured for API interactions:
vba
Sub UpdateAndDisplayApiUrl(acc As Account)
' Set the API URL for the account
acc.ApiUrl = "https://api.yourservice.com"
' Retrieve and display the API URL
MsgBox "The API URL for the account is: " & acc.ApiUrl, vbInformation
End Sub