Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* mock getItems() test

  • Loading branch information...
commit cd8508ba461972de9c43aae2c80e8cd3f526ccb6 1 parent 21a5040
@till till authored
View
10 tests/Services/NYTimes/NewswireTest.php
@@ -181,7 +181,15 @@ public function testGetSections()
*/
public function testGetItems()
{
- $response = $this->nw->getItems();
+ $responseObject = $this->setUpResponseObject(
+ 'newswire',
+ 'v3',
+ 'get-items.php'
+ );
+
+ $nwMock = $this->getApiMocked('newswire', $responseObject);
+
+ $response = $nwMock->getItems();
$this->assertInternalType('array', $response);
}
View
6 tests/fixtures/newswire/v3/get-items.php
@@ -0,0 +1,6 @@
+<?php
+return array(
+ 'statusLine' => 'HTTP/1.1 200 OK',
+ 'body' => 'a:4:{s:6:"status";s:2:"OK";s:9:"copyright";s:68:"Copyright (c) 2011 The New York Times Company. All Rights Reserved.";s:11:"num_results";i:132559;s:7:"results";a:20:{i:0;a:19:{s:7:"section";s:6:"Sports";s:5:"title";s:48:"The Boss on Stage, but ‘Saddie’ Out in Right";s:8:"abstract";s:152:"Springsteen wrote many of his songs about his experiences in and around his hometown, Freehold, N.J., including his days playing Little League baseball.";s:3:"url";s:100:"http://www.nytimes.com/2011/07/10/sports/baseball/bruce-springsteens-inspiration-for-glory-days.html";s:6:"byline";s:14:"By KEVIN COYNE";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T15:17:04-04:00";s:12:"created_date";s:25:"2011-07-09T15:17:04-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:0:"";s:11:"subheadline";s:0:"";s:9:"des_facet";a:2:{i:0;s:10:"Friendship";i:1;s:8:"Baseball";}s:9:"org_facet";a:1:{i:0;s:35:"Little League Baseball and Softball";}s:9:"per_facet";a:1:{i:0;s:18:"Springsteen, Bruce";}s:9:"geo_facet";a:1:{i:0;s:10:"New Jersey";}s:12:"related_urls";s:0:"";s:10:"multimedia";s:0:"";}i:1;a:19:{s:7:"section";s:6:"Sports";s:5:"title";s:45:"Before Bruce, Clemons Was a Big Man on Campus";s:8:"abstract";s:143:"Clarence Clemons, who died last month at age 69, had a football career of note before his days playing saxophone in Bruce Springsteen’s band.";s:3:"url";s:105:"http://www.nytimes.com/2011/07/10/sports/football/before-springsteen-clemons-was-a-big-man-on-campus.html";s:6:"byline";s:20:"By WILLIAM C. RHODEN";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T15:09:14-04:00";s:12:"created_date";s:25:"2011-07-09T15:01:01-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:19:"Sports of The Times";s:11:"subheadline";s:0:"";s:9:"des_facet";a:1:{i:0;s:8:"Football";}s:9:"org_facet";a:1:{i:0;s:13:"E Street Band";}s:9:"per_facet";a:2:{i:0;s:17:"Clemons, Clarence";i:1;s:15:"Boozer, Emerson";}s:9:"geo_facet";s:0:"";s:12:"related_urls";a:1:{i:0;a:2:{s:19:"suggested_link_text";s:51:"The Big Man, Much More Than Springsteen’s Sideman";s:3:"url";s:102:"http://www.nytimes.com/2011/06/20/arts/music/clarence-clemons-much-more-than-springsteens-sideman.html";}}s:10:"multimedia";a:1:{i:0;a:8:{s:3:"url";s:85:"http://graphics8.nytimes.com/images/2011/07/10/sports/rhoden/rhoden-thumbStandard.jpg";s:6:"format";s:18:"Standard Thumbnail";s:6:"height";i:75;s:5:"width";i:75;s:4:"type";s:5:"image";s:7:"subtype";s:5:"photo";s:7:"caption";s:88:"Clarence Clemons, right, opened holes for running back Emerson Boozer at Maryland State.";s:9:"copyright";s:53:"University of Maryland Eastern Shore in Princess Anne";}}}i:2;a:19:{s:7:"section";s:18:"Crosswords & Games";s:5:"title";s:58:"Teenager Cements His Status as the Best in the Netherlands";s:8:"abstract";s:116:"Anish Giri, 17, was the runaway winner of the Dutch national championship, the second time he has claimed the title.";s:3:"url";s:105:"http://www.nytimes.com/2011/07/10/crosswords/chess/anish-giri-cements-status-as-the-netherlands-best.html";s:6:"byline";s:21:"By DYLAN LOEB McCLAIN";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T14:48:43-04:00";s:12:"created_date";s:25:"2011-07-09T14:48:43-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:5:"Chess";s:11:"subheadline";s:0:"";s:9:"des_facet";a:1:{i:0;s:5:"Chess";}s:9:"org_facet";s:0:"";s:9:"per_facet";s:0:"";s:9:"geo_facet";s:0:"";s:12:"related_urls";s:0:"";s:10:"multimedia";s:0:"";}i:3;a:19:{s:7:"section";s:6:"Sports";s:5:"title";s:45:"With Low Scores, Tseng Hopes to Raise Profile";s:8:"abstract";s:105:"Yani Tseng, a young star on the L.P.G.A. Tour, is trying to increase her popularity in the United States.";s:3:"url";s:107:"http://www.nytimes.com/2011/07/10/sports/golf/us-womens-open-tseng-hopes-low-scores-help-raise-profile.html";s:6:"byline";s:15:"By KAREN CROUSE";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T15:01:50-04:00";s:12:"created_date";s:25:"2011-07-09T14:43:45-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:0:"";s:11:"subheadline";s:0:"";s:9:"des_facet";a:2:{i:0;s:33:"United States Women\'s Open (Golf)";i:1;s:4:"Golf";}s:9:"org_facet";a:1:{i:0;s:29:"Ladies Professional Golf Assn";}s:9:"per_facet";a:1:{i:0;s:11:"Tseng, Yani";}s:9:"geo_facet";s:0:"";s:12:"related_urls";s:0:"";s:10:"multimedia";a:1:{i:0;a:8:{s:3:"url";s:83:"http://graphics8.nytimes.com/images/2011/07/10/sports/YGOLF/YGOLF-thumbStandard.jpg";s:6:"format";s:18:"Standard Thumbnail";s:6:"height";i:75;s:5:"width";i:75;s:4:"type";s:5:"image";s:7:"subtype";s:5:"photo";s:7:"caption";s:127:"Yani Tseng would become the youngest golfer, male or female, to complete a career Grand Slam if she wins the U.S. Women\'s Open.";s:9:"copyright";s:20:"Rick Wilking/Reuters";}}}i:4;a:19:{s:7:"section";s:12:"Business Day";s:5:"title";s:64:"China’s Struggle With Inflation Continues as Price Index Rises";s:8:"abstract";s:187:"China said Saturday that the consumer price index rose by 6.4 percent in June, the highest rate in three years, suggesting that Beijing may have a difficult time reining in rising prices.";s:3:"url";s:104:"http://www.nytimes.com/2011/07/10/business/global/chinese-inflation-jumps-again-as-pork-prices-soar.html";s:6:"byline";s:16:"By DAVID BARBOZA";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T14:33:15-04:00";s:12:"created_date";s:25:"2011-07-09T14:33:15-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:0:"";s:11:"subheadline";s:0:"";s:9:"des_facet";a:3:{i:0;s:30:"Prices (Fares, Fees and Rates)";i:1;s:21:"Inflation (Economics)";i:2;s:30:"Economic Conditions and Trends";}s:9:"org_facet";s:0:"";s:9:"per_facet";s:0:"";s:9:"geo_facet";a:1:{i:0;s:5:"China";}s:12:"related_urls";s:0:"";s:10:"multimedia";s:0:"";}i:5;a:19:{s:7:"section";s:6:"Sports";s:5:"title";s:38:"Jeter Reaches 3,000 Hits With Home Run";s:8:"abstract";s:98:"Derek Jeter became the 28th player in baseball history, and the first Yankee, to reach 3,000 hits.";s:3:"url";s:92:"http://www.nytimes.com/2011/07/10/sports/baseball/jeter-reaches-3000-hits-with-home-run.html";s:6:"byline";s:15:"By TYLER KEPNER";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T15:17:04-04:00";s:12:"created_date";s:25:"2011-07-09T14:06:24-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:0:"";s:11:"subheadline";s:0:"";s:9:"des_facet";a:1:{i:0;s:8:"Baseball";}s:9:"org_facet";a:1:{i:0;s:16:"New York Yankees";}s:9:"per_facet";a:1:{i:0;s:12:"Jeter, Derek";}s:9:"geo_facet";s:0:"";s:12:"related_urls";s:0:"";s:10:"multimedia";a:2:{i:0;a:8:{s:3:"url";s:97:"http://graphics8.nytimes.com/images/2011/07/10/sports/10jeter-span/10jeter-span-thumbStandard.jpg";s:6:"format";s:18:"Standard Thumbnail";s:6:"height";i:75;s:5:"width";i:75;s:4:"type";s:5:"image";s:7:"subtype";s:5:"photo";s:7:"caption";s:128:"With his teammates cheering, Derek Jeter runs the bases after hitting his 3,000th hit -- a solo home run -- in the third inning.";s:9:"copyright";s:34:"Suzy Allman for The New York Times";}i:1;a:8:{s:3:"url";s:89:"http://graphics8.nytimes.com/images/2011/07/10/sports/10jeter5/10jeter5-thumbStandard.jpg";s:6:"format";s:18:"Standard Thumbnail";s:6:"height";i:75;s:5:"width";i:75;s:4:"type";s:5:"image";s:7:"subtype";s:5:"photo";s:7:"caption";s:71:"Derek Jeter got his 2,999th career hit in his first at-bat on Saturday.";s:9:"copyright";s:35:"Barton Silverman/The New York Times";}}}i:6;a:19:{s:7:"section";s:12:"Business Day";s:5:"title";s:24:"Executive Pay, Revisited";s:8:"abstract";s:114:"Readers respond to “We Knew They Got Raises. But This?” (July 3), an updated report on executive pay for 2010.";s:3:"url";s:79:"http://www.nytimes.com/2011/07/10/business/letters-executive-pay-revisited.html";s:6:"byline";s:0:"";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T13:44:54-04:00";s:12:"created_date";s:25:"2011-07-09T13:44:54-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:6:"Letter";s:6:"kicker";s:7:"Letters";s:11:"subheadline";s:0:"";s:9:"des_facet";a:2:{i:0;s:22:"Executive Compensation";i:1;s:7:"Bonuses";}s:9:"org_facet";s:0:"";s:9:"per_facet";s:0:"";s:9:"geo_facet";s:0:"";s:12:"related_urls";s:0:"";s:10:"multimedia";s:0:"";}i:7;a:19:{s:7:"section";s:6:"Sports";s:5:"title";s:52:"In Japan, High Schoolers Use Baseball to Help Forget";s:8:"abstract";s:159:"Baseball has been a way for players and coaches from damaged and undamaged schools to resume a predictable if arduous routine they followed before the Tsunami.";s:3:"url";s:105:"http://www.nytimes.com/2011/07/10/sports/in-japan-high-schoolers-use-baseball-to-help-forget-tsunami.html";s:6:"byline";s:13:"By KEN BELSON";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T14:58:55-04:00";s:12:"created_date";s:25:"2011-07-09T13:38:36-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:0:"";s:11:"subheadline";s:0:"";s:9:"des_facet";a:3:{i:0;s:35:"Japan Earthquake and Tsunami (2011)";i:1;s:8:"Baseball";i:2;s:25:"Interscholastic Athletics";}s:9:"org_facet";s:0:"";s:9:"per_facet";s:0:"";s:9:"geo_facet";a:1:{i:0;s:5:"Japan";}s:12:"related_urls";s:0:"";s:10:"multimedia";a:1:{i:0;a:8:{s:3:"url";s:89:"http://graphics8.nytimes.com/images/2011/07/10/sports/ofunato1/ofunato1-thumbStandard.jpg";s:6:"format";s:18:"Standard Thumbnail";s:6:"height";i:75;s:5:"width";i:75;s:4:"type";s:5:"image";s:7:"subtype";s:5:"photo";s:7:"caption";s:139:"Masato Owada, the Takata High captain, at Ofunato Higashi High School\'s Kayanaka campus, where Takata\'s students study but cannot practice.";s:9:"copyright";s:37:"Kosuke Okahara for The New York Times";}}}i:8;a:19:{s:7:"section";s:10:"Job Market";s:5:"title";s:22:"Energy at an Early Age";s:8:"abstract";s:124:"Malcolm Unsworth, C.E.O. of Itron, an energy meter maker, wants his company t to help shape the future course of energy use.";s:3:"url";s:50:"http://www.nytimes.com/2011/07/10/jobs/10boss.html";s:6:"byline";s:19:"By MALCOLM UNSWORTH";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T13:37:24-04:00";s:12:"created_date";s:25:"2011-07-09T13:37:24-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:8:"The Boss";s:11:"subheadline";s:0:"";s:9:"des_facet";a:1:{i:0;s:25:"Executives and Management";}s:9:"org_facet";a:1:{i:0;s:30:"Itron Incorporated|ITRI|NASDAQ";}s:9:"per_facet";a:1:{i:0;s:17:"Unsworth, Malcolm";}s:9:"geo_facet";s:0:"";s:12:"related_urls";s:0:"";s:10:"multimedia";s:0:"";}i:9;a:19:{s:7:"section";s:10:"Job Market";s:5:"title";s:41:"Don’t Fret. Just Ask for What You Need.";s:8:"abstract";s:148:"Women should ask directly for what they want in the workplace — and build their case around what matters most to their employers: the bottom line.";s:3:"url";s:49:"http://www.nytimes.com/2011/07/10/jobs/10pre.html";s:6:"byline";s:14:"By PEGGY KLAUS";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T13:33:12-04:00";s:12:"created_date";s:25:"2011-07-09T13:33:12-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:14:"Preoccupations";s:11:"subheadline";s:0:"";s:9:"des_facet";a:4:{i:0;s:15:"Women and Girls";i:1;s:14:"Labor and Jobs";i:2;s:25:"Executives and Management";i:3;s:21:"Workplace Environment";}s:9:"org_facet";s:0:"";s:9:"per_facet";s:0:"";s:9:"geo_facet";s:0:"";s:12:"related_urls";s:0:"";s:10:"multimedia";s:0:"";}i:10;a:19:{s:7:"section";s:5:"World";s:5:"title";s:63:"Virtual Bridge Allows Strangers in Mideast to Seem Less Strange";s:8:"abstract";s:162:"A Facebook page created by a former Israeli diplomat allows Israelis to chat with Palestinians and other Arabs about peace prospects and the topics of daily life.";s:3:"url";s:65:"http://www.nytimes.com/2011/07/10/world/middleeast/10mideast.html";s:6:"byline";s:16:"By ETHAN BRONNER";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T15:01:52-04:00";s:12:"created_date";s:25:"2011-07-09T13:33:08-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:0:"";s:11:"subheadline";s:0:"";s:9:"des_facet";a:2:{i:0;s:23:"Politics and Government";i:1;s:12:"Palestinians";}s:9:"org_facet";a:1:{i:0;s:12:"Facebook.com";}s:9:"per_facet";s:0:"";s:9:"geo_facet";a:2:{i:0;s:6:"Israel";i:1;s:9:"West Bank";}s:12:"related_urls";s:0:"";s:10:"multimedia";a:1:{i:0;a:8:{s:3:"url";s:86:"http://graphics8.nytimes.com/images/2011/07/10/world/MIDEAST/MIDEAST-thumbStandard.jpg";s:6:"format";s:18:"Standard Thumbnail";s:6:"height";i:75;s:5:"width";i:75;s:4:"type";s:5:"image";s:7:"subtype";s:5:"photo";s:7:"caption";s:86:"Hamze Awawde, left, a Palestinian student, uses a Facebook page to chat with Israelis.";s:9:"copyright";s:39:"Rina Castelnuovo for The New York Times";}}}i:11;a:19:{s:7:"section";s:10:"Your Money";s:5:"title";s:37:"Picking the Lock of Google’s Search";s:8:"abstract";s:118:"Lead generation companies are crushing some local merchants in search results, presenting a real challenge for Google.";s:3:"url";s:101:"http://www.nytimes.com/2011/07/10/your-money/lead-gen-sites-pose-challenge-to-google-the-haggler.html";s:6:"byline";s:14:"By DAVID SEGAL";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T13:31:13-04:00";s:12:"created_date";s:25:"2011-07-09T13:31:10-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:11:"The Haggler";s:11:"subheadline";s:0:"";s:9:"des_facet";a:4:{i:0;s:14:"Search Engines";i:1;s:26:"Computers and the Internet";i:2;s:18:"Customer Relations";i:3;s:14:"Locks and Keys";}s:9:"org_facet";a:1:{i:0;s:22:"Google Inc|GOOG|NASDAQ";}s:9:"per_facet";s:0:"";s:9:"geo_facet";s:0:"";s:12:"related_urls";s:0:"";s:10:"multimedia";s:0:"";}i:12;a:19:{s:7:"section";s:12:"Business Day";s:5:"title";s:40:"Choices for Greece, All of Them Daunting";s:8:"abstract";s:128:"Solving the Greek debt crisis will require extremely tough decisions and compromises — both for Greece and the European Union.";s:3:"url";s:117:"http://www.nytimes.com/2011/07/10/business/economy/greeces-choices-in-debt-crisis-are-all-daunting-economic-view.html";s:6:"byline";s:14:"By TYLER COWEN";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T13:39:00-04:00";s:12:"created_date";s:25:"2011-07-09T13:27:05-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:13:"Economic View";s:11:"subheadline";s:0:"";s:9:"des_facet";a:4:{i:0;s:15:"Euro (Currency)";i:1;s:39:"European Sovereign Debt Crisis (2010- )";i:2;s:30:"Economic Conditions and Trends";i:3;s:15:"Credit and Debt";}s:9:"org_facet";a:2:{i:0;s:14:"European Union";i:1;s:21:"European Central Bank";}s:9:"per_facet";s:0:"";s:9:"geo_facet";a:1:{i:0;s:6:"Greece";}s:12:"related_urls";s:0:"";s:10:"multimedia";s:0:"";}i:13;a:19:{s:7:"section";s:10:"Technology";s:5:"title";s:43:"The Therapist Will See You Now, via the Web";s:8:"abstract";s:150:"Psychiatry through a video connection was pioneered several decades ago. Today, start-up companies are trying to popularize therapy over the Internet.";s:3:"url";s:93:"http://www.nytimes.com/2011/07/10/technology/bringing-therapists-to-patients-via-the-web.html";s:6:"byline";s:17:"By RANDALL STROSS";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T13:24:50-04:00";s:12:"created_date";s:25:"2011-07-09T13:24:50-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:14:"Digital Domain";s:11:"subheadline";s:0:"";s:9:"des_facet";a:6:{i:0;s:28:"Psychology and Psychologists";i:1;s:28:"Psychiatry and Psychiatrists";i:2;s:19:"Depression (Mental)";i:3;s:33:"Videophones and Videoconferencing";i:4;s:26:"Computers and the Internet";i:5;s:19:"Medicine and Health";}s:9:"org_facet";s:0:"";s:9:"per_facet";s:0:"";s:9:"geo_facet";s:0:"";s:12:"related_urls";s:0:"";s:10:"multimedia";a:1:{i:0;a:8:{s:3:"url";s:95:"http://graphics8.nytimes.com/images/2011/07/10/business/10sbn-DIGI/10sbn-DIGI-thumbStandard.jpg";s:6:"format";s:18:"Standard Thumbnail";s:6:"height";i:75;s:5:"width";i:75;s:4:"type";s:5:"image";s:7:"subtype";s:5:"photo";s:7:"caption";s:0:"";s:9:"copyright";s:10:"Doug Boehm";}}}i:14;a:19:{s:7:"section";s:12:"Business Day";s:5:"title";s:30:"Science to Art, and Vice Versa";s:8:"abstract";s:148:"A sculptor and a lighting artist have very different techniques but the same goal: to promote understanding by finding new ways of seeing the world.";s:3:"url";s:87:"http://www.nytimes.com/2011/07/10/business/science-to-art-and-vice-versa-prototype.html";s:6:"byline";s:14:"By AMY WALLACE";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T13:21:03-04:00";s:12:"created_date";s:25:"2011-07-09T13:21:03-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:9:"Prototype";s:11:"subheadline";s:0:"";s:9:"des_facet";a:4:{i:0;s:31:"New Models, Design and Products";i:1;s:22:"Science and Technology";i:2;s:3:"Art";i:3;s:37:"Three-Dimensional Devices and Effects";}s:9:"org_facet";a:2:{i:0;s:23:"Northwestern University";i:1;s:37:"Center for Advanced Molecular Imaging";}s:9:"per_facet";s:0:"";s:9:"geo_facet";s:0:"";s:12:"related_urls";s:0:"";s:10:"multimedia";a:1:{i:0;a:8:{s:3:"url";s:99:"http://graphics8.nytimes.com/images/2011/07/10/business/10sbn-PROTO1/10sbn-PROTO1-thumbStandard.jpg";s:6:"format";s:18:"Standard Thumbnail";s:6:"height";i:75;s:5:"width";i:75;s:4:"type";s:5:"image";s:7:"subtype";s:5:"photo";s:7:"caption";s:77:"Nathalie Miebach wearing her basket sculpture, which plots astronomical data.";s:9:"copyright";s:0:"";}}}i:15;a:19:{s:7:"section";s:6:"Sports";s:5:"title";s:40:"McIlroy’s Bandwagon Needs to Slow Down";s:8:"abstract";s:120:"Before proclaiming Rory McIlroy the heir to Jack Nicklaus’s 18 major championships, keep in mind that he has 17 to go.";s:3:"url";s:88:"http://www.nytimes.com/2011/07/10/sports/golf/mcilroys-bandwagon-needs-to-slow-down.html";s:6:"byline";s:16:"By DAVE ANDERSON";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T14:54:41-04:00";s:12:"created_date";s:25:"2011-07-09T13:02:38-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:19:"Sports of The Times";s:11:"subheadline";s:0:"";s:9:"des_facet";a:1:{i:0;s:4:"Golf";}s:9:"org_facet";a:1:{i:0;s:25:"Professional Golfers Assn";}s:9:"per_facet";a:2:{i:0;s:13:"McIlroy, Rory";i:1;s:14:"Nicklaus, Jack";}s:9:"geo_facet";s:0:"";s:12:"related_urls";s:0:"";s:10:"multimedia";a:1:{i:0;a:8:{s:3:"url";s:93:"http://graphics8.nytimes.com/images/2011/07/10/sports/YANDERSON1/YANDERSON1-thumbStandard.jpg";s:6:"format";s:18:"Standard Thumbnail";s:6:"height";i:75;s:5:"width";i:75;s:4:"type";s:5:"image";s:7:"subtype";s:5:"photo";s:7:"caption";s:98:"Rory McIlroy, left, has won one major, and needs 17 more to equal the record set by Jack Nicklaus.";s:9:"copyright";s:29:"Doug Mills/The New York Times";}}}i:16;a:19:{s:7:"section";s:12:"Business Day";s:5:"title";s:39:"Cultivating His Plants, and His Company";s:8:"abstract";s:159:"Jack Dangermond, the founder of Esri, which develops geographic information systems, talks about management lessons he learned at his family’s plant nursery.";s:3:"url";s:97:"http://www.nytimes.com/2011/07/10/business/esris-chief-on-tending-his-plants-and-his-company.html";s:6:"byline";s:14:"By ADAM BRYANT";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T12:57:30-04:00";s:12:"created_date";s:25:"2011-07-09T12:57:30-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:8:"Question";s:6:"kicker";s:30:"Corner Office: Jack Dangermond";s:11:"subheadline";s:0:"";s:9:"des_facet";a:3:{i:0;s:25:"Executives and Management";i:1;s:15:"Family Business";i:2;s:20:"Hiring and Promotion";}s:9:"org_facet";a:1:{i:0;s:4:"Esri";}s:9:"per_facet";a:1:{i:0;s:16:"Dangermond, Jack";}s:9:"geo_facet";s:0:"";s:12:"related_urls";s:0:"";s:10:"multimedia";a:1:{i:0;a:8:{s:3:"url";s:99:"http://graphics8.nytimes.com/images/2011/07/10/business/10sbn-CORNER/10sbn-CORNER-thumbStandard.jpg";s:6:"format";s:18:"Standard Thumbnail";s:6:"height";i:75;s:5:"width";i:75;s:4:"type";s:5:"image";s:7:"subtype";s:5:"photo";s:7:"caption";s:239:"Jack Dangermond is founder and president of Esri, which develops geographic information systems and is based in Redlands, Calif. In your garden or in your company, he says, “you inherently have responsibilities to take care of things.”";s:9:"copyright";s:32:"Ángel Franco/The New York Times";}}}i:17;a:19:{s:7:"section";s:12:"Business Day";s:5:"title";s:40:"Somehow, the Unemployed Became Invisible";s:8:"abstract";s:180:"In Greece and Spain, the unemployed demand politicians’ attention. In some past downturns, Americans did the same. But this time, the nation’s jobless are mostly just enduring.";s:3:"url";s:87:"http://www.nytimes.com/2011/07/10/business/the-unemployed-somehow-became-invisible.html";s:6:"byline";s:20:"By CATHERINE RAMPELL";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T13:39:41-04:00";s:12:"created_date";s:25:"2011-07-09T12:55:26-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:0:"";s:11:"subheadline";s:0:"";s:9:"des_facet";a:5:{i:0;s:22:"Unemployment Insurance";i:1;s:25:"Great Depression (1930\'s)";i:2;s:21:"United States Economy";i:3;s:12:"Unemployment";i:4;s:14:"Labor and Jobs";}s:9:"org_facet";s:0:"";s:9:"per_facet";s:0:"";s:9:"geo_facet";s:0:"";s:12:"related_urls";a:1:{i:0;a:2:{s:19:"suggested_link_text";s:52:"Job Growth Falters Badly, Clouding Hope for Recovery";s:3:"url";s:107:"http://www.nytimes.com/2011/07/09/business/economy/job-growth-falters-badly-clouding-hope-for-recovery.html";}}s:10:"multimedia";a:1:{i:0;a:8:{s:3:"url";s:113:"http://graphics8.nytimes.com/images/2011/07/10/business/10jobs-illustration/10jobs-illustration-thumbStandard.jpg";s:6:"format";s:18:"Standard Thumbnail";s:6:"height";i:75;s:5:"width";i:75;s:4:"type";s:5:"image";s:7:"subtype";s:5:"photo";s:7:"caption";s:0:"";s:9:"copyright";s:28:"Minh Uong/The New York Times";}}}i:18;a:19:{s:7:"section";s:12:"Business Day";s:5:"title";s:39:"Investment Income? Use Your Imagination";s:8:"abstract";s:174:"The pickings are slim for investors seeking income in the usual places. But some fatter alternatives are available, by taking a modest amount of risk and thinking creatively.";s:3:"url";s:107:"http://www.nytimes.com/2011/07/10/business/mutfund/income-generating-investments-in-unexpected-corners.html";s:6:"byline";s:19:"By CONRAD DE AENLLE";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T14:47:33-04:00";s:12:"created_date";s:25:"2011-07-09T12:47:38-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:0:"";s:11:"subheadline";s:0:"";s:9:"des_facet";a:3:{i:0;s:10:"Junk Bonds";i:1;s:16:"Stocks and Bonds";i:2;s:14:"Interest Rates";}s:9:"org_facet";s:0:"";s:9:"per_facet";s:0:"";s:9:"geo_facet";s:0:"";s:12:"related_urls";s:0:"";s:10:"multimedia";s:0:"";}i:19;a:19:{s:7:"section";s:12:"Business Day";s:5:"title";s:37:"Ways to Shine in a Challenging Market";s:8:"abstract";s:157:"Three mutual funds — one focusing on value stocks, one on Asia and one on biotechnology — were among the better performers in a difficult second quarter.";s:3:"url";s:106:"http://www.nytimes.com/2011/07/10/business/mutfund/mutual-funds-that-succeeded-in-a-tough-2nd-quarter.html";s:6:"byline";s:11:"By TIM GRAY";s:9:"item_type";s:7:"Article";s:6:"source";s:18:"The New York Times";s:12:"updated_date";s:25:"2011-07-09T14:47:21-04:00";s:12:"created_date";s:25:"2011-07-09T12:46:19-04:00";s:14:"published_date";s:25:"2011-07-10T00:00:00-04:00";s:19:"material_type_facet";s:4:"News";s:6:"kicker";s:0:"";s:11:"subheadline";s:0:"";s:9:"des_facet";a:3:{i:0;s:13:"Biotechnology";i:1;s:12:"Mutual Funds";i:2;s:16:"Stocks and Bonds";}s:9:"org_facet";a:3:{i:0;s:17:"Longleaf Partners";i:1;s:20:"Fidelity Investments";i:2;s:41:"Matthews International Capital Management";}s:9:"per_facet";s:0:"";s:9:"geo_facet";s:0:"";s:12:"related_urls";s:0:"";s:10:"multimedia";s:0:"";}}}',
+ 'effectiveUrl' => 'http://api.nytimes.com/svc/news/v3/content/all/all.sphp?limit=20&offset=0&api-key=4f3033d37819c9b78747d6731e9a43bb%3A7%3A57657007',
+);
Please sign in to comment.
Something went wrong with that request. Please try again.