push-api-client

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2018 License: MIT Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

push-api-client

A demo websocket client showing how to subscribe to Abios' data pushes. Documentation for the Abios push API can be found here.

Requirements

You need to have valid Abios API keys to run this demo client. If you don't have any keys, please contact us at info@abiosgaming.com and we'll help you to get setup.

The push api test client has been tested with Golang 1.9.x, it might work with older compiler versions.

All external library dependencies are included in the vendor directory. If you need to reinstall them for some reason, remove the vendor directory and regenerate it using the glide dependency management tool (see https://glide.sh for info on how to install it).

Compiling

To compile the client:

$ go build .

Now you should have a binary called push-api-client.

If you want to reinstall the library dependencies, do:

$ glide install

This creates the vendor directory with all the dependencies.

Running

To start the client do:

$ ./push-api-client --client-id=$CLIENT_ID --client-secret=$CLIENT_SECRET --subscription-file=sample_subscription.json

where CLIENT_ID and CLIENT_SECRET are the same that you already use to access the abios HTTP API. The sample_subscription.json file contains a simple subscription specification that will listen to all events from the series and matches channels (for the games your account has access to). See the subscription documentation for information about how to write subscription specifications.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL