1
0
Fork 0
mirror of synced 2024-07-11 17:35:49 +12:00
appwrite/app/sdks/go/docs/examples/Auth/Confirm.md
2019-10-13 23:19:06 +03:00

600 B

Auth Examples

Confirm

    package appwrite-confirm

    import (
        "fmt"
        "os"
        "github.com/appwrite/sdk-for-go"
    )

    func main() {
        // Create a Client
        var clt := appwrite.Client{}

        // Set Client required headers

        // Create a new Auth service passing Client
        var srv := appwrite.Auth{
            client: &clt
        }

        // Call Confirm method and handle results
        var res, err := srv.Confirm("[USER_ID]", "[TOKEN]")
        if err != nil {
            panic(err)
        }

        fmt.Println(res)
    }