- query_object - Query object record for customer
Query a single object record directly from a customer's source. The response payload will match the object schema you've defined.
import fabra
from fabra.models import operations, shared
s = fabra.Fabra(
security=shared.Security(
api_key_auth="",
),
)
req = operations.QueryObjectRequest(
request_body=operations.QueryObjectRequestBody(
filters=[
shared.QueryFilter(
field_name='user_id',
field_value='2',
),
shared.QueryFilter(
field_name='user_id',
field_value='2',
),
shared.QueryFilter(
field_name='user_id',
field_value='2',
),
shared.QueryFilter(
field_name='user_id',
field_value='2',
),
],
),
end_customer_id='vel',
object_id=623564,
)
res = s.customer_data.query_object(req)
if res.query_object_200_application_json_object is not None:
# handle response
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.QueryObjectRequest | ✔️ | The request object to use for the request. |