Skip to content

hostari/jitsu_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jitsu_client

A crystal lang wrapper over the Jitsu API

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      jitsu_client:
        github: hostari/jitsu_client
  2. Run shards install

Usage

require "jitsu_client"
client = Jitsu::Client.new
client.set_host("https://jitsu.mycompany.com")
client.set_token("my_auth_token_from_jitsu")

Jitsu::Event.create({ data: { my_data: 1 } }.to_json, client: client)

Contributing

  1. Fork it (https://github.com/hostari/jitsu_client/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors