From 4b384268bb763566df02daff42565c2b66706803 Mon Sep 17 00:00:00 2001 From: SHELA Date: Mon, 15 Mar 2021 13:38:10 +0200 Subject: [PATCH 01/23] Update activations.py fix when one more code request --- smsactivateru/activations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smsactivateru/activations.py b/smsactivateru/activations.py index 8f3d0e6..492691a 100644 --- a/smsactivateru/activations.py +++ b/smsactivateru/activations.py @@ -70,7 +70,7 @@ def wait_code(self, timeout=1200, callback=None, not_end=False, *args, **kwargs) smsactivateru.SetStatus( id=self.id, status=smsactivateru.SmsTypes.Status.OneMoreCode - ) + ).request(self.wrapper) break if callback: callback(self.last_code) From 79466e98a72c473bdaef5fef772b0093b5628770 Mon Sep 17 00:00:00 2001 From: SHELA Date: Tue, 6 Apr 2021 21:46:30 +0300 Subject: [PATCH 02/23] Update datatype.py --- smsactivateru/datatype.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/smsactivateru/datatype.py b/smsactivateru/datatype.py index 66a2e62..f7b3706 100644 --- a/smsactivateru/datatype.py +++ b/smsactivateru/datatype.py @@ -15,7 +15,7 @@ class Country: # TZ = '9' # Танзания (Tanzania) – temp disable VN = '10' # Вьетнам (Vietnam) KG = '11' # Кыргызстан (Kyrgyzstan) - US = '12' # США (USA) + US_VIRT = '12' # США ВИРТ (USA) IL = '13' # Израиль (Israel) HK = '14' # Гонконг (Hong Kong) PL = '15' # Польша (Poland) @@ -49,6 +49,8 @@ class Country: HR = '45' # Хорватия ( Croatia) IQ = '47' # Ирак (Iraq) NL = '48' # Нидерланды (Netherlands) + BR = '73' + US = '187' # США class Status: From 83fa1b99bd7d95e2152162eae8b366ca0bc60f7e Mon Sep 17 00:00:00 2001 From: SHELA Date: Wed, 19 May 2021 17:05:48 +0300 Subject: [PATCH 03/23] Update services.py --- smsactivateru/services.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/smsactivateru/services.py b/smsactivateru/services.py index 12296cf..292ace5 100644 --- a/smsactivateru/services.py +++ b/smsactivateru/services.py @@ -14,7 +14,7 @@ class ServiceStorage: 'Messenger': 'uk_0', 'LineMessenger': 'me_0', 'Yahoo': 'mb_0', 'DrugVokrug': 'we_0', 'FiveOrochka': 'bd_0', 'TencentQQ': 'kp_0', 'WOG': 'dt_0', 'Yandex': 'ya_0', 'YandexSmsForwarding': 'ya_1', 'Steam': 'mt_0', 'Tinder': 'oi_0', 'Mamba': 'fd_0', 'DromRu': 'zz_0', 'KakaoTalk': 'kt_0', 'AOL': 'pm_0', 'LinkedIN': 'tn_0', - 'DeliveryClub': 'dt_0', + 'DeliveryClub': 'dt_0', 'Craigslist': 'wc_0' } @@ -56,6 +56,13 @@ def Viber(self): """ return self._Viber + @property + def Craigslist(self): + """ + :rtype: smsactivateru.models.ServiceModel + """ + return self._Craigslist + @property def Telegram(self): """ From 68a7bc7f335f6392dc042016c0f668135b641042 Mon Sep 17 00:00:00 2001 From: SHELA Date: Wed, 19 May 2021 17:14:40 +0300 Subject: [PATCH 04/23] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0fa0520..fc8bcb9 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ def requirements(): setup( name='smsactivateru', - version='1.2.6', + version='1.2.7', long_description=long_description(), long_description_content_type='text/markdown', description='Wrapper for automatic reception of SMS-messages by sms-activate.ru', From b92089200cf1604ecf42126a20cf533b12b1b5f5 Mon Sep 17 00:00:00 2001 From: SHELA Date: Wed, 19 May 2021 18:18:47 +0300 Subject: [PATCH 05/23] Update actions.py --- smsactivateru/actions.py | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/smsactivateru/actions.py b/smsactivateru/actions.py index 366d133..b53643a 100644 --- a/smsactivateru/actions.py +++ b/smsactivateru/actions.py @@ -68,7 +68,8 @@ def request(self, wrapper): """ response = wrapper.request(self) return self.__response_processing(response, wrapper=wrapper) - +https://sms-activate.ru/stubs/handler_api.php?api_key=$api_key&action=getFullSms&id=$id + class GetStatus(ActionsModel): _name = 'getStatus' @@ -78,7 +79,29 @@ def __init__(self, id): @error_handler def __response_processing(self, response): - data = {'status': response, 'code': None} + data = {'status': response, 'code': None, 'response':response} + if ':' in response: + data['status'] = response.split(':', 1)[0] + data['code'] = response.split(':', 1)[1] + return data + + def request(self, wrapper): + """ + :rtype: dict + """ + response = wrapper.request(self) + return self.__response_processing(response) + + +class FetFullSms(ActionsModel): + _name = 'getFullSms' + + def __init__(self, id): + super().__init__(inspect.currentframe()) + + @error_handler + def __response_processing(self, response): + data = {'status': response, 'code': None, 'response':response} if ':' in response: data['status'] = response.split(':', 1)[0] data['code'] = response.split(':', 1)[1] From 1526feb752abb4b4df7e6f5c0e3fb874c6e0ff59 Mon Sep 17 00:00:00 2001 From: SHELA Date: Wed, 19 May 2021 18:23:06 +0300 Subject: [PATCH 06/23] Update actions.py --- smsactivateru/actions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/smsactivateru/actions.py b/smsactivateru/actions.py index b53643a..2c10546 100644 --- a/smsactivateru/actions.py +++ b/smsactivateru/actions.py @@ -68,7 +68,6 @@ def request(self, wrapper): """ response = wrapper.request(self) return self.__response_processing(response, wrapper=wrapper) -https://sms-activate.ru/stubs/handler_api.php?api_key=$api_key&action=getFullSms&id=$id class GetStatus(ActionsModel): @@ -93,7 +92,7 @@ def request(self, wrapper): return self.__response_processing(response) -class FetFullSms(ActionsModel): +class GetFullSms(ActionsModel): _name = 'getFullSms' def __init__(self, id): From 59a4c6f0ba136ebb5c22f7a33e3480fd88326431 Mon Sep 17 00:00:00 2001 From: SHELA Date: Wed, 19 May 2021 18:25:44 +0300 Subject: [PATCH 07/23] Update activations.py --- smsactivateru/activations.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smsactivateru/activations.py b/smsactivateru/activations.py index 492691a..11a0ce3 100644 --- a/smsactivateru/activations.py +++ b/smsactivateru/activations.py @@ -58,6 +58,8 @@ def wait_code(self, timeout=1200, callback=None, not_end=False, *args, **kwargs) if counter >= timeout: raise ('Timeout error') response = smsactivateru.GetStatus(id=self.id).request(self.wrapper) + if not response['code'] and response['status'] == "STATUS_OK": + response = smsactivateru.GetFullSms(id=self.id).request(self.wrapper) if response['code'] and not not_end and response['code'] != self.last_code: self.__last_code = response['code'] smsactivateru.SetStatus( From 3b845412f7aed4aa58dfb9b5ae95eeb69b0a1f59 Mon Sep 17 00:00:00 2001 From: SHELA Date: Thu, 20 May 2021 09:11:48 +0300 Subject: [PATCH 08/23] Update __init__.py --- smsactivateru/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smsactivateru/__init__.py b/smsactivateru/__init__.py index 362a509..94ab26e 100644 --- a/smsactivateru/__init__.py +++ b/smsactivateru/__init__.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- from .sms import Sms from .datatype import SmsTypes -from .actions import GetBalance, GetFreeSlots, GetNumber, SetStatus, GetStatus +from .actions import GetBalance, GetFreeSlots, GetNumber,GetFullSms, SetStatus, GetStatus from .services import SmsService from .activations import SmsActivation __author__ = 'tezmen' __version__ = '1.0' -__contact__ = 'https://t.me/tezmen' \ No newline at end of file +__contact__ = 'https://t.me/tezmen' From 822f6c7a74db4669fe329fbaa6318571e404c477 Mon Sep 17 00:00:00 2001 From: SHELA Date: Thu, 20 May 2021 09:13:33 +0300 Subject: [PATCH 09/23] Update activations.py --- smsactivateru/activations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smsactivateru/activations.py b/smsactivateru/activations.py index 11a0ce3..91c8124 100644 --- a/smsactivateru/activations.py +++ b/smsactivateru/activations.py @@ -75,9 +75,9 @@ def wait_code(self, timeout=1200, callback=None, not_end=False, *args, **kwargs) ).request(self.wrapper) break if callback: - callback(self.last_code) + callback(self.last_code.strip()) else: - return self.last_code + return self.last_code.strip() @property def id(self): From b20768bc13452bbe208ad0e96036be65ce32dff0 Mon Sep 17 00:00:00 2001 From: SHELA Date: Thu, 20 May 2021 09:13:55 +0300 Subject: [PATCH 10/23] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fc8bcb9..278ed42 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ def requirements(): setup( name='smsactivateru', - version='1.2.7', + version='1.2.8', long_description=long_description(), long_description_content_type='text/markdown', description='Wrapper for automatic reception of SMS-messages by sms-activate.ru', From dd59e2dc8d5fa815c9cbcd9a9b6c379877836932 Mon Sep 17 00:00:00 2001 From: SHELA Date: Mon, 1 Aug 2022 16:07:42 +0300 Subject: [PATCH 11/23] Update services.py --- smsactivateru/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smsactivateru/services.py b/smsactivateru/services.py index 292ace5..95cb0ec 100644 --- a/smsactivateru/services.py +++ b/smsactivateru/services.py @@ -14,7 +14,7 @@ class ServiceStorage: 'Messenger': 'uk_0', 'LineMessenger': 'me_0', 'Yahoo': 'mb_0', 'DrugVokrug': 'we_0', 'FiveOrochka': 'bd_0', 'TencentQQ': 'kp_0', 'WOG': 'dt_0', 'Yandex': 'ya_0', 'YandexSmsForwarding': 'ya_1', 'Steam': 'mt_0', 'Tinder': 'oi_0', 'Mamba': 'fd_0', 'DromRu': 'zz_0', 'KakaoTalk': 'kt_0', 'AOL': 'pm_0', 'LinkedIN': 'tn_0', - 'DeliveryClub': 'dt_0', 'Craigslist': 'wc_0' + 'DeliveryClub': 'dt_0', 'Craigslist': 'wc_0', 'Offerup': 'zm_0' } From 2c3988c662e99d687652fbeba46df175a70af58b Mon Sep 17 00:00:00 2001 From: SHELA Date: Mon, 1 Aug 2022 16:08:40 +0300 Subject: [PATCH 12/23] Update services.py --- smsactivateru/services.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/smsactivateru/services.py b/smsactivateru/services.py index 95cb0ec..572ff58 100644 --- a/smsactivateru/services.py +++ b/smsactivateru/services.py @@ -280,6 +280,13 @@ def Steam(self): """ return self._Steam + @property + def Offerup(self): + """ + :rtype: smsactivateru.models.ServiceModel + """ + return self._Offerup + @property def Tinder(self): """ From 6786c4d4cbec685d82d5369d80682d978ded5438 Mon Sep 17 00:00:00 2001 From: SHELA Date: Mon, 1 Aug 2022 16:25:37 +0300 Subject: [PATCH 13/23] Update __init__.py --- smsactivateru/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smsactivateru/__init__.py b/smsactivateru/__init__.py index 94ab26e..470becb 100644 --- a/smsactivateru/__init__.py +++ b/smsactivateru/__init__.py @@ -6,5 +6,5 @@ from .activations import SmsActivation __author__ = 'tezmen' -__version__ = '1.0' +__version__ = '1.0.1' __contact__ = 'https://t.me/tezmen' From e42d45eebc4797487f323383e3c8bb25da4053f8 Mon Sep 17 00:00:00 2001 From: SHELA Date: Mon, 1 Aug 2022 16:26:35 +0300 Subject: [PATCH 14/23] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 278ed42..a34cc89 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ def requirements(): setup( name='smsactivateru', - version='1.2.8', + version='1.0.1', long_description=long_description(), long_description_content_type='text/markdown', description='Wrapper for automatic reception of SMS-messages by sms-activate.ru', From b2ad684641e6f8be2b07786b5ae42a15bd898358 Mon Sep 17 00:00:00 2001 From: SHELA Date: Sun, 22 Jan 2023 21:54:55 +0200 Subject: [PATCH 15/23] Update datatype.py --- smsactivateru/datatype.py | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/smsactivateru/datatype.py b/smsactivateru/datatype.py index f7b3706..40e963b 100644 --- a/smsactivateru/datatype.py +++ b/smsactivateru/datatype.py @@ -11,8 +11,8 @@ class Country: MM = '5' # Мьянма (Myanmar) ID = '6' # Индонезия (Indonesia) MY = '7' # Малайзия (Malaysia) - # KE = '8' # Кения (Kenya) – temp disable - # TZ = '9' # Танзания (Tanzania) – temp disable + KE = '8' # Кения (Kenya) – temp disable + TZ = '9' # Танзания (Tanzania) – temp disable VN = '10' # Вьетнам (Vietnam) KG = '11' # Кыргызстан (Kyrgyzstan) US_VIRT = '12' # США ВИРТ (USA) @@ -49,6 +49,26 @@ class Country: HR = '45' # Хорватия ( Croatia) IQ = '47' # Ирак (Iraq) NL = '48' # Нидерланды (Netherlands) + TH = '52' # Таиланд (Thailand) + SA = '53' # Саудовская Аравия (Saudi Arabia) + MX = '54' # Мексика (Mexico) + TW = '55' # Тайвань (Taiwan) + ES = '56' # Испания (Spain) + IR = '57' # Иран (Iran) + DZ = '58' # Алжир (Algeria) + SI = '59' # Словения (Slovenia) + BD = '60' # Бангладеш (Bangladesh) + SN = '61' # Сенегал (Senegal) + TR = '62' # Турция (Turkey) + CZ = '63' # Чехия (Czechia) + LK = '64' # Шри-Ланка (Sri Lanka) + PE = '65' # Перу (Peru) + PK = '66' # Пакистан (Pakistan) + NZ = '67' # Новая Зеландия (New Zealand) + GN = '68' # Гвинея (Guinea) + ML = '69' # Мали (Mali) + VE = '70' # Венесуэла (Venezuela) + ET = '71' # Эфиопия (Ethiopia) BR = '73' US = '187' # США From e01f307b8996916973f8b8408b665f7aa77a9877 Mon Sep 17 00:00:00 2001 From: SHELA Date: Sun, 22 Jan 2023 21:55:08 +0200 Subject: [PATCH 16/23] Update __init__.py --- smsactivateru/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smsactivateru/__init__.py b/smsactivateru/__init__.py index 470becb..2882d58 100644 --- a/smsactivateru/__init__.py +++ b/smsactivateru/__init__.py @@ -6,5 +6,5 @@ from .activations import SmsActivation __author__ = 'tezmen' -__version__ = '1.0.1' +__version__ = '1.0.2' __contact__ = 'https://t.me/tezmen' From 96102ce6e6545cca842b7d0303138ca71b43e352 Mon Sep 17 00:00:00 2001 From: SHELA Date: Sun, 22 Jan 2023 21:55:24 +0200 Subject: [PATCH 17/23] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a34cc89..e838eb6 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ def requirements(): setup( name='smsactivateru', - version='1.0.1', + version='1.0.2', long_description=long_description(), long_description_content_type='text/markdown', description='Wrapper for automatic reception of SMS-messages by sms-activate.ru', From f4c2ea635a4421e7b48f77078f38e060585a11fd Mon Sep 17 00:00:00 2001 From: SHELA Date: Tue, 24 Jan 2023 15:21:00 +0200 Subject: [PATCH 18/23] Update activations.py --- smsactivateru/activations.py | 197 +++++++++++++++++++++-------------- 1 file changed, 117 insertions(+), 80 deletions(-) diff --git a/smsactivateru/activations.py b/smsactivateru/activations.py index 91c8124..bdf8ad5 100644 --- a/smsactivateru/activations.py +++ b/smsactivateru/activations.py @@ -5,92 +5,129 @@ class SmsActivation: - """ - This is simple worker! - For hand-settings any other params – check /example/custom.py - """ + """ + This is simple worker! + For hand-settings any other params – check /example/custom.py + """ - def __init__(self, activation_id, number, wrapper): - self.__id = activation_id - self.__number = number - self.__wrapper = wrapper - self.__last_code = str() + def __init__(self, activation_id, number, wrapper): + self.__id = activation_id + self.__number = number + self.__wrapper = wrapper + self.__last_code = str() - def cancel(self): - set_status = smsactivateru.SetStatus( - id=self.__id, - status=smsactivateru.SmsTypes.Status.Cancel - ) - if self.wrapper: - return set_status.request(self.wrapper) - return set_status + def cancel(self): + set_status = smsactivateru.SetStatus( + id=self.__id, + status=smsactivateru.SmsTypes.Status.Cancel + ) + if self.wrapper: + return set_status.request(self.wrapper) + return set_status - def mark_as_used(self): - set_status = smsactivateru.SetStatus( - id=self.__id, - status=smsactivateru.SmsTypes.Status.AlreadyUsed - ) - if self.wrapper: - return set_status.request(self.wrapper) - return set_status + def mark_as_used(self): + set_status = smsactivateru.SetStatus( + id=self.__id, + status=smsactivateru.SmsTypes.Status.AlreadyUsed + ) + if self.wrapper: + return set_status.request(self.wrapper) + return set_status - def was_sent(self): - set_status = smsactivateru.SetStatus( - id=self.__id, - status=smsactivateru.SmsTypes.Status.SmsSent - ) - if self.wrapper: - return set_status.request(self.wrapper) - return set_status + def was_sent(self): + set_status = smsactivateru.SetStatus( + id=self.__id, + status=smsactivateru.SmsTypes.Status.SmsSent + ) + if self.wrapper: + return set_status.request(self.wrapper) + return set_status - def wait_code(self, timeout=1200, callback=None, not_end=False, *args, **kwargs): - """ - :param wrapper: obj for work with sms-activate - :param timeout: timeout waiting of code from sms in secs. 1200 - 20 min, this is max time of a live session. - :param callback: function for eval before getting code - :param not_end: - :return: str - """ - counter = 0 - while True: - time.sleep(1) - counter += 1 - if counter >= timeout: - raise ('Timeout error') - response = smsactivateru.GetStatus(id=self.id).request(self.wrapper) - if not response['code'] and response['status'] == "STATUS_OK": - response = smsactivateru.GetFullSms(id=self.id).request(self.wrapper) - if response['code'] and not not_end and response['code'] != self.last_code: - self.__last_code = response['code'] - smsactivateru.SetStatus( - id=self.id, - status=smsactivateru.SmsTypes.Status.End - ).request(self.wrapper) - break - elif response['code'] and not_end and response['code'] != self.last_code: - self.__last_code = response['code'] - smsactivateru.SetStatus( - id=self.id, - status=smsactivateru.SmsTypes.Status.OneMoreCode - ).request(self.wrapper) - break - if callback: - callback(self.last_code.strip()) - else: - return self.last_code.strip() + def wait_code(self, timeout=1200, callback=None, not_end=False, *args, **kwargs): + """ + :param wrapper: obj for work with sms-activate + :param timeout: timeout waiting of code from sms in secs. 1200 - 20 min, this is max time of a live session. + :param callback: function for eval before getting code + :param not_end: + :return: str + """ + counter = 0 + while True: + time.sleep(1) + counter += 1 + if counter >= timeout: + raise ('Timeout error') + response = smsactivateru.GetStatus(id=self.id).request(self.wrapper) + if not response['code'] and response['status'] == "STATUS_OK": + response = smsactivateru.GetFullSms(id=self.id).request(self.wrapper) + if response['code'] and not not_end and response['code'] != self.last_code: + self.__last_code = response['code'] + smsactivateru.SetStatus( + id=self.id, + status=smsactivateru.SmsTypes.Status.End + ).request(self.wrapper) + break + elif response['code'] and not_end and response['code'] != self.last_code: + self.__last_code = response['code'] + smsactivateru.SetStatus( + id=self.id, + status=smsactivateru.SmsTypes.Status.OneMoreCode + ).request(self.wrapper) + break + if callback: + callback(self.last_code.strip()) + else: + return self.last_code.strip() - @property - def id(self): - return self.__id + def wait_text(self, timeout=1200, callback=None, not_end=False, args, *kwargs): + """ + :param wrapper: obj for work with sms-activate + :param timeout: timeout waiting of code from sms in secs. 1200 - 20 min, this is max time of a live session. + :param callback: function for eval before getting code + :param not_end: + :return: str + """ + counter = 0 + while True: + time.sleep(1) + counter += 1 + if counter >= timeout: + raise ('Timeout error') + response = smsactivateru.GetStatus(id=self.id).request(self.wrapper) + if response['status'] == "STATUS_OK": + response = smsactivateru.GetFullSms(id=self.id).request(self.wrapper) + if response['code'] and not not_end and response['code'] != self.last_code: + self.__last_code = response['code'] + smsactivateru.SetStatus( + id=self.id, + status=smsactivateru.SmsTypes.Status.End + ).request(self.wrapper) + break + elif response['code'] and not_end and response['code'] != self.last_code: + self.__last_code = response['code'] + smsactivateru.SetStatus( + id=self.id, + status=smsactivateru.SmsTypes.Status.OneMoreCode + ).request(self.wrapper) + break - @property - def phone_number(self): - return self.__number + if callback: + callback(self.last_code.strip()) + else: + return self.last_code.strip() - @property - def wrapper(self): - return self.__wrapper + @property + def id(self): + return self.__id - @property - def last_code(self): - return self.__last_code + @property + def phone_number(self): + return self.__number + + @property + def wrapper(self): + return self.__wrapper + + @property + def last_code(self): + return self.__last_code From 079318df9173251d6851d3fe138b555c668e436f Mon Sep 17 00:00:00 2001 From: SHELA Date: Tue, 24 Jan 2023 15:22:11 +0200 Subject: [PATCH 19/23] Update sms.py --- smsactivateru/sms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smsactivateru/sms.py b/smsactivateru/sms.py index c031ad1..a273beb 100644 --- a/smsactivateru/sms.py +++ b/smsactivateru/sms.py @@ -5,7 +5,7 @@ class Sms: def __init__(self, api_key): self.key = api_key - self.url = 'http://sms-activate.ru/stubs/handler_api.php' + self.url = 'https://api.sms-activate.org/stubs/handler_api.php' def request(self, action): try: From af7896f705e068172f16837d7eb2fd36b7c0029b Mon Sep 17 00:00:00 2001 From: SHELA Date: Tue, 24 Jan 2023 15:22:23 +0200 Subject: [PATCH 20/23] Update sms.py --- smsactivateru/sms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smsactivateru/sms.py b/smsactivateru/sms.py index c031ad1..a273beb 100644 --- a/smsactivateru/sms.py +++ b/smsactivateru/sms.py @@ -5,7 +5,7 @@ class Sms: def __init__(self, api_key): self.key = api_key - self.url = 'http://sms-activate.ru/stubs/handler_api.php' + self.url = 'https://api.sms-activate.org/stubs/handler_api.php' def request(self, action): try: From 8260e60a80bfff92de8fe876c013b6e90569c250 Mon Sep 17 00:00:00 2001 From: SHELA Date: Tue, 24 Jan 2023 15:22:37 +0200 Subject: [PATCH 21/23] Update __init__.py --- smsactivateru/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smsactivateru/__init__.py b/smsactivateru/__init__.py index 2882d58..036555c 100644 --- a/smsactivateru/__init__.py +++ b/smsactivateru/__init__.py @@ -6,5 +6,5 @@ from .activations import SmsActivation __author__ = 'tezmen' -__version__ = '1.0.2' +__version__ = '1.0.3' __contact__ = 'https://t.me/tezmen' From a207b7d8172ea9a41b43ca76c03340cf828f9fa1 Mon Sep 17 00:00:00 2001 From: SHELA Date: Tue, 24 Jan 2023 15:22:47 +0200 Subject: [PATCH 22/23] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e838eb6..8523044 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ def requirements(): setup( name='smsactivateru', - version='1.0.2', + version='1.0.3', long_description=long_description(), long_description_content_type='text/markdown', description='Wrapper for automatic reception of SMS-messages by sms-activate.ru', From abc24276c4118f1f55ba828873b00c8a47b27114 Mon Sep 17 00:00:00 2001 From: SHELA Date: Tue, 24 Jan 2023 15:27:08 +0200 Subject: [PATCH 23/23] Update activations.py --- smsactivateru/activations.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/smsactivateru/activations.py b/smsactivateru/activations.py index bdf8ad5..aded695 100644 --- a/smsactivateru/activations.py +++ b/smsactivateru/activations.py @@ -79,7 +79,7 @@ def wait_code(self, timeout=1200, callback=None, not_end=False, *args, **kwargs) else: return self.last_code.strip() - def wait_text(self, timeout=1200, callback=None, not_end=False, args, *kwargs): + def wait_text(self, timeout=1200, callback=None, not_end=False, *args, **kwargs): """ :param wrapper: obj for work with sms-activate :param timeout: timeout waiting of code from sms in secs. 1200 - 20 min, this is max time of a live session. @@ -110,7 +110,6 @@ def wait_text(self, timeout=1200, callback=None, not_end=False, args, *kwargs): status=smsactivateru.SmsTypes.Status.OneMoreCode ).request(self.wrapper) break - if callback: callback(self.last_code.strip()) else: