Bulk 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 LSIMBulkSMSAsyncClient
integrify.lsim.bulk.client.LSIMBulkSMSClient
module-attribute
¶
LSIMBulkSMSClient = LSIMBulkSMSClientClass()
integrify.lsim.bulk.client.LSIMBulkSMSAsyncClient
module-attribute
¶
LSIMBulkSMSAsyncClient = LSIMBulkSMSClientClass(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ı LSIMBulkSMSClientClass().check_balance() kimi istifadə etməlisiniz.
integrify.lsim.bulk.client.LSIMBulkSMSClientClass
¶
LSIMBulkSMSClientClass(
name='LSIM-BulkSMS',
base_url=BASE_URL,
default_handler=None,
sync=True,
dry=False,
)
Bases: APIClient, Generic[_Mode]
bulk_send_one_message
¶
bulk_send_one_message(
controlid: int,
msisdns: list[str],
bulkmessage: str,
scheduled: str = 'NOW',
login: str = LSIM_LOGIN,
password: str = LSIM_PASSWORD,
title: str = LSIM_SENDER_NAME,
) -> APIResponse[SendBulkSMSResponseSchema]
bulk_send_one_message(
controlid: int,
msisdns: list[str],
bulkmessage: str,
scheduled: str = 'NOW',
login: str = LSIM_LOGIN,
password: str = LSIM_PASSWORD,
title: str = LSIM_SENDER_NAME,
) -> Coroutine[
Any, Any, APIResponse[SendBulkSMSResponseSchema]
]
bulk_send_one_message(*args, **kwds)
bulk_send_different_messages
¶
bulk_send_different_messages(
controlid: int,
msisdns: list[str],
messages: list[str],
scheduled: str = 'NOW',
login: str = LSIM_LOGIN,
password: str = LSIM_PASSWORD,
title: str = LSIM_SENDER_NAME,
) -> APIResponse[SendBulkSMSResponseSchema]
bulk_send_different_messages(
controlid: int,
msisdns: list[str],
messages: list[str],
scheduled: str = 'NOW',
login: str = LSIM_LOGIN,
password: str = LSIM_PASSWORD,
title: str = LSIM_SENDER_NAME,
) -> Coroutine[
Any, Any, APIResponse[SendBulkSMSResponseSchema]
]
bulk_send_different_messages(*args, **kwds)
get_report
¶
get_report(
taskid: int,
login: str = LSIM_LOGIN,
password: str = LSIM_PASSWORD,
) -> APIResponse[GetBulkSMSReportResponseSchema]
get_report(
taskid: int,
login: str = LSIM_LOGIN,
password: str = LSIM_PASSWORD,
) -> Coroutine[
Any, Any, APIResponse[GetBulkSMSReportResponseSchema]
]
get_report(*args, **kwds)
get_detailed_report
¶
get_detailed_report(
taskid: int,
login: str = LSIM_LOGIN,
password: str = LSIM_PASSWORD,
) -> APIResponse[GetBulkSMSDetailedReportResponseSchema]
get_detailed_report(
taskid: int,
login: str = LSIM_LOGIN,
password: str = LSIM_PASSWORD,
) -> Coroutine[
Any,
Any,
APIResponse[GetBulkSMSDetailedReportResponseSchema],
]
get_detailed_report(*args, **kwds)
get_detailed_report_with_dates
¶
get_detailed_report_with_dates(
taskid: int,
login: str = LSIM_LOGIN,
password: str = LSIM_PASSWORD,
) -> APIResponse[GetBulkSMSDetailedReportResponseSchema]
get_detailed_report_with_dates(
taskid: int,
login: str = LSIM_LOGIN,
password: str = LSIM_PASSWORD,
) -> Coroutine[
Any,
Any,
APIResponse[GetBulkSMSDetailedReportResponseSchema],
]
get_detailed_report_with_dates(*args, **kwds)
check_balance
¶
check_balance(
login: str = LSIM_LOGIN, password: str = LSIM_PASSWORD
) -> APIResponse[GetBalanceResponseSchema]
check_balance(
login: str = LSIM_LOGIN, password: str = LSIM_PASSWORD
) -> Coroutine[
Any, Any, APIResponse[GetBalanceResponseSchema]
]
check_balance(*args, **kwds)