Skip to content

Commit

Permalink
Added checkWhatsApp example
Browse files Browse the repository at this point in the history
  • Loading branch information
Amele9 committed Apr 4, 2024
1 parent b3d1b79 commit c9dbc22
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions examples/checkWhatsApp/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package main

import (
"fmt"
"log"

"github.com/green-api/whatsapp-api-client-golang/pkg/api"
)

func main() {
GreenAPI := api.GreenAPI{
IDInstance: "1101000001",
APITokenInstance: "d75b3a66374942c5b3c019c698abc2067e151558acbd412345",
}

response, err := GreenAPI.Methods().Service().CheckWhatsapp(11001234567)
if err != nil {
log.Fatal(err)
}

fmt.Println(response)
}

0 comments on commit c9dbc22

Please sign in to comment.