Skip to content

Commit f2d3ed8

Browse files
committed
Updated examples
1 parent 25f4b02 commit f2d3ed8

9 files changed

Lines changed: 18 additions & 18 deletions

examples/createGroupAndSendMessage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from whatsapp_api_client_python import API
22

3-
greenAPI = API.GreenApi(
3+
greenAPI = API.GreenAPI(
44
"1101000001", "d75b3a66374942c5b3c019c698abc2067e151558acbd412345"
55
)
66

examples/data/green-api-logo_2.png

-93 KB
Binary file not shown.

examples/data/rates.png

87.9 KB
Loading

examples/receiveNotification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from whatsapp_api_client_python import API
55

6-
greenAPI = API.GreenApi(
6+
greenAPI = API.GreenAPI(
77
"1101000001", "d75b3a66374942c5b3c019c698abc2067e151558acbd412345"
88
)
99

examples/sendPictureByLink.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
from whatsapp_api_client_python import API
22

3-
greenAPI = API.GreenApi(
3+
greenAPI = API.GreenAPI(
44
"1101000001", "d75b3a66374942c5b3c019c698abc2067e151558acbd412345"
55
)
66

77

88
def main():
99
response = greenAPI.sending.sendFileByUrl(
1010
"11001234567@c.us",
11-
"https://green-api.com/green-api-logo_2.png",
12-
"green-api-logo_2.png",
13-
"GREEN API logo"
11+
"https://download.samplelib.com/png/sample-clouds2-400x300.png",
12+
"sample-clouds2-400x300.png",
13+
"Sample PNG"
1414
)
1515

1616
print(response.data)

examples/sendPictureByUpload.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
from whatsapp_api_client_python import API
22

3-
greenAPI = API.GreenApi(
3+
greenAPI = API.GreenAPI(
44
"1101000001", "d75b3a66374942c5b3c019c698abc2067e151558acbd412345"
55
)
66

77

88
def main():
99
response = greenAPI.sending.sendFileByUpload(
1010
"11001234567@c.us",
11-
"data/green-api-logo_2.png",
12-
"green-api-logo_2.png",
13-
"GREEN API logo"
11+
"data/rates.png",
12+
"rates.png",
13+
"Available rates"
1414
)
1515

1616
print(response.data)

examples/sendPoll.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
from whatsapp_api_client_python import API
22

3-
greenAPI = API.GreenApi(
3+
greenAPI = API.GreenAPI(
44
"1101000001", "d75b3a66374942c5b3c019c698abc2067e151558acbd412345"
55
)
66

77

88
def main():
99
response = greenAPI.sending.sendPoll(
1010
"11001234567@c.us",
11-
"Please choose the color:",
11+
"Please choose a color:",
1212
[
13-
{"optionName": "green"},
14-
{"optionName": "red"},
15-
{"optionName": "blue"}
13+
{"optionName": "Red"},
14+
{"optionName": "Green"},
15+
{"optionName": "Blue"}
1616
]
1717
)
1818

examples/sendTextMessage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from whatsapp_api_client_python import API
22

3-
greenAPI = API.GreenApi(
3+
greenAPI = API.GreenAPI(
44
"1101000001", "d75b3a66374942c5b3c019c698abc2067e151558acbd412345"
55
)
66

examples/uploadFileAndSendFileByUrl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
from whatsapp_api_client_python import API
55

6-
greenAPI = API.GreenApi(
6+
greenAPI = API.GreenAPI(
77
"1101000001", "d75b3a66374942c5b3c019c698abc2067e151558acbd412345"
88
)
99

1010

1111
def main():
1212
upload_file_response = greenAPI.sending.uploadFile(
13-
"data/green-api-logo_2.png"
13+
"data/rates.png"
1414
)
1515
if upload_file_response.code == 200:
1616
print(upload_file_response.data)

0 commit comments

Comments
 (0)