Hi,

I need to call API using curl in seed.rb

Before i have used API like

response = HTTParty.get("
https://pipeline.locallabs.com/api/v1/organizations?access_key=XXXXXX";)

i don't know how to call API using curl in ssed.rb

now my client assign one new domain and mentioned this was working for him.

curl -H'Authorization: KEY'
https://pipeline-api.locallabs.com/api/v1/organizations?min_updated_at='2015-11-13&limit=10
'

Any one know how to call API using curl in seed.rb please let me know.

Thanks!
Daya.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CADKeJyS0FNzTOuncq-Wcz32%3DLp-AZRwPo5Cnuoj%3DNgqXx9eq4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to