Last active
August 29, 2015 14:18
-
-
Save nax3t/09d4a11452f3825d526d to your computer and use it in GitHub Desktop.
Solution for Mike's API request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# My solution, using Typhoeus gem | |
p "-------Ian\'s Solution---------" | |
require 'typhoeus' | |
request = Typhoeus::Request.new("https://api.admoda.com/v1/advertiser/stats/campaigns.csv?date=2015-03-11", | |
method: :get, | |
headers: { 'Authorization' => 'Token api_token_here' }) | |
response = request.run | |
puts response.body |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment