Skip to content

Commit c9dbc22

Browse files
committed
Added checkWhatsApp example
1 parent b3d1b79 commit c9dbc22

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

examples/checkWhatsApp/main.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
"log"
6+
7+
"github.com/green-api/whatsapp-api-client-golang/pkg/api"
8+
)
9+
10+
func main() {
11+
GreenAPI := api.GreenAPI{
12+
IDInstance: "1101000001",
13+
APITokenInstance: "d75b3a66374942c5b3c019c698abc2067e151558acbd412345",
14+
}
15+
16+
response, err := GreenAPI.Methods().Service().CheckWhatsapp(11001234567)
17+
if err != nil {
18+
log.Fatal(err)
19+
}
20+
21+
fmt.Println(response)
22+
}

0 commit comments

Comments
 (0)