@@ -26,7 +26,7 @@ def create(
26
26
self ,
27
27
* ,
28
28
external_user_id : str ,
29
- project_id : str ,
29
+ create_token_request_project_id : str ,
30
30
allowed_origins : typing .Optional [typing .Sequence [str ]] = OMIT ,
31
31
error_redirect_uri : typing .Optional [str ] = OMIT ,
32
32
success_redirect_uri : typing .Optional [str ] = OMIT ,
@@ -39,7 +39,7 @@ def create(
39
39
external_user_id : str
40
40
Your end user ID, for whom you're creating the token
41
41
42
- project_id : str
42
+ create_token_request_project_id : str
43
43
The ID of the project
44
44
45
45
allowed_origins : typing.Optional[typing.Sequence[str]]
@@ -63,13 +63,13 @@ def create(
63
63
connect token created
64
64
"""
65
65
_response = self ._client_wrapper .httpx_client .request (
66
- "v1/connect/tokens" ,
66
+ f "v1/connect/ { jsonable_encoder ( self . _client_wrapper . _project_id ) } /tokens" ,
67
67
method = "POST" ,
68
68
json = {
69
69
"allowed_origins" : allowed_origins ,
70
70
"error_redirect_uri" : error_redirect_uri ,
71
71
"external_user_id" : external_user_id ,
72
- "project_id" : project_id ,
72
+ "project_id" : create_token_request_project_id ,
73
73
"success_redirect_uri" : success_redirect_uri ,
74
74
"webhook_uri" : webhook_uri ,
75
75
},
@@ -117,7 +117,7 @@ def validate(
117
117
connect token validated
118
118
"""
119
119
_response = self ._client_wrapper .httpx_client .request (
120
- f"v1/connect/tokens/{ jsonable_encoder (ctok )} /validate" ,
120
+ f"v1/connect/{ jsonable_encoder ( self . _client_wrapper . _project_id ) } / tokens/{ jsonable_encoder (ctok )} /validate" ,
121
121
method = "GET" ,
122
122
params = {
123
123
"params" : convert_and_respect_annotation_metadata (
@@ -150,7 +150,7 @@ async def create(
150
150
self ,
151
151
* ,
152
152
external_user_id : str ,
153
- project_id : str ,
153
+ create_token_request_project_id : str ,
154
154
allowed_origins : typing .Optional [typing .Sequence [str ]] = OMIT ,
155
155
error_redirect_uri : typing .Optional [str ] = OMIT ,
156
156
success_redirect_uri : typing .Optional [str ] = OMIT ,
@@ -163,7 +163,7 @@ async def create(
163
163
external_user_id : str
164
164
Your end user ID, for whom you're creating the token
165
165
166
- project_id : str
166
+ create_token_request_project_id : str
167
167
The ID of the project
168
168
169
169
allowed_origins : typing.Optional[typing.Sequence[str]]
@@ -187,13 +187,13 @@ async def create(
187
187
connect token created
188
188
"""
189
189
_response = await self ._client_wrapper .httpx_client .request (
190
- "v1/connect/tokens" ,
190
+ f "v1/connect/ { jsonable_encoder ( self . _client_wrapper . _project_id ) } /tokens" ,
191
191
method = "POST" ,
192
192
json = {
193
193
"allowed_origins" : allowed_origins ,
194
194
"error_redirect_uri" : error_redirect_uri ,
195
195
"external_user_id" : external_user_id ,
196
- "project_id" : project_id ,
196
+ "project_id" : create_token_request_project_id ,
197
197
"success_redirect_uri" : success_redirect_uri ,
198
198
"webhook_uri" : webhook_uri ,
199
199
},
@@ -241,7 +241,7 @@ async def validate(
241
241
connect token validated
242
242
"""
243
243
_response = await self ._client_wrapper .httpx_client .request (
244
- f"v1/connect/tokens/{ jsonable_encoder (ctok )} /validate" ,
244
+ f"v1/connect/{ jsonable_encoder ( self . _client_wrapper . _project_id ) } / tokens/{ jsonable_encoder (ctok )} /validate" ,
245
245
method = "GET" ,
246
246
params = {
247
247
"params" : convert_and_respect_annotation_metadata (
0 commit comments