froide_fax/fax.py
def send_fax_telnyx(
    to,
    from_,
    media_url,
    connection_id,
    authorization="",
    quality="high",
):
    """this sends a single message through the telnyx fax gateway
    results / error to be handled by calling instance"""
    data = {
        "to": to,
        "from": from_,
        "media_url": media_url,
        "connection_id": connection_id,  # this is a misnomer, app_id goes here
        "quality": quality,  # choice of normal, high, very_high
    }

    headers = {
        "Authorization": authorization,
    }
    with patch_requests_only_ipv4():
        r = requests.post("https://api.telnyx.com/v2/faxes", headers=headers, data=data)
    r.raise_for_status()
    return r
this sends a single message through the telnyx fax gateway
    results / error to be handled by calling instance
this sends a single message through the telnyx fax gateway
results / error to be handled by calling instance
this sends a single message through the telnyx fax gateway results / error to be handled by calling instance
def send_fax_telnyx(
    to,
    from_,
    media_url,
    connection_id,
    authorization="",
    quality="high",
):
    data = {
        "to": to,
        "from": from_,
        "media_url": media_url,
        "connection_id": connection_id,  
        "quality": quality,  
    }
    headers = {
        "Authorization": authorization,
    }
    with patch_requests_only_ipv4():
        r = requests.post("https://api.telnyx.com/v2/faxes", headers=headers, data=data)
    r.raise_for_status()
    return r
def send_fax_telnyx ( to , from_ , media_url , connection_id , authorization = "" , quality = "high" , ) : data = { "to" : to , "from" : from_ , "media_url" : media_url , "connection_id" : connection_id , "quality" : quality , } headers = { "Authorization" : authorization , } with patch_requests_only_ipv4 ( ) : r = requests . post ( "https://api.telnyx.com/v2/faxes" , headers = headers , data = data ) r . raise_for_status ( ) return r
this sends a single message through the telnyx fax gateway
results / error to be handled by calling instance
this sends a single message through the telnyx fax gateway results / error to be handled by calling instance
"""this sends a single message through the telnyx fax gateway
    results / error to be handled by calling instance""" # this is a misnomer, app_id goes here # choice of normal, high, very_high
to
from_
media_url
connection_id
authorization
quality