Re: [Rails] Re: http requests

2017-06-06 Thread Hassan Schroeder
On Tue, Jun 6, 2017 at 1:20 PM, Joe Guerra wrote: > Yes, I'm going to email the author of the gem. Get his take on it. SMH. Apparently my attempt at sarcasm fell straight through... >> > But the gem is not very well documented. I can't get it to work. >> >> That's a

Re: [Rails] Re: http requests

2017-06-06 Thread Joe Guerra
Yes, I'm going to email the author of the gem. Get his take on it. It hasn't been updated for over 2 years. Maybe something has changed on the Canada post side. On Monday, June 5, 2017 at 4:17:20 PM UTC-4, Hassan Schroeder wrote: > > On Mon, Jun 5, 2017 at 12:08 PM, Joe Guerra

Re: [Rails] Re: http requests

2017-06-05 Thread Hassan Schroeder
On Mon, Jun 5, 2017 at 12:08 PM, Joe Guerra wrote: > Yes, it installed it. > > But the gem is not very well documented. I can't get it to work. That's a shame. If only there were somewhere you could post your failing code and get some other people to help... -- Hassan

Re: [Rails] Re: http requests

2017-06-05 Thread Joe Guerra
Yes, it installed it. But the gem is not very well documented. I can't get it to work. On Friday, June 2, 2017 at 5:07:10 PM UTC-4, Colin Law wrote: > > On 2 June 2017 at 18:23, Joe Guerra > wrote: > > hmm, the canada post gem requires httparty as a runtime

Re: [Rails] Re: http requests

2017-06-02 Thread Colin Law
On 2 June 2017 at 18:23, Joe Guerra wrote: > hmm, the canada post gem requires httparty as a runtime dependency. Does > it automatically get bundled with it, or do I need to bundle it myself? If it is properly defined then bundle install should install it. Colin > > >

[Rails] Re: http requests

2017-06-02 Thread Joe Guerra
hmm, the canada post gem requires httparty as a runtime dependency. Does it automatically get bundled with it, or do I need to bundle it myself? On Thursday, June 1, 2017 at 12:29:18 PM UTC-4, steve enzer wrote: > > httparty might do the job > > On Wednesday, May 31, 2017 at 10:27:42 AM

[Rails] Re: http requests

2017-06-02 Thread Joe Guerra
Hmm, doesn't seem to work with the example they give. I've used my api keys, and popped in some values. It's supposed to return a hash. I'm not sure if it's actually connecting? How would I check to see if the request was actually sent? and what the response is? Thanks, Joe On

[Rails] Re: http requests

2017-06-01 Thread Joe Guerra
Well, I got the canada post api keys. I've got to try it with one of following canada post gem... https://rubygems.org/search?utf8=%E2%9C%93=canada+post On Thursday, June 1, 2017 at 12:29:18 PM UTC-4, steve enzer wrote: > > httparty might do the job > > On Wednesday, May 31, 2017 at

[Rails] Re: http requests

2017-06-01 Thread steve enzer
httparty might do the job On Wednesday, May 31, 2017 at 10:27:42 AM UTC-7, Joe Guerra wrote: > > Hmm, which gem would allow you to perform http requests within Rails? I > would like to send a request to the canadapost website and pass it some > parameters and return a shipping total. > > I do