This is an automatically generated Python 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.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.17
- Package version: 1.0.7
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit https://docs.harmony.factom.com
Python 2.7 and 3.4+
You can install the Harmony Connect client directly from Github using pip
pip install git+https://github.com/FactomProject/factom-harmony-connect-python-client.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/FactomProject/factom-harmony-connect-python-client.git
)
You can also install the package hosted on PyPi:
pip install harmony_connect_client
Then import the package:
import harmony_connect_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import harmony_connect_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import harmony_connect_client
from harmony_connect_client.rest import ApiException
from pprint import pprint
configuration = harmony_connect_client.Configuration()
# Configure API key authorization: AppId
configuration.api_key['app_id'] = 'YOUR_API_KEY'
configuration = harmony_connect_client.Configuration()
# Configure API key authorization: AppKey
configuration.api_key['app_key'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = harmony_connect_client.ChainsApi(harmony_connect_client.ApiClient(configuration))
chain_id = 285904 # str | Chain identifier
try:
# Get Chain Info
api_response = api_instance.get_chain_by_id(chain_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ChainsApi->get_chain_by_id: %s\n" % e)
All URIs are relative to https://connect-shared-sandbox-2445582615332.production.gw.apicast.io/v1
Class | Method | HTTP request | Description |
---|---|---|---|
ChainsApi | get_chain_by_id | GET /chains/{chain_id} | Get Chain Info |
ChainsApi | get_chains | GET /chains | Get All Chains |
ChainsApi | post_chain | POST /chains | Create a Chain |
ChainsApi | post_chain_search | POST /chains/search | Search Chains |
EntriesApi | get_entries_by_chain_id | GET /chains/{chain_id}/entries | Get Chain's Entries |
EntriesApi | get_entry_by_hash | GET /chains/{chain_id}/entries/{entry_hash} | Get Entry Info |
EntriesApi | get_first_entry | GET /chains/{chain_id}/entries/first | Get Chain's First Entry |
EntriesApi | get_last_entry | GET /chains/{chain_id}/entries/last | Get Chain's Last Entry |
EntriesApi | post_entries_search | POST /chains/{chain_id}/entries/search | Search Chain's Entries |
EntriesApi | post_entry_to_chain_id | POST /chains/{chain_id}/entries | Create an Entry |
InfoApi | get_api_info | GET / | API Info |
- AllInfo
- AllInfoLinks
- Chain
- ChainCreate
- ChainData
- ChainDataDblock
- ChainDataEblock
- ChainDataEntries
- ChainLink
- ChainList
- ChainListData
- ChainShort
- Entry
- EntryCreate
- EntryData
- EntryDataDblock
- EntryDataEblock
- EntryList
- EntryListChain
- EntryListData
- EntrySearchResponse
- EntrySearchResponseData
- EntryShort
- SearchBody
- Type: API key
- API key parameter name: app_id
- Location: HTTP header
- Type: API key
- API key parameter name: app_key
- Location: HTTP header
For more information, you can view the Connect documentation at https://docs.harmony.factom.com
For additional support, contact us at [email protected]