philm / twilio Goto Github PK
View Code? Open in Web Editor NEWTwilio API client
Home Page: http://www.webficient.com
License: MIT License
Twilio API client
Home Page: http://www.webficient.com
License: MIT License
I get this when I tried to send my first SMS:
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
from /Users/dball/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:586:in connect' from /Users/dball/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:586:in
connect'
from /Users/dball/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:553:in do_start' from /Users/dball/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:542:in
start'
from /Users/dball/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:1035:in request_without_newrelic_trace' from /Users/dball/.rvm/gems/ree-1.8.7-2011.03@decisiv/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/instrumentation/net.rb:16:in
request'
from /Users/dball/.rvm/gems/ree-1.8.7-2011.03@decisiv/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/method_tracer.rb:193:in trace_execution_scoped' from /Users/dball/.rvm/gems/ree-1.8.7-2011.03@decisiv/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/instrumentation/net.rb:15:in
request'
from /Users/dball/.rvm/gems/ree-1.8.7-2011.03@decisiv/gems/httparty-0.7.7/lib/httparty/request.rb:69:in perform' from /Users/dball/.rvm/gems/ree-1.8.7-2011.03@decisiv/gems/httparty-0.7.7/lib/httparty.rb:390:in
perform_request'
from /Users/dball/.rvm/gems/ree-1.8.7-2011.03@decisiv/gems/httparty-0.7.7/lib/httparty.rb:358:in post' from /Users/dball/.rvm/gems/ree-1.8.7-2011.03@decisiv/gems/twilio-3.0.0/lib/twilio/sms.rb:10:in
message'
I presume this is because Twilio is using a self-signed cert or one with a hostname mismatch, but being new to httparty, I'm not sure the best way to solve this. Perhaps, if this is the expected state of affairs, it would be appropriate for the twilio gem to embed the cert it expects?
Mongoid2 monkey patches all objects with a get function which overwrites the Twillio::Call.get function making it return the SID as a string instead of a HTTParty response.
Don't think this is really your problem but it would be nice to have an alias for the method.
Currently, the gem doesn't work with rails 3.1 because of the builder dependency (rails 3.1 needs builder 3.0).
The the old base URL has been deprecated and has been updated to https://api.twilio.com/2010-04-01
(see: http://www.twilio.com/docs/api/2010-04-01/rest/ )
Link to article in google cache is down.
Hi,
It seems twilio 3.0.1 requires buidler ~> 2.1.2, but rails 3.1.0.rc4 requires builder ~> 3.0.0. Is it possible to update the dependencies ?
Best regards,
Julien
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.