Setup

The reactivehub.io SDKs implements the methods to publish events to the Event API.

Installation

Go
Ruby
.NET
Node.js
Elixir
PHP

Install Via Go Get:

$ go get -u github.com/reactivehub-io/reactivehub-sdk-go

Gemfile

gem "reactivehub-sdk-ruby", :git => "https://github.com/reactivehub-io/reactivehub-sdk-ruby.git"

Via Nuget

PM> Install-Package Reactivehub -Version 1.0.0

npm i -S @reactivehub/sdk-javascript

def deps do
[
{:reactivehub_sdk_elixir, "~> 0.1.0"}
]
end
composer require reactivehub-io/reactivehub-sdk-php

Authentication

First, create an API token in the admin console, and init your client with the API Key and API Secret.

Go
Ruby
.NET
Node.js
Elixir
PHP
client := reactivehub.BuildClient("<team-name>", "<client-key>", "<client-secret>")
require 'reactivehub_sdk'
client = build_client('<your-client-key>', '<your-client-secret>', 'your-team-name')
var client = new ReactivehubClient("<team-name>", "<you-client-key>", "<your-client-secret>");
const client = require('reactivehub-sdk-javascript');
client.initialize({
namespace: '<team-name>',
clientKey: '<client-key>',
clientSecret: '<client-secret>',
});
iex> ReactivehubSdkElixir.build_config('<team-name>', '<client-key>', '<client-secret>')
$config = SDK::buildConfig("<team-name>.", "<client-key>", "<client-secret>");

Auth Parameters

Parameter

Description

team-name

Your team namespace.

client-key

API client key created in the admin console.

client-secret

API client secret created in the admin console.