|
18 | 18 |
|
19 | 19 | api_token_id = os.environ.get("LIGHTSPARK_API_TOKEN_CLIENT_ID") |
20 | 20 | api_token_secret = os.environ.get("LIGHTSPARK_API_TOKEN_CLIENT_SECRET") |
21 | | -base_url = os.environ.get("LIGHTSPARK_EXAMPLE_BASE_URL") |
| 21 | +base_url = os.environ.get("LIGHTSPARK_API_ENDPOINT") |
| 22 | +vasp_domain = os.environ.get("LIGHTSPARK_UMA_VASP_DOMAIN") |
22 | 23 |
|
23 | 24 | # Let's start by creating a client |
24 | 25 |
|
|
33 | 34 |
|
34 | 35 | # Create an invitation |
35 | 36 | invitation = client.create_uma_invitation_with_incentives( |
36 | | - inviter_uma="$alice@testvasp1.com", |
| 37 | + inviter_uma=f"$alice@{vasp_domain}", |
37 | 38 | inviter_phone_number_e164="+11234567890", |
38 | 39 | inviter_region=lightspark.RegionCode.US, |
39 | 40 | ) |
|
47 | 48 |
|
48 | 49 | client.claim_uma_invitation_with_incentives( |
49 | 50 | invitation_code=invitation.code, |
50 | | - invitee_uma="$bob@testvasp2.com", |
| 51 | + invitee_uma=f"$bob@{vasp_domain}", |
51 | 52 | invitee_phone_number_e164="+520987654321", |
52 | 53 | invitee_region=lightspark.RegionCode.MX, |
53 | 54 | ) |
|
61 | 62 | print("Claiming the same invitation again...") |
62 | 63 | client.claim_uma_invitation_with_incentives( |
63 | 64 | invitation_code=invitation.code, |
64 | | - invitee_uma="$bob@testvasp2.com", |
| 65 | + invitee_uma=f"$bob@{vasp_domain}", |
65 | 66 | invitee_phone_number_e164="+520987654321", |
66 | 67 | invitee_region=lightspark.RegionCode.MX, |
67 | 68 | ) |
|
0 commit comments