You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if operations[operation_id]['scope'] != 'api:read': raise ValueError('This example executes api:read operations only')
if 'idempotencyKey' in params: params['idempotency_key'] = params.pop('idempotencyKey')
if operations[operation_id]['idempotencyRequired'] and not params.get('idempotency_key'): raise ValueError('Supply idempotency_key in LEADADAPTER_PARAMS')
for name in (operations[operation_id].get('requestSchema') or {}).get('required', []):
if name not in params.get('body', {}): raise ValueError('Supply body.' + name)