twurl -t -H ads-api-sandbox.twitter.com -X GET -d "campaign_ids=g3m7&start_time=2016-02-01T07:00:00Z&granularity=DAY" /0/stats/accounts/gq106g/campaigns | prettyjson opening connection to ads-api-sandbox.twitter.com:443... opened starting SSL for ads-api-sandbox.twitter.com:443... SSL established <- "GET /0/stats/accounts/gq106g/campaigns HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: OAuth gem v0.4.7\r\nContent-Type: application/x-www-form-urlencoded\r\nAuthorization: OAuth oauth_consumer_key=\"MKjyCpfGqem0kOnrFmnUxafUm\", oauth_nonce=\"67vt6wfEV0ki1WPHzFjqvrrCn1WtTHTLVwwvrjTZp4\", oauth_signature=\"4BcpX1%2FYZtiaAa3sBO1XMl3%2BTK0%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1456839124\", oauth_token=\"2893364686-GppDhhJPjThB6t0m6ruYEiaiLzQYAKyErmEl4u4\", oauth_version=\"1.0\"\r\nConnection: close\r\nHost: ads-api-sandbox.twitter.com\r\nContent-Length: 69\r\n\r\n" <- "campaign_ids=g3m7&start_time=2016-02-01T07%3A00%3A00Z&granularity=DAY" -> "HTTP/1.1 400 Bad Request\r\n" -> "connection: close\r\n" -> "content-length: 0\r\n" -> "date: Tue, 01 Mar 2016 13:32:06 GMT\r\n" -> "server: tsa_f\r\n" -> "x-connection-hash: 3aa3e9c2493e639112a3ec451274c31f\r\n" -> "\r\n" reading 0 bytes... -> "" read 0 bytes Conn close