A Go client for the TokenEx API.
TokenEx API Documentation
Installation
$ go get github.com/cliffom/tokenex-go
Usage
config := tokenex.NewConfig(
"https://test-api.tokenex.com/TokenServices.svc/REST/",
"YOUR_TOKENEX_ID",
"YOUR_TOKENEX_API_KEY")
token, tokenErr := tokenex.Tokenize("4242424242424242", tokenex.SIXTOKENFOUR, config)
data, dataErr := tokenex.Detokenize(token.Token, config)
validate, validateErr := tokenex.Validate(token.Token, config)
delete, deleteErr := tokenex.Delete(token.Token, config)
License
tokenex-go is available as open source under the terms of the MIT License.