capsulecrm-b 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/examples.rb +7 -0
- data/lib/capsulecrm/opportunity.rb +4 -1
- data/lib/capsulecrm/version.rb +1 -1
- metadata +1 -1
data/examples.rb
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
# NOTE: CapsuleCRM::Person and CapsuleCRM::Organisation have virtually identically methods.
|
2
2
|
require 'capsulecrm'
|
3
3
|
|
4
|
+
CapsuleCRM.account_name = "futureworkshops"
|
5
|
+
CapsuleCRM.api_token = ENV['CAPSULE_CRM_API_KEY']
|
6
|
+
CapsuleCRM.initialize!
|
7
|
+
|
8
|
+
oppo = CapsuleCRM::Opportunity.find(:all).first
|
9
|
+
puts oppo.party.name
|
10
|
+
|
4
11
|
# find by id
|
5
12
|
person = CapsuleCRM::Person.find 123
|
6
13
|
|
data/lib/capsulecrm/version.rb
CHANGED