Skip to content

Python error while trying to retrieve data from master data #25

Description

@PaulSoLDU

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions