View on GitHub

goC8

Go client for macrometa GDN

Setup

get your API key:

  1. Create a free [macrometa account (https://www.macrometa.com/)
  2. Create new API Key:
    • Log in
    • Go to Account
    • Click on API keys
    • Click on New Api key (Top right corner)
    • Give it a key ID i.e. TestKey & click create
    • Copy the actual KEY
    • Put it into a file that is .gitignored to prevent committing the key
  3. Add the API key to the config. See code example below.

Get your endpoint URI:

  1. Log in
  2. Go to Geo Fabrics
  3. Select _system
  4. Select the region closest to your location i.e. Fremont
  5. Copy the Endpoint URL and add it to the config

Get your custom fabric:

  1. In the web console, go to Geo Fabrics
  2. Click “New Geo Fabric” (Top right corner)
  3. Give it a name
  4. Select some initial locations. You can add more later.
  5. Copy the exact fabric name (case-sensitive) and add it to your config