Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

hashlabs/nexmo-verify-go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nexmo Go Verify SDK

You use Nexmo Verify to verify that a user has access to a specific phone number. Nexmo sends a PIN code in an SMS or Text-To-Speech, your user enters this PIN into your App, you validate the PIN with Nexmo. With Verify SDK for Go you easily integrate Verify functionality into your App.

This implementation mimics the Nexmo Android SDK, since Golang is not a supported language.

Usage

import nexmo "github.com/hashlabs/nexmo-verify-go-sdk"

client := nexmo.NewClient(<appId>, <sharedSecret>)

response, err := client.VerifySearch(map[string]string {
  "device_id":         deviceId,
  "source_ip_address": "127.0.0.1",
  "number": "+521111111111",
})
if err != nil {
  panic(err)
}

// Use the response struct to check for the user_status

Endpoints

  • GetToken
  • Verify
  • VerifyCheck
  • VerifyControl
  • VerifySearch
  • VerifyLogout

License

MIT

Releases

No releases published

Packages

No packages published

Languages