@@ -106,8 +106,9 @@ def get_factor(
106106 raise ValueError ("Incomplete arguments. Need to specify a factor ID" )
107107
108108 response = self .request_helper .request (
109- "auth/factors/{authentication_factor_id}" .format (
110- authentication_factor_id = authentication_factor_id
109+ self .request_helper .build_parameterized_url (
110+ "auth/factors/{authentication_factor_id}" ,
111+ authentication_factor_id = authentication_factor_id ,
111112 ),
112113 method = REQUEST_METHOD_GET ,
113114 token = workos .api_key ,
@@ -137,8 +138,9 @@ def delete_factor(
137138 raise ValueError ("Incomplete arguments. Need to specify a factor ID." )
138139
139140 return self .request_helper .request (
140- "auth/factors/{authentication_factor_id}" .format (
141- authentication_factor_id = authentication_factor_id
141+ self .request_helper .build_parameterized_url (
142+ "auth/factors/{authentication_factor_id}" ,
143+ authentication_factor_id = authentication_factor_id ,
142144 ),
143145 method = REQUEST_METHOD_DELETE ,
144146 token = workos .api_key ,
@@ -169,8 +171,8 @@ def challenge_factor(
169171 )
170172
171173 response = self .request_helper .request (
172- "auth/factors/{factor_id}/challenge" . format (
173- factor_id = authentication_factor_id
174+ self . request_helper . build_parameterized_url (
175+ "auth/factors/{factor_id}/challenge" , factor_id = authentication_factor_id
174176 ),
175177 method = REQUEST_METHOD_POST ,
176178 params = params ,
@@ -228,8 +230,9 @@ def verify_challenge(
228230 )
229231
230232 response = self .request_helper .request (
231- "auth/challenges/{challenge_id}/verify" .format (
232- challenge_id = authentication_challenge_id
233+ self .request_helper .build_parameterized_url (
234+ "auth/challenges/{challenge_id}/verify" ,
235+ challenge_id = authentication_challenge_id ,
233236 ),
234237 method = REQUEST_METHOD_POST ,
235238 params = params ,
0 commit comments