Im trying to retrieve some data from a form call Clientes
This is my version of Python 3.11.5
from vtex import Vtex
import requests
Replace with your account name, environment, app_key, and app_token
client = Vtex(account_name, environment, app_key, app_token)
Retrieve customer data using the form clients endpoint
endpoint = "https://farmaenlace.vtexcrm.com.br/api/customers/profile-systems/form-clients"
response = client.get(endpoint)
if response.status_code == 200:
customers = response.json()
print(customers)
else:
print(f"Error retrieving customer data: {response.status_code}")
This is the code and im just getting this error 'Vtex' object has no attribute 'get'
Is something missing?
Im trying to retrieve some data from a form call Clientes
This is my version of Python 3.11.5
from vtex import Vtex
import requests
Replace with your account name, environment, app_key, and app_token
client = Vtex(account_name, environment, app_key, app_token)
Retrieve customer data using the form clients endpoint
endpoint = "https://farmaenlace.vtexcrm.com.br/api/customers/profile-systems/form-clients"
response = client.get(endpoint)
if response.status_code == 200:
customers = response.json()
print(customers)
else:
print(f"Error retrieving customer data: {response.status_code}")
This is the code and im just getting this error 'Vtex' object has no attribute 'get'
Is something missing?