Comments (6)
I was able to get it to work in a ruby script using the following as a starting point:
#!/usr/bin/ruby
require 'rubygems'
require 'active_support/core_ext/class/subclasses'
require 'closeio'
Closeio.configure("<API_KEY>")
lead = Closeio::Lead.find('<LEAD_ID>')
puts lead.name
I also used bundler with the following Gemfile:
source 'https://rubygems.org'
gem 'closeio'
gem 'activesupport'
Again, just a starting point that might help you.
from closeio.
Hi @hoopsho — right, I was able to do the same. I'm just pointing out that if it's a dependency it should be made explicit.
from closeio.
@hoopsho @danmelnick Good point.
Do either of you have a preference on removing the dependency on activesupport
or moving this inline like?
def self.descendants
ObjectSpace.each_object(Class).select { |klass| klass < self }
end
from closeio.
I'd prefer to remove the dependency, so I'd vote for pure Ruby.
from closeio.
I feel like I'm taking crazy pills...
I pushed this 2d30815, which should fix it, but I'm getting this error:
undefined method `descendants' for Closeio::Base:Class (NoMethodError)
What am I missing that's obvious?
from closeio.
Releasing a new version of the gem that makes this moot.
from closeio.
Related Issues (20)
- updating custom fields for a lead HOT 2
- list_opportunities endpoint adds query param to filter queries HOT 1
- Seems like responses with code 400 aren't actually throwing errors when creating an opportunity HOT 2
- "You are setting a key that conflicts with a built-in method Hashie::Mash#object_id defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method." HOT 3
- Add multiple values for the same field
- Lead is returning hash instead of object HOT 7
- Paginate option returns result with symbolized keys HOT 2
- Wrong url for sent emails report HOT 1
- get request return plain html HOT 3
- list_leads email query returning 0 results HOT 12
- List leads does not work properly HOT 1
- Update `email_account` resource to `connected_account` HOT 2
- Updating a contact's custom fields?
- Faraday warnings with gem closeio (~> 3.6) HOT 1
- Unable to List Contacts by attributes
- Advanced Filters API HOT 2
- Support Faraday 2.x HOT 3
- Faraday 2 upgrade is incompatible with Faraday 1.x HOT 7
- verifying webhook
- How to Pass Sorting Options?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from closeio.