Go

Instructions on how to install and use the MetaCopier API Client package for Go

Create API Key from metacopier.io

You can use two types of API keys:

  • Project-level API key: Navigate to Your Projects > (Choose a project) > API Keys (provides access to all accounts in the project)

  • Account API key: Automatically generated when an account is created (provides access only to that specific account). Retrieve using the getAccountApiKeysarrow-up-right endpoint.

Note: Please do not share your API Key to people whom you don't trust.

Package Information

Both packages from option 1 or option 2 are based on the following OpenAPI configuration:

Option 1: Install with Go modules (pkg.go.dev)

Execute install command

Execute the following command to install the SDK package:

You can also visit the package on the official pkg.go.dev site:

Options 2: Install with OpenAPI Generator CLI

See instructions under Generation

Execute CLI command

Execute the following command to generate the SDK package:

Example

In the following Go program I will use the metacopier package to fetch all accounts of my MetaCopier project.

Generate your own package

With the following command, you can generate your own package for the metacopier api:

circle-info

Be sure that you have installed the OpenAPI Generator. See Generation page for more information.

For more information regarding the Open API generator, please visit their offical page:

What endpoints can I call?

To check all available endpoints see either of the two pages:

Readme.iochevron-rightSwaggerchevron-right

Last updated