Skip to content

kmpzr/rdstation-ruby-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 => '[email protected]', :nome => 'Joe Foo', :empresa => 'A random Company', :cargo => 'Developer'})

Changing a Lead

rdstation_client = RDStation::Client.new('rdstation_token', 'auth_token')
rdstation_client.change_lead('[email protected]', {:lifecycle_stage => 1, :opportunity => true})

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:

About

Ruby API wrapper for RD Station

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%