Skip to content
An automatically generated Go client library for Factom Harmony Connect.
Branch: master
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.openapi-generator Initial commit Jan 11, 2019
api Bump to version 1.0.7 Mar 7, 2019
docs
.gitignore
.openapi-generator-ignore Initial commit Jan 11, 2019
.travis.yml Initial commit Jan 11, 2019
LICENSE Update LICENSE Mar 21, 2019
README.md Bump to version 1.0.7 Mar 7, 2019
api_chains.go Version 1.0.1 Feb 20, 2019
api_entries.go Version 1.0.1 Feb 20, 2019
api_info.go
client.go
configuration.go Bump to version 1.0.7 Mar 7, 2019
git_push.sh Bump to version 1.0.7 Mar 7, 2019
model_all_info.go Initial commit Jan 11, 2019
model_all_info_links.go Initial commit Jan 11, 2019
model_chain.go
model_chain_create.go Initial commit Jan 11, 2019
model_chain_data.go Bump to version 1.0.7 Mar 7, 2019
model_chain_data_dblock.go
model_chain_data_eblock.go Version 1.0.1 Feb 20, 2019
model_chain_data_entries.go Initial commit Jan 11, 2019
model_chain_link.go Initial commit Jan 11, 2019
model_chain_list.go
model_chain_list_data.go Bump to version 1.0.7 Mar 7, 2019
model_chain_short.go
model_entry.go
model_entry_create.go
model_entry_data.go Bump to version 1.0.7 Mar 7, 2019
model_entry_data_dblock.go Version 1.0.1 Feb 20, 2019
model_entry_data_eblock.go Version 1.0.1 Feb 20, 2019
model_entry_list.go
model_entry_list_chain.go Version 1.0.1 Feb 20, 2019
model_entry_list_data.go Bump to version 1.0.7 Mar 7, 2019
model_entry_search_response.go
model_entry_search_response_data.go Version 1.0.1 Feb 20, 2019
model_entry_short.go Version 1.0.1 Feb 20, 2019
model_search_body.go
response.go

README.md

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

You can’t perform that action at this time.