Skip to content

Commit 7725179

Browse files
committed
splitting step 3 and 4
1 parent 502c0a1 commit 7725179

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

app/rooms/examples/eg006_create_external_form_fill_session.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,17 @@ def worker(args):
8484
"""
8585
# Step 1. Create an API client with headers
8686
api_client = create_rooms_api_client(access_token=args["access_token"])
87+
88+
request_body=ExternalFormFillSessionForCreate(
89+
room_id=args['room_id'],
90+
form_id=args['form_id'],
91+
x_frame_allowed_url = args['x_frame_allowed_url']
92+
)
8793

8894
# Step 2. Create an external form fill session
8995
form_fill_session_api = ExternalFormFillSessionsApi(api_client)
9096
results = form_fill_session_api.create_external_form_fill_session(
91-
body=ExternalFormFillSessionForCreate(
92-
room_id=args['room_id'],
93-
form_id=args['form_id'],
94-
x_frame_allowed_url = args['x_frame_allowed_url']
95-
),
97+
body=request_body,
9698
account_id=args["account_id"]
9799
)
98100
return results

0 commit comments

Comments
 (0)