-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_chain.yaml
More file actions
38 lines (36 loc) · 1.09 KB
/
Copy pathexample_chain.yaml
File metadata and controls
38 lines (36 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Example API Chain: Authenticate → Create Lead
#
# Replace the placeholder credentials below with real values, or set
# environment variables and use the ${ENV:VAR_NAME} syntax:
#
# export AUTH_EMAIL="your-email@example.com"
# export AUTH_PASSWORD="your-password"
# export AUTH_API_KEY="your-api-key"
#
# Then run:
# python -m api_chain_runner example_chain.yaml
chain:
- name: auth
url: "https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=${ENV:AUTH_API_KEY}"
method: POST
headers:
Content-Type: "application/json"
payload:
email: "${ENV:AUTH_EMAIL}"
password: "${ENV:AUTH_PASSWORD}"
returnSecureToken: true
- name: create_lead
url: "https://uat-gateway.datasignstech.com/lead/lead"
method: POST
headers:
Content-Type: "application/json"
Authorization: "Bearer ${auth.idToken}"
payload:
profileData:
email: "placeholder"
pan: "placeholder"
mobile: "placeholder"
unique_fields:
profileData.email: email
profileData.pan: pan
profileData.mobile: mobile