Getting started


Slik.IO client libraries

Add this line to your script includes list:

<script type='text/javascript'>SLIKIO_PUBLIC_KEY ='SLIKIO_PUBLIC_KEY';
    </script>
    <script type='text/javascript' src='https://app.slik.io/assets/api/collector.js'></script>

Start sending data via

slikIOCollector.sendData('COLLECTION_ID', {userId: "123123", email: "user@email.com", action: "planPurchased", cost: 150.0})

Add this line to your Gemfile

gem 'slikio'

Initialize the framework

require 'slikio'

    SlikIO.API_PRIVATE_KEY = 'API_PRIVATE_KEY'

Send data using

SlikIO.sendData('COLLECTION_ID', {userId: "123123", email: "user@email.com", action: "planPurchased", cost: 150.0})

SlikIO ruby gem GitHub repository

To get the library:

pip install slikio-python

Initialize the framework

import slikio

    slikio = slikio.SlikIO('API_PRIVATE_KEY')

Send data using:

data= {
      'user_id': '123123',
      'email': 'user@email.com',
      'action': 'planPurchased',
      'cost': 150.0
    }

    slikio.sendData('COLLECTION_ID', data)

Install the SlikIO Nuget package

Install-Package SlikIO

Initialize:

SlikIO.SlikIO slikio = new SlikIO.SlikIO('API_PRIVATE_KEY');

Start sending data using

slikio.SendData('COLLECTION_ID', new System.Collections.Generic.Dictionary<string,object>() {
      {"userId", "123123"},
      {"email", "user@email.com"},
      {"action", "planPurchased"},
      {"cost", 150.0}
    });

Add this to the 'require' section in your composer.json

"slikio/php-sdk": "dev-master"

Set up SlikIO object:

require_once 'vendor/autoload.php';$slikio = new SlikIO('API_PRIVATE_KEY');

Start sending data using:

$slikio->sendData('COLLECTION_ID', array(
       'user_id' => '123123',
        'email' => 'user@email.com',
        'action' => 'planPurchased',
        'cost' => 150.0
      ));

Composer SlikIO package

SlikIO PHP SDK GitHub repository

curl 
      -H "Content-Type: application/json" 
      -u 'API_PRIVATE_KEY'
      -X POST
      -d '{"data": {"a": 1}}' 
      http://app.slik.io/api/v1/collections/COLLECTION_ID/data

Install the package:

npm install slikio

Initialize the framework:

var SlikIO = require("slikio")('API_PRIVATE_KEY');

Start sending data via:

SlikIO.sendData('COLLECTION_ID', {
        userId: '123123',
        email: 'user@email',
        action: "planPurchased",
        cost: 150.0},
        
        function callback(data) {console.log("Recieved: " + data)};