Məzmuna keçin

Single SMS client

Note

İstifadəsi göstərilən bütün sorğular sinxrondur. Asinxron versiyasaları istifadə etmək üçün bu importu edin və eyni-adlı funksiyaları await ilə çağırın:

from integrify.lsim import LSIMSingleSMSAsyncClient

integrify.lsim.single.client.LSIMSingleSMSClient module-attribute

LSIMSingleSMSClient = LSIMSingleSMSClientClass()

integrify.lsim.single.client.LSIMSingleSMSAsyncClient module-attribute

LSIMSingleSMSAsyncClient = LSIMSingleSMSClientClass(
    sync=False
)
Note

Bunlar artıq hazır yaradılmış klass obyektləridir, birbaşa istifadə üçün nəzərdə tutulub. Əks halda bütün sorğuları LSIMSingleSMSClientClass().send_sms_post() kimi istifadə etməlisiniz.

integrify.lsim.single.client.LSIMSingleSMSClientClass

LSIMSingleSMSClientClass(
    name='LSIM',
    base_url=BASE_URL,
    default_handler=None,
    sync=True,
    dry=False,
)

Bases: APIClient, Generic[_Mode]

send_sms_get

send_sms_get(
    msisdn: str,
    text: str,
    login: str = LSIM_LOGIN,
    password: str = LSIM_PASSWORD,
    sender: str = LSIM_SENDER_NAME,
    unicode: bool = False,
) -> APIResponse[BaseGetResponseSchema]
send_sms_get(
    msisdn: str,
    text: str,
    login: str = LSIM_LOGIN,
    password: str = LSIM_PASSWORD,
    sender: str = LSIM_SENDER_NAME,
    unicode: bool = False,
) -> Coroutine[
    Any, Any, APIResponse[BaseGetResponseSchema]
]
send_sms_get(*args, **kwds)

send_sms_post

send_sms_post(
    msisdn: str,
    text: str,
    login: str = LSIM_LOGIN,
    password: str = LSIM_PASSWORD,
    sender: str = LSIM_SENDER_NAME,
    unicode: bool = False,
    scheduled: str | datetime = 'NOW',
) -> APIResponse[BasePostResponseSchema]
send_sms_post(
    msisdn: str,
    text: str,
    login: str = LSIM_LOGIN,
    password: str = LSIM_PASSWORD,
    sender: str = LSIM_SENDER_NAME,
    unicode: bool = False,
    scheduled: str | datetime = 'NOW',
) -> Coroutine[
    Any, Any, APIResponse[BasePostResponseSchema]
]
send_sms_post(*args, **kwds)

check_balance

check_balance(
    login: str = LSIM_LOGIN, password: str = LSIM_PASSWORD
) -> APIResponse[BaseGetResponseSchema]
check_balance(
    login: str = LSIM_LOGIN, password: str = LSIM_PASSWORD
) -> Coroutine[
    Any, Any, APIResponse[BaseGetResponseSchema]
]
check_balance(*args, **kwds)

get_report_get

get_report_get(
    trans_id: int, login: str = LSIM_LOGIN
) -> APIResponse[ReportGetResponseSchema]
get_report_get(
    trans_id: int, login: str = LSIM_LOGIN
) -> Coroutine[
    Any, Any, APIResponse[ReportGetResponseSchema]
]
get_report_get(*args, **kwds)

get_report_post

get_report_post(
    trans_id: int, login: str = LSIM_LOGIN
) -> APIResponse[ReportPostResponseSchema]
get_report_post(
    trans_id: int, login: str = LSIM_LOGIN
) -> Coroutine[
    Any, Any, APIResponse[ReportPostResponseSchema]
]
get_report_post(*args, **kwds)