Skip to content

Commit 31fa070

Browse files
committed
using undeprecated method in logging, adding hasAudio and hasVideo to docstring
1 parent 25f815f commit 31fa070

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

opentok/opentok.py

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def start_archive(
597597
"POST to %r with params %r, headers %r, proxies %r",
598598
self.endpoints.archive_url(),
599599
json.dumps(payload),
600-
self.json_headers(),
600+
self.get_json_headers(),
601601
self.proxies,
602602
)
603603

@@ -643,7 +643,7 @@ def stop_archive(self, archive_id):
643643
logger.debug(
644644
"POST to %r with headers %r, proxies %r",
645645
self.endpoints.archive_url(archive_id) + "/stop",
646-
self.json_headers(),
646+
self.get_json_headers(),
647647
self.proxies,
648648
)
649649

@@ -678,7 +678,7 @@ def delete_archive(self, archive_id):
678678
logger.debug(
679679
"DELETE to %r with headers %r, proxies %r",
680680
self.endpoints.archive_url(archive_id),
681-
self.json_headers(),
681+
self.get_json_headers(),
682682
self.proxies,
683683
)
684684

@@ -708,7 +708,7 @@ def get_archive(self, archive_id):
708708
logger.debug(
709709
"GET to %r with headers %r, proxies %r",
710710
self.endpoints.archive_url(archive_id),
711-
self.json_headers(),
711+
self.get_json_headers(),
712712
self.proxies,
713713
)
714714

@@ -754,7 +754,7 @@ def get_archives(self, offset=None, count=None, session_id=None):
754754
logger.debug(
755755
"GET to %r with headers %r, proxies %r",
756756
endpoint,
757-
self.json_headers(),
757+
self.get_json_headers(),
758758
self.proxies,
759759
)
760760

@@ -905,7 +905,7 @@ def send_signal(self, session_id, payload, connection_id=None):
905905
"POST to %r with params %r, headers %r, proxies %r",
906906
self.endpoints.signaling_url(session_id, connection_id),
907907
json.dumps(payload),
908-
self.json_headers(),
908+
self.get_json_headers(),
909909
self.proxies,
910910
)
911911

@@ -960,7 +960,7 @@ def get_stream(self, session_id, stream_id):
960960
logger.debug(
961961
"GET to %r with headers %r, proxies %r",
962962
endpoint,
963-
self.json_headers(),
963+
self.get_json_headers(),
964964
self.proxies,
965965
)
966966

@@ -997,7 +997,7 @@ def list_streams(self, session_id):
997997
logger.debug(
998998
"GET to %r with headers %r, proxies %r",
999999
endpoint,
1000-
self.json_headers(),
1000+
self.get_json_headers(),
10011001
self.proxies,
10021002
)
10031003

@@ -1035,7 +1035,7 @@ def force_disconnect(self, session_id, connection_id):
10351035
logger.debug(
10361036
"DELETE to %r with headers %r, proxies %r",
10371037
endpoint,
1038-
self.json_headers(),
1038+
self.get_json_headers(),
10391039
self.proxies,
10401040
)
10411041

@@ -1095,7 +1095,7 @@ def set_archive_layout(self, archive_id, layout_type, stylesheet=None, screensha
10951095
"PUT to %r with params %r, headers %r, proxies %r",
10961096
endpoint,
10971097
json.dumps(payload),
1098-
self.json_headers(),
1098+
self.get_json_headers(),
10991099
self.proxies,
11001100
)
11011101

@@ -1224,7 +1224,7 @@ def dial(self, session_id, token, sip_uri, options=[]):
12241224
"POST to %r with params %r, headers %r, proxies %r",
12251225
endpoint,
12261226
json.dumps(payload),
1227-
self.json_headers(),
1227+
self.get_json_headers(),
12281228
self.proxies,
12291229
)
12301230

@@ -1278,7 +1278,7 @@ class names (Strings) to apply to the stream. For example:
12781278
"PUT to %r with params %r, headers %r, proxies %r",
12791279
endpoint,
12801280
json.dumps(items_payload),
1281-
self.json_headers(),
1281+
self.get_json_headers(),
12821282
self.proxies,
12831283
)
12841284

@@ -1313,6 +1313,10 @@ def start_broadcast(self, session_id, options, stream_mode=BroadcastStreamModes.
13131313
13141314
:param String session_id: The session ID of the OpenTok session you want to broadcast
13151315
1316+
:param Boolean optional hasAudio: Whether the stream is broadcast with audio.
1317+
1318+
:param Boolean optional hasVideo: Whether the stream is broadcast with video.
1319+
13161320
:param Dictionary options, with the following properties:
13171321
13181322
Dictionary 'layout' optional: Specify this to assign the initial layout type for the
@@ -1397,7 +1401,7 @@ def start_broadcast(self, session_id, options, stream_mode=BroadcastStreamModes.
13971401
"POST to %r with params %r, headers %r, proxies %r",
13981402
endpoint,
13991403
json.dumps(payload),
1400-
self.json_headers(),
1404+
self.get_json_headers(),
14011405
self.proxies,
14021406
)
14031407

@@ -1440,7 +1444,7 @@ def stop_broadcast(self, broadcast_id):
14401444
logger.debug(
14411445
"POST to %r with headers %r, proxies %r",
14421446
endpoint,
1443-
self.json_headers(),
1447+
self.get_json_headers(),
14441448
self.proxies,
14451449
)
14461450

@@ -1580,7 +1584,7 @@ def get_broadcast(self, broadcast_id):
15801584
logger.debug(
15811585
"GET to %r with headers %r, proxies %r",
15821586
endpoint,
1583-
self.json_headers(),
1587+
self.get_json_headers(),
15841588
self.proxies,
15851589
)
15861590

@@ -1637,7 +1641,7 @@ def set_broadcast_layout(self, broadcast_id, layout_type, stylesheet=None, scree
16371641
"PUT to %r with params %r, headers %r, proxies %r",
16381642
endpoint,
16391643
json.dumps(payload),
1640-
self.json_headers(),
1644+
self.get_json_headers(),
16411645
self.proxies,
16421646
)
16431647

0 commit comments

Comments
 (0)