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.