Thanks. If I can figure out to make my own http request to my canada post
account, I can possibly grab the shipping rate if I pass it weight, length,
height, and width.
On Tuesday, June 6, 2017 at 5:02:02 PM UTC-4, Jason FB wrote:
>
> Joe -
>
>
> This (gems having gone stale) is generally par
Joe -
This (gems having gone stale) is generally par for the course in the Ruby world.
This is a good resource that gives you some idea of how popular & active any
given gem might be:
https://www.ruby-toolbox.com
Choosing an old gem that is stale (hasn't been updated in a couple of years) is
Hassan is correctly encouraging you towards the higher-level abstractions, like
a Gem specifically written for this purpose.
If you really want to know how to make outgoing http requests, the answer is
the Net::HTTP Ruby library, which is documented here:
https://docs.ruby-lang.org/en/2.0.0/Net
On Wed, May 31, 2017 at 10:39 AM, Joe Guerra wrote:
> How about passing the parameters in the url? and opening up the canada post
> site with that?
You can certainly do that, if one of the gems doesn't meet your needs.
Have you read the Canada Post API docs?
--
Hassan Schroeder -
Ok, I'll try the gem.
How about passing the parameters in the url? and opening up the canada
post site with that?
Thanks,
Joe
On Wednesday, May 31, 2017 at 1:36:20 PM UTC-4, Hassan Schroeder wrote:
>
> On Wed, May 31, 2017 at 10:27 AM, Joe Guerra > wrote:
> > Hmm, which gem would allow you t
On Wed, May 31, 2017 at 10:27 AM, 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 believe there is a canadapost gem, but I'm not
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 believe there is a canadapost gem, but I'm not sure how upto date it
is.
I guess the other option is to
7 matches
Mail list logo