- Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsmssend.py
More file actions
Latest commit
51 lines (41 loc) · 1.7 KB
/
Copy pathsmssend.py
File metadata and controls
51 lines (41 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
importrequests
classJmunjaPhone:
def__init__(self, uid, upw):
self.uid=uid
self.upw=upw
self.url="http://jmunja.com/sms/app/api.php"
self.subject=""
self.content=""
self.hpno=""
defsend(self, subject, content, hpno):
self.subject=subject
self.content=content
self.hpno=hpno
dict_data= {'mode': 'send', 'id': self.uid, 'pw': self.upw, 'title': self.subject,
'message': self.content, 'reqlist': self.hpno}
response=requests.post(url=self.url, data=dict_data,
headers={'Content-Type': 'application/x-www-form-urlencoded'})
gubun=":header_stop:"
result=response.text.replace(gubun, "")
returnresult
classJmunjaWeb:
def__init__(self, uid, upw):
self.uid=uid
self.upw=upw
self.url="http://jmunja.com/sms/web/api.php"
self.subject=""
self.content=""
self.hpno=""
self.callback=""
defsend(self, subject, content, hpno, callback):
self.subject=subject
self.content=content
self.hpno=hpno
self.callback=callback
dict_data= {'mode': 'send', 'id': self.uid, 'pw': self.upw, 'title': self.subject,
'message': self.content, 'reqlist': self.hpno, 'callback': self.callback}
response=requests.post(url=self.url, data=dict_data,
headers={'Content-Type': 'application/x-www-form-urlencoded'})
gubun=":header_stop:"
result=response.text.replace(gubun, "")
returnresult