Skip to main content

Usage

Reference the Hop Go API client in your imports:
GO
Once you run any Go command, the Go toolchain will fetch and install the SDK automatically.

Creating a Client Instance

To use the SDK, you must first create a project token. You can also use a PAT (personal access token), however this is not recommended as it has access to all of your projects.
GO

Specifying the Project ID

If you do not use a project token, you must also specify the project ID. You can do this in 1 of 2 ways:
  1. You can set this at a client level:
GO
  1. You can set this at a request level:
GO
hop-go will prefer options which are set at a functional level.