Sha256: c752f22502e44028eee2edbd7c1bf00d47a65f134875c07c868ca6b673dcdddd

Contents?: true

Size: 1.47 KB

Versions: 3

Compression:

Stored size: 1.47 KB

Contents

# Rdstation::Ruby

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'rdstation-ruby-client'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install rdstation-ruby-client

## Usage

### Creating a Lead
    rdstation_client = RDStation::Client.new('rdstation_token', 'auth_token')
    rdstation_client.create_lead({:email => 'joe@foo.bar', :nome => 'Joe Foo', :empresa => 'A random Company', :cargo => 'Developer', identificador: 'nome_da_conversao'})

### Changing a Lead
    rdstation_client = RDStation::Client.new('rdstation_token', 'auth_token')
    rdstation_client.change_lead('joe@foo.bar', {:lifecycle_stage => 1, :opportunity => true})

### Change Lead Status
    rdstation_client = RDStation::Client.new('rdstation_token', 'auth_token')
    rdstation_client.change_lead_status(email: 'joe@foo.bar', status: 'won', value: 999)


## 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

## Reference

You can check out RDstation's integration (pt-BR) documentation here:

- [Pure HTML](https://gist.github.com/pedrobachiega/3298970);
- [Wordpress & Contact Form 7](https://gist.github.com/pedrobachiega/3277536);
- [PHP](https://gist.github.com/pedrobachiega/3248293);
- [HTML+Ajax with jQuery](https://gist.github.com/pedrobachiega/3248013);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rdstation-ruby-client-0.0.4 README.md
rdstation-ruby-client-0.0.3 README.md
rdstation-ruby-client-0.0.2 README.md