Sha256: 51195046299273ba640b19df76514c5ef6dd2a7cc3b142660cdb6121c2950037

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 KB

Contents

# Transistor

Transistor is a powerful digital metrics platform from [Original Machine](http://originalmachine.com) that is currently in beta. This gem provides an interface to the Transistor API.

## Installation

Add this line to your application's Gemfile:

    gem 'transistor-client'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install transistor-client

## Usage

First, [sign in](http://transistor.fm) and create an Application. Then, add your credentials, maybe in an initializer:

```ruby
Transistor.configure do |config|
  config.id = 'xxxxxx'
	config.secret = 'xxxxxx'
end
```

You can also override the default settings, if you can't connect via ```https```, or wish to use an alternate host:

```ruby
Transistor.setup do |config|
  config.host = 'api.transistor.fm'
  config.secure = false
end
```

### Making Requests

```ruby
client = Transistor::Client.new
client.get('/channels')
```

## Contributing

1. Fork it
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 new Pull Request

## License

© 2013 Original Machine, LLC. Released under the MIT License.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
transistor-client-0.0.2 Readme.md
transistor-client-0.0.1 Readme.md