@@ -26,7 +26,6 @@ def create(
26
26
self ,
27
27
* ,
28
28
external_user_id : str ,
29
- project_id : str ,
30
29
allowed_origins : typing .Optional [typing .Sequence [str ]] = OMIT ,
31
30
error_redirect_uri : typing .Optional [str ] = OMIT ,
32
31
success_redirect_uri : typing .Optional [str ] = OMIT ,
@@ -39,9 +38,6 @@ def create(
39
38
external_user_id : str
40
39
Your end user ID, for whom you're creating the token
41
40
42
- project_id : str
43
- The ID of the project
44
-
45
41
allowed_origins : typing.Optional[typing.Sequence[str]]
46
42
List of allowed origins for CORS
47
43
@@ -63,13 +59,12 @@ def create(
63
59
connect token created
64
60
"""
65
61
_response = self ._client_wrapper .httpx_client .request (
66
- "v1/connect/tokens" ,
62
+ f "v1/connect/ { jsonable_encoder ( self . _client_wrapper . _project_id ) } /tokens" ,
67
63
method = "POST" ,
68
64
json = {
69
65
"allowed_origins" : allowed_origins ,
70
66
"error_redirect_uri" : error_redirect_uri ,
71
67
"external_user_id" : external_user_id ,
72
- "project_id" : project_id ,
73
68
"success_redirect_uri" : success_redirect_uri ,
74
69
"webhook_uri" : webhook_uri ,
75
70
},
@@ -117,7 +112,7 @@ def validate(
117
112
connect token validated
118
113
"""
119
114
_response = self ._client_wrapper .httpx_client .request (
120
- f"v1/connect/tokens/{ jsonable_encoder (ctok )} /validate" ,
115
+ f"v1/connect/{ jsonable_encoder ( self . _client_wrapper . _project_id ) } / tokens/{ jsonable_encoder (ctok )} /validate" ,
121
116
method = "GET" ,
122
117
params = {
123
118
"params" : convert_and_respect_annotation_metadata (
@@ -150,7 +145,6 @@ async def create(
150
145
self ,
151
146
* ,
152
147
external_user_id : str ,
153
- project_id : str ,
154
148
allowed_origins : typing .Optional [typing .Sequence [str ]] = OMIT ,
155
149
error_redirect_uri : typing .Optional [str ] = OMIT ,
156
150
success_redirect_uri : typing .Optional [str ] = OMIT ,
@@ -163,9 +157,6 @@ async def create(
163
157
external_user_id : str
164
158
Your end user ID, for whom you're creating the token
165
159
166
- project_id : str
167
- The ID of the project
168
-
169
160
allowed_origins : typing.Optional[typing.Sequence[str]]
170
161
List of allowed origins for CORS
171
162
@@ -187,13 +178,12 @@ async def create(
187
178
connect token created
188
179
"""
189
180
_response = await self ._client_wrapper .httpx_client .request (
190
- "v1/connect/tokens" ,
181
+ f "v1/connect/ { jsonable_encoder ( self . _client_wrapper . _project_id ) } /tokens" ,
191
182
method = "POST" ,
192
183
json = {
193
184
"allowed_origins" : allowed_origins ,
194
185
"error_redirect_uri" : error_redirect_uri ,
195
186
"external_user_id" : external_user_id ,
196
- "project_id" : project_id ,
197
187
"success_redirect_uri" : success_redirect_uri ,
198
188
"webhook_uri" : webhook_uri ,
199
189
},
@@ -241,7 +231,7 @@ async def validate(
241
231
connect token validated
242
232
"""
243
233
_response = await self ._client_wrapper .httpx_client .request (
244
- f"v1/connect/tokens/{ jsonable_encoder (ctok )} /validate" ,
234
+ f"v1/connect/{ jsonable_encoder ( self . _client_wrapper . _project_id ) } / tokens/{ jsonable_encoder (ctok )} /validate" ,
245
235
method = "GET" ,
246
236
params = {
247
237
"params" : convert_and_respect_annotation_metadata (
0 commit comments