I am new to Python. I need to register in Whatsapp. I found a library Yowsup
. But I can't understand how to use it. I am creating a service in Django
and python and I need to write a function for registration, how to do it?
Like:
def Register():
I have found an example in Yowsup
, but it is for console, how to use it in web service ?
You can refer to this site. https://pypi.python.org/pypi/pywhatsapp/
Simple wrapper around yowsup to send a message or mediafile with whatsapp
You can register a whatsapp client with the yowsup-cli
```python
`from whatsapp import Client
phone_to = '31641371199'
client = Client(login='3161516888', password='secretpasswordbase64')
client.send_message(phone_to, 'Hello Lola')
client.send_media(phone_to, path='/Users/tax/Desktop/logo.jpg')
```
# Installation
```
$ pip install pywhatsapp
```
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.