Socket
Socket
Sign inDemoInstall

github.com/ezquire/SynapseGo

Package Overview
Dependencies
9
Maintainers
0
Alerts
File Explorer

Install Socket

Protect your apps from supply chain attacks

Install

github.com/ezquire/SynapseGo

Package synapse is a wrapper library for the Synapse API (https://docs.synapsefi.com) Instantiate client Enable logging & turn off developer mode (developer mode is true by default) Register Fingerprint Set an `IDEMPOTENCY_KEY` (for `POST` requests only) Submit optional query parameters

    v0.0.0-20200318211410-527a6cdaeff5

Version published
Maintainers
0

Readme

# SynapseFI Go Library
![status](https://img.shields.io/badge/status-beta-yellow.svg)

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

[Main Docs](https://docs.synapsefi.com/)
[API Reference](https://docs.synapsefi.com/reference)

## Installation
```bash
$ go get github.com/SynapseFI/SynapseGo
```

**main.go**
```go
import github.com/SynapseFI/SynapseGo
```

## Examples

Refer to [examples](examples/examples.md) and our [API documentation](https://docs.synapsefi.com/) for examples.

## Testing

### To run test-mock or test-api: 
  1. Add your credentials to "client_credentials.sample.json" and rename it "client_credentials.json"

### To run test-api:
  1. 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:

```bash
make test-mock
```

Other functions including (limited) API requests:

```bash
make test-api
```

FAQs

Last updated on 18 Mar 2020

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc