Skip to content

Latest commit

 

History

History
executable file
·
64 lines (48 loc) · 2.25 KB

README.md

File metadata and controls

executable file
·
64 lines (48 loc) · 2.25 KB

customer_data

Available Operations

query_object

Query a single object record directly from a customer's source. The response payload will match the object schema you've defined.

Example Usage

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

Parameters

Parameter Type Required Description
request operations.QueryObjectRequest ✔️ The request object to use for the request.

Response

operations.QueryObjectResponse