Created
January 14, 2026 13:57
-
-
Save 0xriyadh/bc56568abbf620361ca28bbbc071603f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ref: https://drive.google.com/file/d/1vxh72dECqYVGltj5d5dE0gRxx9xRBtAX/view?usp=drive_link | |
| order_data = { | |
| "first_name": user_metadata.get("first_name", ""), | |
| "last_name": user_metadata.get("last_name", ""), | |
| "email": user_email, | |
| "phone": user_metadata.get("phone_number", ""), | |
| "external_kit_id": external_kit_id, | |
| "lookup_code": "GUT_HEALTH_TEST_PRACTITIONER", | |
| "quantity": 1, | |
| "address": { | |
| "street1": address.get('street_address_1', ''), | |
| "street2": address.get('street_address_2', ''), | |
| "city": address.get("city", ""), | |
| "state": address.get("province", ""), | |
| "zip": address.get("postal", ""), | |
| "country": "CA", | |
| }, | |
| "comments": "", | |
| } | |
| response = await client.post( | |
| f"{TINYHEALTH_BASE_URL}/orders", | |
| headers=headers, | |
| json=order_data, | |
| timeout=30.0, | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment