README.md in rd_insightly-0.2.0 vs README.md in rd_insightly-0.2.1
- old
+ new
@@ -23,10 +23,47 @@
$ gem install rd_insightly
## Usage
-TODO: Write usage instructions here
+Need create a authorization, you can use the method:
+
+ Rdinsightly.create_authorization API_KEY
+
+With authorization created you can start use the features:
+
+To create a lead(*last_name required):
+
+```ruby
+ HASH_ATTRIBUTES = {name: '', email: '', company: '', phone: '', job_title: '', website: ''}
+ RdInsightly::Lead.create last_name, HASH_ATTRIBUTES
+```
+
+To find a lead:
+
+```ruby
+ lead = RdInsightly::Lead.find ID
+```
+
+To update a lead:
+
+```ruby
+ lead = RdInsightly::Lead.find ID
+ lead.update HASH_ATTRIBUTES
+```
+
+To delete a lead:
+
+```ruby
+ lead = RdInsightly::Lead.find ID
+ lead.delete
+```
+
+To logout:
+
+```ruby
+ RdInsightly.logout
+```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.