Python SDK
Get account number
Retrieve the account number associated with your API key.
You can retrieve the account phone number associated with your API key by using the get_account_number
method provided by the Pinnacle
class in the SDK.
get_account_number() -> str
Returns:
accountPhoneNumber
str
requiredReturns the account phone number associated with your API key. Account number is in E.164 format (e.g., +14155552671).
Example Usage
get_account_number.py
from rcs import Pinnacle
pinn = Pinnacle(
api_key=YOUR_API_KEY,
webhook_url=YOUR_WEBHOOK_URL,
)
account_phone_number = pinn.get_account_number()
print(f"Account phone number: {account_phone_number}")
Was this page helpful?