View Account Information
Request
import requests
url = "https://app.9bits.net:2053/ng/v1/account_info"
# Define headers with authorization and content type
headers = {
"Authorization": f"Bearer {api_token}"
}
# Send the GET request
response = requests.get(url, params=data, headers=headers)
# Check the response
if response.status_code == 200:
print("Request was successful.")
print(response.json())
else:
print(f"Request failed with status code: {response.status_code}")
print(response.text)
Response
Response Fields
Last updated