Skip to content

Instantly share code, notes, and snippets.

@richardking
Created April 9, 2014 19:05
Show Gist options
  • Select an option

  • Save richardking/10303817 to your computer and use it in GitHub Desktop.

Select an option

Save richardking/10303817 to your computer and use it in GitHub Desktop.
➜ ~ curl http://ec2-54-237-184-72.compute-1.amazonaws.com/api/v1/push_notifications\?tags\=bangladesh-cricket,new-york-yankees,cold-hard-facts\&last_request\=1395793685\&locale\=en_US\&tz\=-25200 --verbose
* Adding handle: conn: 0x7ffba1804000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7ffba1804000) send_pipe: 1, recv_pipe: 0
* About to connect() to ec2-54-237-184-72.compute-1.amazonaws.com port 80 (#0)
* Trying 54.237.184.72...
* Connected to ec2-54-237-184-72.compute-1.amazonaws.com (54.237.184.72) port 80 (#0)
> GET /api/v1/push_notifications?tags=bangladesh-cricket,new-york-yankees,cold-hard-facts&last_request=1395793685&locale=en_US&tz=-25200 HTTP/1.1
> User-Agent: curl/7.30.0
> Host: ec2-54-237-184-72.compute-1.amazonaws.com
> Accept: */*
>
< HTTP/1.1 200 OK
* Server ngx_openresty/1.2.7.6 is not blacklisted
< Server: ngx_openresty/1.2.7.6
< Date: Wed, 09 Apr 2014 17:50:28 GMT
< Content-Type: application/json; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Status: 200 OK
< X-Cache-Key: api:cache:controller:api/v1/push_notifications:action:index:last_request:1395793685:tags:bangladesh-cricket,cold-hard-facts,new-york-yankees:format:json
< Cache-Control: max-age=30, public
< ETag: "af8380482e3e25ab3522390b0bae2573"
< X-Request-Id: 6e96d7115e128c71dcb65648792ae269
< X-Runtime: 0.024551
<
[{"alert_id":"FXGIENBQ","article_id":2023058,"created_at":"2014-04-09T12:31:54-04:00","id":122049,"message":"MLB Renaming Annual Honor for Top Reliever in Each League After Mariano Rivera and Trevor Hoffman","tag_id":84,"url":""},{"alert_id":"DWRKLWXW","article_id":null,"created_at":"2014-04-08T16:37:12-04:00","id":121867,"message":"Orioles Beat Yankees 14-5; 8 Players Drive in Runs for BAL, Ivan Nova 7 ER over 3.2 IP","tag_id":84,"url":""},{"alert_id":"PCKPFUDJ","article_id":2021446,"created_at":"2014-04-08T10:28:49-04:00","id":121793,"message":"Yankees: Francisco Cervelli Gets 1st Career Start at 1B Today vs. Orioles -- Lineup in Team Stream","tag_id":84,"url":""},{"alert_id":"LSGILELR","article_id":2020855,"created_at":"2014-04-07T17:31:51-04:00","id":121699,"message":"MLB: Yankees Trade INF Eduardo Nunez (.267 MLB Avg.) to Twins for LHP Miguel Sulbaran (3.15 Career Minors ERA)","tag_id":84,"url":""},{"alert_id":"WXQGYOLG","article_id":2020791,"created_at":"2014-04-07T16:34:14-04:00","id":121681,"message":"MLB: Yankees Place Closer David Robertson on DL with Pulled Groin; Shawn Kelley Earns 1st Career Save for NYY Today","tag_id":84,"url":""},{"alert_id":"KBKKNCQK","article_id":2019593,"created_at":"2014-04-07T11:04:35-04:00","id":121603,"message":"B/R Yankees: Stock Up, Stock Down for New York's Top 10 Prospects After Opening Week","tag_id":84,"url":""},{"alert_id":"FFFWTLAH","article_id":2020121,"created_at":"2014-04-07T10:12:20-04:00","id":121599,"message":"Yankees: Derek Jeter Batting 2nd, Playing SS in Final Home Opener -- Lineup vs. Orioles in Team Stream","tag_id":84,"url":""},{"alert_id":"KVUENKBP","article_id":null,"created_at":"2014-04-06T16:12:42-04:00","id":121488,"message":"Yankees Beat Blue Jays 6-4; Brett Gardner Knocks in 2-Run HR, Drew Hutchison Allows 6 ERs in 3.1 IP","tag_id":84,"url":""},{"alert_id":"DOCJRDBP","article_id":2019252,"created_at":"2014-04-06T11:01:37-04:00","id":121427,"message":"Yankees: Jacoby Ellsbury Batting 3rd Today vs. Blue Jays; Ichiro Suzuki Starting in RF -- Lineup in Team Stream","tag_id":84,"url":""},{"alert_id":"SXJUXSSK","article_id":2018108,"created_at":"2014-04-05T11:00:14-04:00","id":121179,"message":"Yankees: Mark Teixeira (Hamstring) Out Today vs. TOR; Kelly Johnson at 1B, Derek Jeter Returns -- Lineup in Team Stream","tag_id":84,"url":""},{"alert_id":"HCCWRPQC","article_id":2018108,"created_at":"2014-04-04T23:53:05-04:00","id":121125,"message":"Yankees: Mark Teixeira Says He's 'Not Super Optimistic' About Hamstring Injury; Will Undergo MRI on Monday","tag_id":84,"url":""},{"alert_id":"IXCTJTIT","article_id":2018103,"created_at":"2014-04-04T20:58:46-04:00","id":121068,"message":"Yankees Announce Mark Teixeira Left Game Tonight vs. Blue Jays with Strained Right Hamstring","tag_id":84,"url":""},{"alert_id":"FVARYKSW","article_id":2018093,"created_at":"2014-04-04T20:47:26-04:00","id":121065,"message":"MLB Video: Yankees' Masahiro Tanaka Gives Up Lead-off HR to Blue Jays' Melky Cabrera in Debut Tonight","tag_id":84,"url":""},{"alert_id":"JBBTRXRK","article_id":2018082,"created_at":"2014-04-04T20:28:15-04:00","id":121060,"message":"Yankees: Mark Teixeira Leaves Game During 2nd Inning vs. Blue Jays Due to Apparent Ankle Injury","tag_id":84,"url":""},{"alert_id":"JEKSUGLD","article_id":null,"created_at":"2014-04-03T23:32:17-04:00","id":120882,"message":"Yankees Beat Astros 4-2; Derek Jeter 1-3 with an RBI, Brett Oberholtzer Allows 3 ER over 5.2 IP, Dexter Fowler 2-4","tag_id":84,"url":""},{"alert_id":"MROFSGSD","article_id":2016606,"created_at":"2014-04-03T17:26:23-04:00","id":120806,"message":"Yankees: Jacoby Ellsbury, Brian McCann and Kelly Johnson All Sitting Tonight vs. Astros -- Starters in Team Stream","tag_id":84,"url":""},{"alert_id":"XWMFMKDO","article_id":null,"created_at":"2014-04-02T23:35:17-04:00","id":120704,"message":"Astros Beat Yankees 3-1; Robbie Grossman 1-3 with 1 RBI, Hiroki Kuroda 2 ER in 6.0 IP, Brian Roberts Goes 3-4","tag_id":84,"url":""},{"alert_id":"DKWSYGDO","article_id":null,"created_at":"2014-04-01T22:08:47-04:00","id":120444,"message":"Astros* Connection #0 to host ec2-54-237-184-72.compute-1.amazonaws.com left intact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment