/factom-harmony-connect-go-client

An automatically generated Go client library for Factom Harmony Connect.

Primary LanguageGoMIT LicenseMIT

Factom Harmony Connect - Go Client Library

This is an automatically generated Go client library for Factom Harmony Connect.

Connect is the fastest way to add blockchain capabilities to your app without cryptocurrencies, wallets, or network nodes. Create an account to get your free API key for the sandbox environment.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.17
  • Package version: 1.0.7
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

For more information, please visit https://docs.harmony.factom.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./connectclient"

Documentation for API Endpoints

All URIs are relative to https://connect-shared-sandbox-2445582615332.production.gw.apicast.io/v1

Class Method HTTP request Description
ChainsApi GetChainByID Get /chains/{chain_id} Get Chain Info
ChainsApi GetChains Get /chains Get All Chains
ChainsApi PostChain Post /chains Create a Chain
ChainsApi PostChainSearch Post /chains/search Search Chains
EntriesApi GetEntriesByChainID Get /chains/{chain_id}/entries Get Chain's Entries
EntriesApi GetEntryByHash Get /chains/{chain_id}/entries/{entry_hash} Get Entry Info
EntriesApi GetFirstEntry Get /chains/{chain_id}/entries/first Get Chain's First Entry
EntriesApi GetLastEntry Get /chains/{chain_id}/entries/last Get Chain's Last Entry
EntriesApi PostEntriesSearch Post /chains/{chain_id}/entries/search Search Chain's Entries
EntriesApi PostEntryToChainID Post /chains/{chain_id}/entries Create an Entry
InfoApi GetApiInfo Get / API Info

Documentation For Models

Documentation For Authorization

AppId

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
})
r, err := client.Service.Operation(auth, args)

AppKey

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
})
r, err := client.Service.Operation(auth, args)

Support

For more information, you can view the Connect documentation at https://docs.harmony.factom.com

For additional support, contact us at harmony-support@factom.com