SynapseFI Go Library
Go-based API wrapper for Synapse REST API. This library handles the user authentication process. As long as the user's fingerprint is registered, further authentication is not necessary in the development flow.
Documentation
Installation
$ go get github.com/SynapseFI/SynapseGo
main.go
import github.com/SynapseFI/SynapseGo
Examples
Refer to examples and our API documentation for examples.
Testing
To run test-mock or test-api:
- Add your credentials to "client_credentials.sample.json" and rename it "client_credentials.json"
To run test-api:
- Open the file "request_test.go" and change the value of "var userID string" to a user that was generated on your platform
Functions that mock the Synapse API:
make test-mock
Other functions including (limited) API requests:
make test-api