Skip to content

Commit

Permalink
feat: [SRTP-45] add send RTP API
Browse files Browse the repository at this point in the history
  • Loading branch information
TommasoLencioni committed Oct 24, 2024
1 parent ba7460d commit e1689bf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions api/send_rtp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import requests

from config.configuration import config


def send_rtp(rtp_payload):
"""API to post an rtp request
:returns: the response of the call.
:rtype: requests.Response
"""
return requests.post(
url=config.send_rtp_path,
json=rtp_payload,
timeout=config.default_timeout
)

0 comments on commit e1689bf

Please sign in to comment.