@@ -13,7 +13,7 @@ def __init__(self, api_key, api_password):
13
13
'X-SIM-PASSWORD' : self .api_password
14
14
}
15
15
16
- # https://docs-new .simpay.pl/python/?python#sms-pobieranie-listy-uslug
16
+ # https://docs.simpay.pl/ pl/python/?python#sms-pobieranie-listy-uslug
17
17
def get_service_list (self ):
18
18
result = []
19
19
@@ -43,13 +43,13 @@ def get_service_list_paginated(self, page=None, limit=None):
43
43
44
44
return r .json ()
45
45
46
- # https://docs-new .simpay.pl/python/?python#sms-pobieranie-informacji-o-usludze
46
+ # https://docs.simpay.pl/ pl/python/?python#sms-pobieranie-informacji-o-usludze
47
47
def get_service (self , service_id ):
48
48
r = requests .get (self .url + '/' + service_id , headers = self .headers )
49
49
50
50
return r .json ().data
51
51
52
- # https://docs-new .simpay.pl/python/?python#sms-pobieranie-listy-transakcji
52
+ # https://docs.simpay.pl/ pl/python/?python#sms-pobieranie-listy-transakcji
53
53
def get_transaction_list (self , service_id ):
54
54
result = []
55
55
@@ -79,13 +79,13 @@ def get_transaction_list_paginated(self, service_id, page=None, limit=None):
79
79
80
80
return r .json ()
81
81
82
- # https://docs-new .simpay.pl/python/?python#sms-pobieranie-informacji-o-transakcji
82
+ # https://docs.simpay.pl/ pl/python/?python#sms-pobieranie-informacji-o-transakcji
83
83
def get_transaction (self , service_id , transaction_id ):
84
84
r = requests .get (self .url + '/' + service_id + '/transactions/' + transaction_id , headers = self .headers )
85
85
86
86
return r .json ().data
87
87
88
- # https://docs-new .simpay.pl/python/?python#sms-pobieranie-dostepnych-numerow-dla-uslugi
88
+ # https://docs.simpay.pl/ pl/python/?python#sms-pobieranie-dostepnych-numerow-dla-uslugi
89
89
def get_service_numbers (self , service_id ):
90
90
result = []
91
91
@@ -115,13 +115,13 @@ def get_service_numbers_paginated(self, service_id, page=None, limit=None):
115
115
116
116
return r .json ()
117
117
118
- # https://docs-new .simpay.pl/python/?python#sms-informacji-o-pojedynczym-numerze-uslugi
118
+ # https://docs.simpay.pl/ pl/python/?python#sms-informacji-o-pojedynczym-numerze-uslugi
119
119
def get_service_number (self , service_id , number ):
120
120
r = requests .get (self .url + '/sms/' + service_id + '/numbers/' + number , headers = self .headers )
121
121
122
122
return r .json ().data
123
123
124
- # https://docs-new .simpay.pl/python/?python#sms-pobieranie-wszystkich-dostepnych-numerow
124
+ # https://docs.simpay.pl/ pl/python/?python#sms-pobieranie-wszystkich-dostepnych-numerow
125
125
def get_numbers (self ):
126
126
result = []
127
127
@@ -151,14 +151,14 @@ def get_numbers_paginated(self, page=None, limit=None):
151
151
152
152
return r .json ()
153
153
154
- # https://docs-new .simpay.pl/python/?python#sms-pobieranie-pojedynczego-numeru-sms
154
+ # https://docs.simpay.pl/ pl/python/?python#sms-pobieranie-pojedynczego-numeru-sms
155
155
156
156
def get_number (self , number ):
157
157
r = requests .get (self .url + '/numbers/' + number , headers = self .headers )
158
158
159
159
return r .json ().data
160
160
161
- # https://docs-new .simpay.pl/python/?python#sms-weryfikacja-poprawnosci-kodu
161
+ # https://docs.simpay.pl/ pl/python/?python#sms-weryfikacja-poprawnosci-kodu
162
162
163
163
def verify_sms_code (self , service_id , code , number = None ):
164
164
body = types .SimpleNamespace ()
0 commit comments