1
0
Fork 0
mirror of synced 2024-08-06 13:59:44 +12:00
appwrite/app/sdks/go/docs/examples/Auth/confirm-resend.md

35 lines
673 B
Markdown
Raw Normal View History

2019-10-19 07:42:02 +13:00
# Auth Examples
## ConfirmResend
```go
package appwrite-confirmresend
import (
"fmt"
"os"
"github.com/appwrite/sdk-for-go"
)
func main() {
// Create a Client
var clt := appwrite.Client{}
// Set Client required headers
clt.SetProject("")
clt.SetKey("")
// Create a new Auth service passing Client
var srv := appwrite.Auth{
client: &clt
}
// Call ConfirmResend method and handle results
var res, err := srv.ConfirmResend("https://example.com")
if err != nil {
panic(err)
}
fmt.Println(res)
}
```