ted_api 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +56 -0
  5. data/Rakefile +8 -0
  6. data/lib/faraday/response/raise_ted_api_error.rb +43 -0
  7. data/lib/ted_api.rb +20 -0
  8. data/lib/ted_api/client.rb +39 -0
  9. data/lib/ted_api/client/countries.rb +18 -0
  10. data/lib/ted_api/client/events.rb +18 -0
  11. data/lib/ted_api/client/languages.rb +18 -0
  12. data/lib/ted_api/client/quotes.rb +18 -0
  13. data/lib/ted_api/client/rating_words.rb +18 -0
  14. data/lib/ted_api/client/speakers.rb +18 -0
  15. data/lib/ted_api/client/tags.rb +18 -0
  16. data/lib/ted_api/client/talks.rb +26 -0
  17. data/lib/ted_api/client/themes.rb +18 -0
  18. data/lib/ted_api/configuration.rb +54 -0
  19. data/lib/ted_api/connection.rb +30 -0
  20. data/lib/ted_api/error.rb +34 -0
  21. data/lib/ted_api/request.rb +34 -0
  22. data/lib/ted_api/version.rb +3 -0
  23. data/spec/faraday/response_spec.rb +35 -0
  24. data/spec/fixtures/countries.json +1 -0
  25. data/spec/fixtures/countries.xml +109 -0
  26. data/spec/fixtures/country.json +1 -0
  27. data/spec/fixtures/country.xml +8 -0
  28. data/spec/fixtures/event.json +1 -0
  29. data/spec/fixtures/event.xml +12 -0
  30. data/spec/fixtures/events.json +1 -0
  31. data/spec/fixtures/events.xml +189 -0
  32. data/spec/fixtures/language.json +1 -0
  33. data/spec/fixtures/language.xml +8 -0
  34. data/spec/fixtures/languages.json +1 -0
  35. data/spec/fixtures/languages.xml +106 -0
  36. data/spec/fixtures/quote.json +1 -0
  37. data/spec/fixtures/quote.xml +14 -0
  38. data/spec/fixtures/quotes.json +2 -0
  39. data/spec/fixtures/quotes.xml +230 -0
  40. data/spec/fixtures/rating_word.json +1 -0
  41. data/spec/fixtures/rating_word.xml +7 -0
  42. data/spec/fixtures/rating_words.json +1 -0
  43. data/spec/fixtures/rating_words.xml +65 -0
  44. data/spec/fixtures/speaker.json +1 -0
  45. data/spec/fixtures/speaker.xml +16 -0
  46. data/spec/fixtures/speakers.json +1 -0
  47. data/spec/fixtures/speakers.xml +269 -0
  48. data/spec/fixtures/speakers_by_talk.json +1 -0
  49. data/spec/fixtures/subtitles.json +2 -0
  50. data/spec/fixtures/tag.json +1 -0
  51. data/spec/fixtures/tag.xml +11 -0
  52. data/spec/fixtures/tags.json +1 -0
  53. data/spec/fixtures/tags.xml +169 -0
  54. data/spec/fixtures/talk.json +1 -0
  55. data/spec/fixtures/talk.xml +302 -0
  56. data/spec/fixtures/talks.json +1 -0
  57. data/spec/fixtures/talks.xml +249 -0
  58. data/spec/fixtures/theme.json +1 -0
  59. data/spec/fixtures/theme.xml +19 -0
  60. data/spec/fixtures/themes.json +1 -0
  61. data/spec/fixtures/themes.xml +294 -0
  62. data/spec/spec_helper.rb +38 -0
  63. data/spec/ted_api/client/countries_spec.rb +46 -0
  64. data/spec/ted_api/client/events_spec.rb +46 -0
  65. data/spec/ted_api/client/languages_spec.rb +46 -0
  66. data/spec/ted_api/client/quotes_spec.rb +46 -0
  67. data/spec/ted_api/client/rating_words_spec.rb +46 -0
  68. data/spec/ted_api/client/speakers_spec.rb +46 -0
  69. data/spec/ted_api/client/tags_spec.rb +46 -0
  70. data/spec/ted_api/client/talks_spec.rb +78 -0
  71. data/spec/ted_api/client/themes_spec.rb +46 -0
  72. data/spec/ted_api/client_spec.rb +26 -0
  73. data/spec/ted_api_spec.rb +21 -0
  74. data/ted_api.gemspec +33 -0
  75. metadata +347 -0
@@ -0,0 +1 @@
1
+ {"theme":{"id":1,"name":"The Creative Spark","description":"How are we inspired? Where might our imaginations take us? What does creativity look like in its wildest form? These clever, invigorating speakers plumb the wellspring of invention.\r\n\r\nWriter, director and producer <a href=\"\/index.php\/talks\/view\/id\/205\">J.J. Abrams<\/a>' exuberant talk explores the nature of storytelling, the changing face of filmmaking and the possibility that mystery is more important than knowledge. Artist and programmer <a href=\"\/index.php\/talks\/view\/id\/172\">John Maeda<\/a> shares stories and observations about what complexity has taught him about simplicity, and how their relationship inspires him. Meanwhile, designer <a href=\"\/index.php\/talks\/view\/id\/197\">Philippe Starck<\/a> explains how his iconic creations come by way of the primordial soup.\r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/14\">Golan Levin<\/a> shows off his \"software art\": spellbinding audiovisual experiences that incorporate eerie sonic textures and tangles of color that move with life of their own. Pianist <a href=\"\/index.php\/talks\/view\/id\/46\">Jennifer Lin<\/a>, just 14 when she performed at TED, confects stunning, virtuosic compositions on the fly. And illustrator <a href=\"\/index.php\/talks\/view\/id\/182\">Maira Kalman<\/a> considers the role of knowledge (or lack thereof) in the creative process -- and concludes that daydreaming is the best job on Earth.\r\n\r\nDon't miss game designer <a href=\"\/index.php\/talks\/view\/id\/146\">Will Wright<\/a>'s preview of Spore, in which players control the evolution of custom-designed critters -- and colonize a galaxy. Or the dancers of <a href=\"\/index.php\/talks\/view\/id\/24\">Pilobolus<\/a>, who suggest a mutating organism that grows mouths and legs, slithers, drips like oil and turns itself inside out. And be sure to visit actor <a href=\"\/index.php\/talks\/view\/id\/60\">Anna Deavere Smith<\/a>, who delves into history, crime, race and culture by channeling the voices of four authentic American characters.","shortsummary":"Speakers who talk about the creative process","talks_description":"","speakers_description":"","slug":"the_creative_spark","is_featured":false}}
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <response>
3
+ <theme>
4
+ <id>1</id>
5
+ <name>The Creative Spark</name>
6
+ <description>How are we inspired? Where might our imaginations take us? What does creativity look like in its wildest form? These clever, invigorating speakers plumb the wellspring of invention.&#13;
7
+ &#13;
8
+ Writer, director and producer &lt;a href="/index.php/talks/view/id/205"&gt;J.J. Abrams&lt;/a&gt;' exuberant talk explores the nature of storytelling, the changing face of filmmaking and the possibility that mystery is more important than knowledge. Artist and programmer &lt;a href="/index.php/talks/view/id/172"&gt;John Maeda&lt;/a&gt; shares stories and observations about what complexity has taught him about simplicity, and how their relationship inspires him. Meanwhile, designer &lt;a href="/index.php/talks/view/id/197"&gt;Philippe Starck&lt;/a&gt; explains how his iconic creations come by way of the primordial soup.&#13;
9
+ &#13;
10
+ &lt;a href="/index.php/talks/view/id/14"&gt;Golan Levin&lt;/a&gt; shows off his "software art": spellbinding audiovisual experiences that incorporate eerie sonic textures and tangles of color that move with life of their own. Pianist &lt;a href="/index.php/talks/view/id/46"&gt;Jennifer Lin&lt;/a&gt;, just 14 when she performed at TED, confects stunning, virtuosic compositions on the fly. And illustrator &lt;a href="/index.php/talks/view/id/182"&gt;Maira Kalman&lt;/a&gt; considers the role of knowledge (or lack thereof) in the creative process -- and concludes that daydreaming is the best job on Earth.&#13;
11
+ &#13;
12
+ Don't miss game designer &lt;a href="/index.php/talks/view/id/146"&gt;Will Wright&lt;/a&gt;'s preview of Spore, in which players control the evolution of custom-designed critters -- and colonize a galaxy. Or the dancers of &lt;a href="/index.php/talks/view/id/24"&gt;Pilobolus&lt;/a&gt;, who suggest a mutating organism that grows mouths and legs, slithers, drips like oil and turns itself inside out. And be sure to visit actor &lt;a href="/index.php/talks/view/id/60"&gt;Anna Deavere Smith&lt;/a&gt;, who delves into history, crime, race and culture by channeling the voices of four authentic American characters.</description>
13
+ <shortsummary>Speakers who talk about the creative process</shortsummary>
14
+ <talks_description></talks_description>
15
+ <speakers_description></speakers_description>
16
+ <slug>the_creative_spark</slug>
17
+ <is_featured></is_featured>
18
+ </theme>
19
+ </response>
@@ -0,0 +1 @@
1
+ {"themes":[{"theme":{"id":1,"name":"The Creative Spark","description":"How are we inspired? Where might our imaginations take us? What does creativity look like in its wildest form? These clever, invigorating speakers plumb the wellspring of invention.\r\n\r\nWriter, director and producer <a href=\"\/index.php\/talks\/view\/id\/205\">J.J. Abrams<\/a>' exuberant talk explores the nature of storytelling, the changing face of filmmaking and the possibility that mystery is more important than knowledge. Artist and programmer <a href=\"\/index.php\/talks\/view\/id\/172\">John Maeda<\/a> shares stories and observations about what complexity has taught him about simplicity, and how their relationship inspires him. Meanwhile, designer <a href=\"\/index.php\/talks\/view\/id\/197\">Philippe Starck<\/a> explains how his iconic creations come by way of the primordial soup.\r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/14\">Golan Levin<\/a> shows off his \"software art\": spellbinding audiovisual experiences that incorporate eerie sonic textures and tangles of color that move with life of their own. Pianist <a href=\"\/index.php\/talks\/view\/id\/46\">Jennifer Lin<\/a>, just 14 when she performed at TED, confects stunning, virtuosic compositions on the fly. And illustrator <a href=\"\/index.php\/talks\/view\/id\/182\">Maira Kalman<\/a> considers the role of knowledge (or lack thereof) in the creative process -- and concludes that daydreaming is the best job on Earth.\r\n\r\nDon't miss game designer <a href=\"\/index.php\/talks\/view\/id\/146\">Will Wright<\/a>'s preview of Spore, in which players control the evolution of custom-designed critters -- and colonize a galaxy. Or the dancers of <a href=\"\/index.php\/talks\/view\/id\/24\">Pilobolus<\/a>, who suggest a mutating organism that grows mouths and legs, slithers, drips like oil and turns itself inside out. And be sure to visit actor <a href=\"\/index.php\/talks\/view\/id\/60\">Anna Deavere Smith<\/a>, who delves into history, crime, race and culture by channeling the voices of four authentic American characters.","shortsummary":"Speakers who talk about the creative process","talks_description":"","speakers_description":"","slug":"the_creative_spark","is_featured":false}},{"theme":{"id":2,"name":"Animals That Amaze","description":"What do animals have to do with technology, entertainment, design and the world of ideas? More than you might think.\r\n\r\nOceanographer <a href=\"\/index.php\/talks\/view\/id\/206\">David Gallo<\/a> presents a stunning video menagerie of sea creatures that glow, spew ink, shape-shift -- and exhibit romantic duplicity. Scientist <a href=\"\/index.php\/talks\/view\/id\/195\">Robert Full<\/a>'s rousing talk explores what we might learn about locomotion -- speed, versatility, flexibility -- through the study of animal movement. <a href=\"\/index.php\/talks\/view\/id\/76\">Susan Savage-Rumbaugh<\/a> introduces astonishing bonobo apes that start fires, write and play Pac Man. Science author <a href=\"\/index.php\/talks\/view\/id\/18\">Janine Benyus<\/a>, meanwhile, sees \"solutions in seashells\": ingenious adaptations in nature that solve intractable human problems.","shortsummary":"A collection of talks praising the beauty, ingenuity and wonder of our fellow beasts","talks_description":"","speakers_description":"[[held copy -- add when videos are live:\r\nThere's a long tradition at TED of astonishing talks about animals. You may think this strange at first glance. \r\nStart with Robert Full's extraordinary work with cockroaches, millipedes and geckos. By studying them, he's been able to create incredible robots. Deborah Gordon's brilliant work on ants powerfully demonstrates the idea of \"emergence\" when thousands of individuals inadvertently create a powerful meta-level behavior. \r\nTry watching Tierney Thys's talk about the bizarre mola mola fish or ...","slug":"animals_that_amaze","is_featured":false}},{"theme":{"id":3,"name":"Evolution's Genius","description":"TED adores great design. A growing number of speakers focus their Talks on the most elegant designs that exist: those in the natural world.\r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/18\">Janine Benyus<\/a> points out that nature has to its advantage around 3.8 billion years of \"research and development,\" and lists wonderful examples of natural designs that solve intractable human engineering problems. <a href=\"\/index.php\/talks\/view\/id\/80\">Juan Enriquez<\/a> describes how nature is driven by a remarkable information engine -- DNA -- and what that means for our future.\r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/98\">Richard Dawkins<\/a>, perhaps the world\u2019s most outspoken and influential evolutionary biologist, describes a \"queer\" natural world abundant with surprises and peculiarity, and warns us that even our minds are products of evolution. Likewise, <a href=\"\/index.php\/talks\/view\/id\/164\">Steven Pinker<\/a>, <a href=\"\/index.php\/talks\/view\/id\/16\">Helen Fisher<\/a> and <a href=\"\/index.php\/talks\/view\/id\/102\">Dan Dennett<\/a> present insights on how evolution has shaped the human mind, and how its configuration affects love, sex, parenting and the spread of ideas. <a href=\"\/index.php\/talks\/view\/id\/19\">Kevin Kelly<\/a>, meanwhile, advances his conception of technology as a new branch of life -- which is evolving accordingly.\r\n","shortsummary":"Talks that marvel at nature's design","talks_description":"","speakers_description":"<b>Robert Full<\/b> adds his own, using the unlikely raw material of cockroaches and geckos. ","slug":"evolution_s_genius","is_featured":false}},{"theme":{"id":4,"name":"How the Mind Works","description":"At a conference about ideas, it\u2019s important to step back and consider the engine that creates them: the human mind. How exactly does the brain -- a three-pound snarl of electrochemically frantic nervous tissue -- create inspired inventions, the feeling of hunger, the experience of beauty, or the sense of self -- and how reliable is it?\r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/116\">Dan Dennett<\/a> contemplates the mind as an ecosystem in which a new class of entities -- memes -- can compete, coexist, reproduce and flourish, and asks what sorts of nefarious things these entities might be up to. An enthusiastic <a href=\"\/index.php\/talks\/view\/id\/97\">Dan Gilbert<\/a> presents his new research on the peculiar, counterintuitive -- and perhaps a smidge deflating -- secret to happiness. And <a href=\"\/index.php\/talks\/view\/id\/125\">Jeff Hawkins<\/a> explains why a napkin-sized sheaf of cellular matter, wrinkled into a ball, will fundamentally change the direction of the computer industry.","shortsummary":"The latest thinking on thinking","talks_description":"","speakers_description":"Steve Pinker shows it's a huge error to think of the mind as a blank slate shaped by upbringing alone. Jeff Hawkins unveils a grand theory about how brains function. ","slug":"how_the_mind_works","is_featured":false}},{"theme":{"id":5,"name":"The Power of Cities","description":"In the last 3,000 years, the history of humankind has been tied to the history of cities. With half of the world's population living in urban settings now, it's urgent that we examine them and update our understanding.\r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/36\">Robert Neuwirth<\/a> lived in and studied the overcrowded slums of megacities such as Nairobi and Rio de Janeiro -- and found hope and vitality there. <a href=\"\/index.php\/talks\/view\/id\/53\">Majora Carter<\/a> talks about how enlightened policymaking can \"green the ghetto,\" offering an eye-opening look at why ghettos exist. <a href=\"\/index.php\/talks\/view\/id\/61\">Steven Johnson<\/a>, meanwhile, shares the history of a mapping innovation that helped wipe out a deadly disease in London -- and brought about a new reading of urban epidemics and public health.","shortsummary":"Half the world's population lives in cities now; it's urgent that we understand them better","talks_description":"","speakers_description":"ADD when ready:\r\n","slug":"the_power_of_cities","is_featured":false}},{"theme":{"id":6,"name":"What's Next in Tech","description":"The contemplation and, often, introduction of new technology is integral to TED: you might say it's embedded in our genetic code.\r\n\r\nComputer scientist <a href=\"\/index.php\/talks\/view\/id\/65\">Jeff Han<\/a> intends to reinvent computing by replacing traditional point-click user interfaces with dynamic touch screens. <a href=\"\/index.php\/talks\/view\/id\/195\">Robert Full<\/a> wants to enhance transit and robotics by studying the motion of animals whose system of locomotion can adapt to nearly any surface. And <a href=\"\/index.php\/talks\/view\/id\/193\">Juan Enriquez<\/a> discusses oil energy -- derived, ultimately, from ancient plants -- and wonders why we can't develop methods to \"grow\" energy as efficiently as we grow wheat.\r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/129\">Blaise Aguera y Arcas<\/a> demonstrates his powerful new software, Photosynth, which fuses digital photographs from unrelated sources into fluid, three-dimensional tapestries of real environments. <a href=\"\/index.php\/talks\/view\/id\/142\">Alan Russell<\/a> wants to use bioengineered tissue to regenerate damaged body parts. And <a href=\"\/index.php\/talks\/view\/id\/72\">Chris Anderson<\/a> of <i>WIRED<\/i> discusses how emerging technologies -- matched with the right business model -- can make an impact of perhaps surprising magnitude.","shortsummary":"From reinventing computing to exploring new materials, a celebration of creativity and inventiveness","talks_description":"","speakers_description":"","slug":"what_s_next_in_tech","is_featured":false}},{"theme":{"id":7,"name":"Presentation Innovation","description":"Great speakers hold the power to captivate and inspire. This collection highlights speakers who go one step further -- and innovate on the form itself.\r\n\r\nDoctor and researcher <a href=\"\/index.php\/talks\/view\/id\/92\">Hans Rosling<\/a>'s eye-catching statistics don't stand still: they mutate, morph and crackle with color. Medical illustrator <a href=\"\/index.php\/talks\/view\/id\/147\">David Bolinsky<\/a> takes us into the nano-scale workings of living cells with animated computer graphics that mesmerize. And Internet art wizard <a href=\"\/index.php\/talks\/view\/id\/144\">Jonathan Harris<\/a>' ongoing study of emotion in the blogosphere turns web stories into sunrays, whirlpools and fireworks.\r\n\r\nDon't miss <a href=\"\/index.php\/talks\/view\/id\/126\">Blaise Aguera y Arcas<\/a>' debut of Photosynth, an astonishing web application that can recognize the content of photographs and stitch them into three-dimensional tapestries. And make sure to catch computer scientist <a href=\"\/index.php\/talks\/view\/id\/65\">Jeff Han<\/a>'s enthusiastic demo of his new multi-touch user interface -- it will change the way we interact with computers.","shortsummary":"Eye-opening ways to show stats, share ideas and captivate the crowd","talks_description":"","speakers_description":"","slug":"presentation_innovation","is_featured":false}},{"theme":{"id":9,"name":"Spectacular Performance","description":"This collection of extraordinary dancers, actors, musicians, magicians and storytellers will bring both sides of your brain to life.\r\n\r\nPianist <a href=\"\/index.php\/talks\/view\/id\/46\">Jennifer Lin<\/a>, just 14 at the time of her performance, confects spirited (and altogether unrehearsed) compositions from spur-of-the-moment audience suggestions. Jazz-inspired guitarist and singer <a href=\"\/index.php\/talks\/view\/id\/188\">Raul Midon<\/a> riles up 2007 TEDsters with songs about Google, technology, dreams and a child's fear of \"invisible forces.\" And <a href=\"\/index.php\/talks\/view\/id\/158\">Vusi Mahlasela<\/a>, a crucial artistic voice during the fight against apartheid, shares his soulful, optimistic songs of protest and solidarity. (Be sure to watch his <a href=\"\/index.php\/talks\/view\/id\/169\">encore<\/a> performance.)\r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/24\">Pilobolus<\/a>' smooth, organic choreography -- featuring unusual partnering and lifts -- blurs the lines between individual performers, creating a sense of dance-troupe-as-organism. And in a feat of agility and optical illusion, urban-inspired dancer <a href=\"\/index.php\/talks\/view\/id\/179\">Kenichi Ebina<\/a> teases and twirls a mischievous wisp of light.\r\n\r\nAlso check out \"mathemagician\" <a href=\"\/index.php\/talks\/view\/id\/199\">Arthur Benjamin<\/a>'s massive on-the-fly multiplications -- calculations so fast you might think it's magic. Or wordsmith <a href=\"\/index.php\/talks\/view\/id\/148\">Rives<\/a>' observations on the eerie coincidences surrounding that most surreal of hours: 4 a.m. And don't miss veteran TEDster <a href=\"\/index.php\/talks\/view\/id\/144\">Tom Rielly<\/a>'s comic send-up of the 2006 conference: not even our sponsors are safe!","shortsummary":"Actors and acrobats, musicians and magicians -- sit back and enjoy the show!","talks_description":"","speakers_description":"","slug":"spectacular_performance","is_featured":false}},{"theme":{"id":10,"name":"Architectural Inspiration","description":"TED has a love affair with buildings. Big or small, we cherish the inspired visions behind them. But <a href=\"\/index.php\/talks\/view\/id\/49\">Joshua Prince-Ramus<\/a>, architect of the Seattle Public Library, would argue: It isn't a stroke of genius that creates a great building; rather, it's a rational, collaborative, bottom-up approach. <a href=\"\/index.php\/talks\/view\/id\/13\">Frank Gehry<\/a>, consummate \"starchitect,\" on the other hand, sees each building as the product of a strong individual vision.\r\n\r\nOther pioneers are pushing architecture in radically new directions. <a href=\"\/index.php\/talks\/view\/id\/54\">Cameron Sinclair<\/a> champions design for humanitarian causes, and his new Open Architecture Network could revolutionize the pro bono project. Sustainability guru <a href=\"\/index.php\/talks\/view\/id\/104\">William McDonough<\/a> is bringing green design to the Rust Belt and to brand-new megacities in China. And then there's the delightful and uncategorizable <a href=\"\/index.php\/talks\/view\/id\/198\">Ron Eglash<\/a>, who found math in the design of African villages.","shortsummary":"Architects present some of their most fascinating projects","talks_description":"","speakers_description":"","slug":"architectural_inspiration","is_featured":false}},{"theme":{"id":12,"name":"TED Prize Winners","description":"Every year, TED names three new recipients for the TED Prize. These are the winners' acceptance talks, where they reveal their wish to change the world. \r\n\r\n<a href=\"http:\/\/www.tedprize.org\/2009-winners\/\" target=\"_blank\">Read about the 2009 winners >><\/a>\r\n\r\nFrom 2005, <b>Bono<\/b> shares a call to action on Africa; photographer <b>Edward Burtynsky<\/b> shows jaw-dropping photos of industrial landscapes and asks for help teaching the next generation to be green; and medical inventor <b>Robert Fischell<\/b> wishes for design help for next-generation health tools.\r\n\r\nFrom 2006, architect <b>Cameron Sinclair<\/b> sets out a plan for sharing open-source design for humanity; filmmaker <b>Jehane Noujaim<\/b> wishes to tap the power of film to strengthen tolerance and compassion while uniting millions of people to build a better future; and <b>Dr. Larry Brilliant<\/b> asks for the TED community's help in building a global early-warning system to find and contain new pandemics.\r\n\r\nFrom 2007, <b>Bill Clinton<\/b> talks about how we can help build a health care system in Rwanda; <b>James Nachtwey<\/b> shows searing photographs of war and conflict; and <b>E.O. Wilson<\/b> shares his vision for the Encyclopedia of Life.","shortsummary":"Acceptance talks from each of the three annual TED Prize winners","talks_description":"","speakers_description":"","slug":"ted_prize_winners","is_featured":false}},{"theme":{"id":14,"name":"Inspired by Nature","description":"Who can fail to marvel at the shape of a leaf, the sleek power of a cheetah, the dance of two bodies connecting? These speakers celebrate and take inspiration from the natural world -- in the design of a new chair or in a vision for living lightly upon the Earth. \r\n\r\n<b>Janine Benyus<\/b> talks about biomimicry, the practice of copying nature's own engineers, while designers <b>Ross Lovegrove<\/b> and <b>Paul Bennett<\/b> discuss the practice of solving design problems by reducing them to evolutionary principles. And <b>Alex Steffen<\/b> from Worldchanging.com shares his bright-green vision for a society in harmony. \r\n\r\nFor your own shot of inspiration, take a look at the work of photographer <b>Frans Lanting<\/b>, and his spine-tingling images of natural grace.","shortsummary":"Who can fail to marvel at the natural world? A collection of talks in praise of nature","talks_description":"","speakers_description":"","slug":"inspired_by_nature","is_featured":false}},{"theme":{"id":15,"name":"A Greener Future?","description":"The environmental debate has traditionally been characterized as a conflict between economic progress and preservation of the planet. Most TED speakers, however, insist that we can have both -- provided we're smart about it.\r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/1\">Al Gore<\/a>, the world's leading voice on the climate crisis, argues that the simple steps we might take to avert disaster would also fuel the economy. Architect <a href=\"\/index.php\/talks\/view\/id\/104\">William McDonough<\/a> shows how the power of great design -- working on entire systems rather than local components -- can foster an abundant, sustainable future. And <a href=\"\/index.php\/talks\/view\/id\/53\">Majora Carter<\/a> discusses her work to bring green spaces to the blighted South Bronx.\r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/56\">Edward Burtynsky<\/a>'s eerily pretty photographs of environmental damage and economic development document humanity's ever-expanding footprint. And biologist <a href=\"\/index.php\/talks\/view\/id\/83\">E.O. Wilson<\/a> shares his grandest wish -- that the human community band together to save life on Earth.","shortsummary":"These pioneers of green are building a smart and sustainable future","talks_description":"","speakers_description":"","slug":"a_greener_future","is_featured":false}},{"theme":{"id":16,"name":"Tales of Invention","description":"TED has always loved a good creation story. No matter the scale -- kitchen, continent, or solar system -- invention grants us access to the frontiers of our understanding.\r\n\r\nLegendary designer <a href=\"\/index.php\/talks\/view\/id\/197\">Philippe Starck<\/a>'s lively ruminations on his own creative process suggest how the patterns of a civilization might affect, say, the design of a citrus juicer. <a href=\"\/index.php\/talks\/view\/id\/190\">Jan Chipchase<\/a> investigates the worldwide impact of mobile phones -- and the impact of culture on next-generation mobile technology. Explorer and adventurer <a href=\"\/index.php\/talks\/view\/id\/141\">Bill Stone<\/a>, meanwhile, fires up a rapt audience with his ambitious plan to harvest energy from the moon.\r\n\r\nCopyright lawyer <a href=\"\/index.php\/talks\/view\/id\/187\">Larry Lessig<\/a> gives a brief history of creative freedom and copyright, and talks about how contemporary copyright law could strangle future artistic invention and interpretation. <a href=\"\/index.php\/talks\/view\/id\/153\">William Kamkwamba<\/a> tells how he built a windmill from scrap metal when he was 14 years old. And <a href=\"\/index.php\/talks\/view\/id\/2\">Amy Smith<\/a> shares her transformative low-tech tools for saving life in the developing world.","shortsummary":"Inventive souls who create something from nothing inspire us to dream bigger","talks_description":"","speakers_description":"","slug":"tales_of_invention","is_featured":false}},{"theme":{"id":17,"name":"Art Unusual","description":"<em>Image: Maira Kalman<\/em>\r\n\r\nProvocative, multidisciplinary and often technology-driven, new modes of art and performance defy their traditional definitions. These Talks celebrate artistic innovation as well as creative cross-pollination.\r\n\r\nGame designer <a href=\"\/index.php\/talks\/view\/id\/146\">Will Wright<\/a> constructs virtual worlds in which players can make creatures of their own. The dancers of <a href=\"\/index.php\/talks\/view\/id\/24\">Pilobolus<\/a> blur the boundary between two bodies, and <a href=\"\/index.php\/talks\/view\/id\/64\">Eve Ensler<\/a> crosses a few boundaries herself by speaking bluntly about the body. \r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/14\">Golan Levin<\/a> uses software to create experimental sonic and visual artworks -- a symphony of ringtones, for example. <a href=\"\/index.php\/talks\/view\/id\/32\">Vik Muniz<\/a>'s artwork -- made of chocolate, confetti and clouds -- challenges our perceptions and teases our imaginations. And <a href=\"\/index.php\/talks\/view\/id\/50\">Stefan Sagmeister<\/a> shows how a little flair and an ardent attention to detail can do for design something indispensable: make people happy.","shortsummary":"Make room in the canon for this new breed of artists","talks_description":"","speakers_description":"","slug":"art_unusual","is_featured":false}},{"theme":{"id":18,"name":"To Boldly Go ...","description":"At TED, the spirit of adventure runs deep. An explorer's tale can move us, enrich our knowledge and awaken the wanderer within.\r\n\r\nThrough pictures and words, we accompany <a href=\"\/index.php\/talks\/view\/id\/89\">Ben Saunders<\/a> on his incredible journey to the North Pole -- on skis, alone. Planetary scientist <a href=\"\/index.php\/talks\/view\/id\/178\">Carolyn Porco<\/a> takes us along the spacecraft <i>Cassini<\/i>'s voyage to Saturn and its mysterious moons. And adventurer <a href=\"\/index.php\/talks\/view\/id\/141\">Bill Stone<\/a> talks about his exploration of the deepest caverns on Earth -- and how his experiences there will help his mission to discover life in the outer reaches of the solar system.","shortsummary":"Exploration at the edge of the known universe","talks_description":"","speakers_description":"","slug":"to_boldly_go","is_featured":false}},{"theme":{"id":19,"name":"The Rise of Collaboration","description":"Yochai Benkler dubs it 'the wealth of networks.\" Howard Rheingold's term is \"smart mobs.\" It's the idea of technology-enabled collaboration \u2026 and it's making us all smarter.\r\n\r\nThe open-source movement embodies this spirit of collaboration. <a href=\"\/index.php\/talks\/view\/id\/37\">Jimmy Wales<\/a> tells the story of perhaps the movement's most famous example, Wikipedia -- while <a href=\"\/index.php\/talks\/view\/id\/25\">Richard Baraniuk<\/a> envisions a free global education system to which thousands of teachers could contribute. <a href=\"\/index.php\/talks\/view\/id\/63\">Charles Leadbeater<\/a> gives examples of collaborative innovation that predate the Web. And 2006 TED Prize winner <a href=\"\/index.php\/talks\/view\/id\/54\">Cameron Sinclair<\/a> wants to shelter the world -- by providing an online platform for open-source architecture.\r\n\r\nAnd <a href=\"http:\/\/www.ted.com\/index.php\/talks\/view\/id\/145\">Deborah Gordon<\/a> shows us the inspiration for all this: the desert anthill.","shortsummary":"Call it \"hive mind,\" \"smart mobs\" or the \"wisdom of crowds\" ... it's making us all smarter","talks_description":"","speakers_description":"There are many variations on the theme, each with its own catchphrase. A decade ago Kevin Kelly wrote about \"the hive mind.\" Yochai Benkler dubs it 'the wealth of networks.\" Howard Rheingold's term is \"smart mobs.\" James Surowiecki called it \"the wisdom of crowds.\"","slug":"the_rise_of_collaboration","is_featured":true}},{"theme":{"id":20,"name":"Rethinking Poverty","description":"The catchphrase goes, \"Make poverty history.\" But how? These speakers' innovative ideas may convince you to forget the traditional models -- grants, aid, charity -- and consider business, technology and trade instead.\r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/157\">Jacqueline Novogratz<\/a>, founder of the Acumen Fund, argues for a combination of philanthropy and investment -- highlighting personal dignity and choice as the path to progress. Academic and policymaker <a href=\"\/index.php\/talks\/view\/id\/3\">Ashraf Ghani<\/a>, meanwhile, urges us to rethink capital in terms of security, social connectivity and education. And <a href=\"\/index.php\/talks\/view\/id\/140\">Hans Rosling<\/a>'s dazzling, animated statistics reveal the true discrepancies between emerging and developed economies. \r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/79\">Iqbal Quadir<\/a> explains how he improved a Bangladeshi business model -- by replacing cows with a new component: mobile phones. <a href=\"\/index.php\/talks\/view\/id\/53\">Majora Carter<\/a> details her efforts to bring green space to the blighted South Bronx, offering an eye-opening look at how flawed urban policy allows ghettos to exist. <a href=\"\/index.php\/talks\/view\/id\/127\">Ngozi Okonjo-Iweala<\/a>, meanwhile, lets us in on a secret: business in impoverished countries is viable, and a \"few smart people\" have already made millions of dollars.","shortsummary":"Fresh ideas for making poverty history","talks_description":"","speakers_description":"","slug":"rethinking_poverty","is_featured":false}},{"theme":{"id":21,"name":"Is There a God?","description":"While TED has no official stance on religion, speakers do occasionally venture (bravely) into this contentious territory.\r\n\r\nAt TED's 2006 conference, best-selling author and pastor <a href=\"\/index.php\/talks\/view\/id\/71\">Rick Warren<\/a> argued that an exceptional life must be driven by spiritual purpose. But he was immediately challenged by atheist philosopher <a href=\"\/index.php\/talks\/view\/id\/94\">Dan Dennett<\/a>, who argued that Warren's claims couldn't be true. (If you're feeling courageous, you can join this ongoing debate on our forum, at right.)","shortsummary":"Is there any bigger question?","talks_description":"","speakers_description":"","slug":"is_there_a_god","is_featured":false}},{"theme":{"id":22,"name":"Master Storytellers","description":"Nowhere has the timeless power of narrative been more apparent than at TED: here, storytellers both professional and provisional use the personal tale to entertain, educate and inspire to action.\r\n\t\r\n<a href=\"\/index.php\/talks\/view\/id\/60\">Anna Deavere Smith<\/a> replicates the spoken styles of true-to-life American characters with her startling monologues -- \"organic poetry\" extracted verbatim from interviews. Whip-smart <a href=\"\/index.php\/talks\/view\/id\/108\">Rives<\/a> and razor-sharp <a href=\"\/index.php\/talks\/view\/id\/86\">Julia Sweeney<\/a> revel in the rhythmic power of the spoken word. And <a href=\"\/index.php\/talks\/view\/id\/144\">Jonathan Harris<\/a> uses web technology to collect, catalog and broadcast the emotions and aspirations of thousands of people -- instantaneously.\r\n\r\n<a href=\"\/index.php\/talks\/view\/id\/189\">Sherwin Nuland<\/a> illuminates the history and potential of electroshock therapy through an emotional, personal account of depression. <a href=\"\/index.php\/talks\/view\/id\/69\">Wade Davis<\/a>\u2019 passionate talk on vanishing world cultures simply grabs you from the first instant. And you\u2019ll never forget <a href=\"\/index.php\/talks\/view\/id\/89\">Ben Saunders<\/a>\u2019 rousing recollections of skiing to the North Pole -- alone.\r\n\r\nIf these stories inspire you to tell your own, consider <a href=\"http:\/\/www.pangeaday.org\/\">submitting a film to Pangea Day >><\/a>","shortsummary":"These folks know how to spin a good yarn","talks_description":"","speakers_description":"","slug":"master_storytellers","is_featured":false}},{"theme":{"id":23,"name":"Bold Predictions, Stern Warnings","description":"These passionate, fearless speakers don\u2019t mince words. They identify the most difficult problems and propose bold solutions.\r\n\r\nClimatologist <a href=\"\/index.php\/talks\/view\/id\/192\">David Keith<\/a> considers the dramatic and even dangerous ways in which global warming might be reversed in a hurry -- and who ought to regulate such action. On the same issue, economist <a href=\"\/index.php\/talks\/view\/id\/62\">Bjorn Lomborg<\/a> delivers his controversial but no less important thesis: there are simply bigger problems to worry about. And characteristically acerbic <a href=\"\/index.php\/talks\/view\/id\/121\">James Howard Kunstler<\/a> wants to stave off a hypothetical \"long emergency\" -- by encouraging developers to build public spaces worth caring about.\r\n\r\nOther speakers see more reason for optimism. Maverick gerontologist <a href=\"\/index.php\/talks\/view\/id\/39\">Aubrey de Grey<\/a> investigates the notion of indefinite life extension, while inventor <a href=\"\/index.php\/talks\/view\/id\/38\">Ray Kurzweil<\/a> predicts an accelerated future where technology and humanity advance as one. And <a href=\"\/index.php\/talks\/view\/id\/68\">Robert Wright<\/a>\u2019s dry delivery somehow highlights his inspired conviction that human history has a direction -- an \"arrow\" -- and that, from here, things can only get better.","shortsummary":"Speakers who aren't afraid to go negative","talks_description":"","speakers_description":"","slug":"bold_predictions_stern_warnings","is_featured":false}}],"counts":{"this":20,"total":47}}
@@ -0,0 +1,294 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <response>
3
+ <themes>
4
+ <theme>
5
+ <id>1</id>
6
+ <name>The Creative Spark</name>
7
+ <description>How are we inspired? Where might our imaginations take us? What does creativity look like in its wildest form? These clever, invigorating speakers plumb the wellspring of invention.&#13;
8
+ &#13;
9
+ Writer, director and producer &lt;a href="/index.php/talks/view/id/205"&gt;J.J. Abrams&lt;/a&gt;' exuberant talk explores the nature of storytelling, the changing face of filmmaking and the possibility that mystery is more important than knowledge. Artist and programmer &lt;a href="/index.php/talks/view/id/172"&gt;John Maeda&lt;/a&gt; shares stories and observations about what complexity has taught him about simplicity, and how their relationship inspires him. Meanwhile, designer &lt;a href="/index.php/talks/view/id/197"&gt;Philippe Starck&lt;/a&gt; explains how his iconic creations come by way of the primordial soup.&#13;
10
+ &#13;
11
+ &lt;a href="/index.php/talks/view/id/14"&gt;Golan Levin&lt;/a&gt; shows off his "software art": spellbinding audiovisual experiences that incorporate eerie sonic textures and tangles of color that move with life of their own. Pianist &lt;a href="/index.php/talks/view/id/46"&gt;Jennifer Lin&lt;/a&gt;, just 14 when she performed at TED, confects stunning, virtuosic compositions on the fly. And illustrator &lt;a href="/index.php/talks/view/id/182"&gt;Maira Kalman&lt;/a&gt; considers the role of knowledge (or lack thereof) in the creative process -- and concludes that daydreaming is the best job on Earth.&#13;
12
+ &#13;
13
+ Don't miss game designer &lt;a href="/index.php/talks/view/id/146"&gt;Will Wright&lt;/a&gt;'s preview of Spore, in which players control the evolution of custom-designed critters -- and colonize a galaxy. Or the dancers of &lt;a href="/index.php/talks/view/id/24"&gt;Pilobolus&lt;/a&gt;, who suggest a mutating organism that grows mouths and legs, slithers, drips like oil and turns itself inside out. And be sure to visit actor &lt;a href="/index.php/talks/view/id/60"&gt;Anna Deavere Smith&lt;/a&gt;, who delves into history, crime, race and culture by channeling the voices of four authentic American characters.</description>
14
+ <shortsummary>Speakers who talk about the creative process</shortsummary>
15
+ <talks_description></talks_description>
16
+ <speakers_description></speakers_description>
17
+ <slug>the_creative_spark</slug>
18
+ <is_featured></is_featured>
19
+ </theme>
20
+ <theme>
21
+ <id>2</id>
22
+ <name>Animals That Amaze</name>
23
+ <description>What do animals have to do with technology, entertainment, design and the world of ideas? More than you might think.&#13;
24
+ &#13;
25
+ Oceanographer &lt;a href="/index.php/talks/view/id/206"&gt;David Gallo&lt;/a&gt; presents a stunning video menagerie of sea creatures that glow, spew ink, shape-shift -- and exhibit romantic duplicity. Scientist &lt;a href="/index.php/talks/view/id/195"&gt;Robert Full&lt;/a&gt;'s rousing talk explores what we might learn about locomotion -- speed, versatility, flexibility -- through the study of animal movement. &lt;a href="/index.php/talks/view/id/76"&gt;Susan Savage-Rumbaugh&lt;/a&gt; introduces astonishing bonobo apes that start fires, write and play Pac Man. Science author &lt;a href="/index.php/talks/view/id/18"&gt;Janine Benyus&lt;/a&gt;, meanwhile, sees "solutions in seashells": ingenious adaptations in nature that solve intractable human problems.</description>
26
+ <shortsummary>A collection of talks praising the beauty, ingenuity and wonder of our fellow beasts</shortsummary>
27
+ <talks_description></talks_description>
28
+ <speakers_description>[[held copy -- add when videos are live:&#13;
29
+ There's a long tradition at TED of astonishing talks about animals. You may think this strange at first glance. &#13;
30
+ Start with Robert Full's extraordinary work with cockroaches, millipedes and geckos. By studying them, he's been able to create incredible robots. Deborah Gordon's brilliant work on ants powerfully demonstrates the idea of "emergence" when thousands of individuals inadvertently create a powerful meta-level behavior. &#13;
31
+ Try watching Tierney Thys's talk about the bizarre mola mola fish or ...</speakers_description>
32
+ <slug>animals_that_amaze</slug>
33
+ <is_featured></is_featured>
34
+ </theme>
35
+ <theme>
36
+ <id>3</id>
37
+ <name>Evolution's Genius</name>
38
+ <description>TED adores great design. A growing number of speakers focus their Talks on the most elegant designs that exist: those in the natural world.&#13;
39
+ &#13;
40
+ &lt;a href="/index.php/talks/view/id/18"&gt;Janine Benyus&lt;/a&gt; points out that nature has to its advantage around 3.8 billion years of "research and development," and lists wonderful examples of natural designs that solve intractable human engineering problems. &lt;a href="/index.php/talks/view/id/80"&gt;Juan Enriquez&lt;/a&gt; describes how nature is driven by a remarkable information engine -- DNA -- and what that means for our future.&#13;
41
+ &#13;
42
+ &lt;a href="/index.php/talks/view/id/98"&gt;Richard Dawkins&lt;/a&gt;, perhaps the world’s most outspoken and influential evolutionary biologist, describes a "queer" natural world abundant with surprises and peculiarity, and warns us that even our minds are products of evolution. Likewise, &lt;a href="/index.php/talks/view/id/164"&gt;Steven Pinker&lt;/a&gt;, &lt;a href="/index.php/talks/view/id/16"&gt;Helen Fisher&lt;/a&gt; and &lt;a href="/index.php/talks/view/id/102"&gt;Dan Dennett&lt;/a&gt; present insights on how evolution has shaped the human mind, and how its configuration affects love, sex, parenting and the spread of ideas. &lt;a href="/index.php/talks/view/id/19"&gt;Kevin Kelly&lt;/a&gt;, meanwhile, advances his conception of technology as a new branch of life -- which is evolving accordingly.&#13;
43
+ </description>
44
+ <shortsummary>Talks that marvel at nature's design</shortsummary>
45
+ <talks_description></talks_description>
46
+ <speakers_description>&lt;b&gt;Robert Full&lt;/b&gt; adds his own, using the unlikely raw material of cockroaches and geckos. </speakers_description>
47
+ <slug>evolution_s_genius</slug>
48
+ <is_featured></is_featured>
49
+ </theme>
50
+ <theme>
51
+ <id>4</id>
52
+ <name>How the Mind Works</name>
53
+ <description>At a conference about ideas, it’s important to step back and consider the engine that creates them: the human mind. How exactly does the brain -- a three-pound snarl of electrochemically frantic nervous tissue -- create inspired inventions, the feeling of hunger, the experience of beauty, or the sense of self -- and how reliable is it?&#13;
54
+ &#13;
55
+ &lt;a href="/index.php/talks/view/id/116"&gt;Dan Dennett&lt;/a&gt; contemplates the mind as an ecosystem in which a new class of entities -- memes -- can compete, coexist, reproduce and flourish, and asks what sorts of nefarious things these entities might be up to. An enthusiastic &lt;a href="/index.php/talks/view/id/97"&gt;Dan Gilbert&lt;/a&gt; presents his new research on the peculiar, counterintuitive -- and perhaps a smidge deflating -- secret to happiness. And &lt;a href="/index.php/talks/view/id/125"&gt;Jeff Hawkins&lt;/a&gt; explains why a napkin-sized sheaf of cellular matter, wrinkled into a ball, will fundamentally change the direction of the computer industry.</description>
56
+ <shortsummary>The latest thinking on thinking</shortsummary>
57
+ <talks_description></talks_description>
58
+ <speakers_description>Steve Pinker shows it's a huge error to think of the mind as a blank slate shaped by upbringing alone. Jeff Hawkins unveils a grand theory about how brains function. </speakers_description>
59
+ <slug>how_the_mind_works</slug>
60
+ <is_featured></is_featured>
61
+ </theme>
62
+ <theme>
63
+ <id>5</id>
64
+ <name>The Power of Cities</name>
65
+ <description>In the last 3,000 years, the history of humankind has been tied to the history of cities. With half of the world's population living in urban settings now, it's urgent that we examine them and update our understanding.&#13;
66
+ &#13;
67
+ &lt;a href="/index.php/talks/view/id/36"&gt;Robert Neuwirth&lt;/a&gt; lived in and studied the overcrowded slums of megacities such as Nairobi and Rio de Janeiro -- and found hope and vitality there. &lt;a href="/index.php/talks/view/id/53"&gt;Majora Carter&lt;/a&gt; talks about how enlightened policymaking can "green the ghetto," offering an eye-opening look at why ghettos exist. &lt;a href="/index.php/talks/view/id/61"&gt;Steven Johnson&lt;/a&gt;, meanwhile, shares the history of a mapping innovation that helped wipe out a deadly disease in London -- and brought about a new reading of urban epidemics and public health.</description>
68
+ <shortsummary>Half the world's population lives in cities now; it's urgent that we understand them better</shortsummary>
69
+ <talks_description></talks_description>
70
+ <speakers_description>ADD when ready:&#13;
71
+ </speakers_description>
72
+ <slug>the_power_of_cities</slug>
73
+ <is_featured></is_featured>
74
+ </theme>
75
+ <theme>
76
+ <id>6</id>
77
+ <name>What's Next in Tech</name>
78
+ <description>The contemplation and, often, introduction of new technology is integral to TED: you might say it's embedded in our genetic code.&#13;
79
+ &#13;
80
+ Computer scientist &lt;a href="/index.php/talks/view/id/65"&gt;Jeff Han&lt;/a&gt; intends to reinvent computing by replacing traditional point-click user interfaces with dynamic touch screens. &lt;a href="/index.php/talks/view/id/195"&gt;Robert Full&lt;/a&gt; wants to enhance transit and robotics by studying the motion of animals whose system of locomotion can adapt to nearly any surface. And &lt;a href="/index.php/talks/view/id/193"&gt;Juan Enriquez&lt;/a&gt; discusses oil energy -- derived, ultimately, from ancient plants -- and wonders why we can't develop methods to "grow" energy as efficiently as we grow wheat.&#13;
81
+ &#13;
82
+ &lt;a href="/index.php/talks/view/id/129"&gt;Blaise Aguera y Arcas&lt;/a&gt; demonstrates his powerful new software, Photosynth, which fuses digital photographs from unrelated sources into fluid, three-dimensional tapestries of real environments. &lt;a href="/index.php/talks/view/id/142"&gt;Alan Russell&lt;/a&gt; wants to use bioengineered tissue to regenerate damaged body parts. And &lt;a href="/index.php/talks/view/id/72"&gt;Chris Anderson&lt;/a&gt; of &lt;i&gt;WIRED&lt;/i&gt; discusses how emerging technologies -- matched with the right business model -- can make an impact of perhaps surprising magnitude.</description>
83
+ <shortsummary>From reinventing computing to exploring new materials, a celebration of creativity and inventiveness</shortsummary>
84
+ <talks_description></talks_description>
85
+ <speakers_description></speakers_description>
86
+ <slug>what_s_next_in_tech</slug>
87
+ <is_featured></is_featured>
88
+ </theme>
89
+ <theme>
90
+ <id>7</id>
91
+ <name>Presentation Innovation</name>
92
+ <description>Great speakers hold the power to captivate and inspire. This collection highlights speakers who go one step further -- and innovate on the form itself.&#13;
93
+ &#13;
94
+ Doctor and researcher &lt;a href="/index.php/talks/view/id/92"&gt;Hans Rosling&lt;/a&gt;'s eye-catching statistics don't stand still: they mutate, morph and crackle with color. Medical illustrator &lt;a href="/index.php/talks/view/id/147"&gt;David Bolinsky&lt;/a&gt; takes us into the nano-scale workings of living cells with animated computer graphics that mesmerize. And Internet art wizard &lt;a href="/index.php/talks/view/id/144"&gt;Jonathan Harris&lt;/a&gt;' ongoing study of emotion in the blogosphere turns web stories into sunrays, whirlpools and fireworks.&#13;
95
+ &#13;
96
+ Don't miss &lt;a href="/index.php/talks/view/id/126"&gt;Blaise Aguera y Arcas&lt;/a&gt;' debut of Photosynth, an astonishing web application that can recognize the content of photographs and stitch them into three-dimensional tapestries. And make sure to catch computer scientist &lt;a href="/index.php/talks/view/id/65"&gt;Jeff Han&lt;/a&gt;'s enthusiastic demo of his new multi-touch user interface -- it will change the way we interact with computers.</description>
97
+ <shortsummary>Eye-opening ways to show stats, share ideas and captivate the crowd</shortsummary>
98
+ <talks_description></talks_description>
99
+ <speakers_description></speakers_description>
100
+ <slug>presentation_innovation</slug>
101
+ <is_featured></is_featured>
102
+ </theme>
103
+ <theme>
104
+ <id>9</id>
105
+ <name>Spectacular Performance</name>
106
+ <description>This collection of extraordinary dancers, actors, musicians, magicians and storytellers will bring both sides of your brain to life.&#13;
107
+ &#13;
108
+ Pianist &lt;a href="/index.php/talks/view/id/46"&gt;Jennifer Lin&lt;/a&gt;, just 14 at the time of her performance, confects spirited (and altogether unrehearsed) compositions from spur-of-the-moment audience suggestions. Jazz-inspired guitarist and singer &lt;a href="/index.php/talks/view/id/188"&gt;Raul Midon&lt;/a&gt; riles up 2007 TEDsters with songs about Google, technology, dreams and a child's fear of "invisible forces." And &lt;a href="/index.php/talks/view/id/158"&gt;Vusi Mahlasela&lt;/a&gt;, a crucial artistic voice during the fight against apartheid, shares his soulful, optimistic songs of protest and solidarity. (Be sure to watch his &lt;a href="/index.php/talks/view/id/169"&gt;encore&lt;/a&gt; performance.)&#13;
109
+ &#13;
110
+ &lt;a href="/index.php/talks/view/id/24"&gt;Pilobolus&lt;/a&gt;' smooth, organic choreography -- featuring unusual partnering and lifts -- blurs the lines between individual performers, creating a sense of dance-troupe-as-organism. And in a feat of agility and optical illusion, urban-inspired dancer &lt;a href="/index.php/talks/view/id/179"&gt;Kenichi Ebina&lt;/a&gt; teases and twirls a mischievous wisp of light.&#13;
111
+ &#13;
112
+ Also check out "mathemagician" &lt;a href="/index.php/talks/view/id/199"&gt;Arthur Benjamin&lt;/a&gt;'s massive on-the-fly multiplications -- calculations so fast you might think it's magic. Or wordsmith &lt;a href="/index.php/talks/view/id/148"&gt;Rives&lt;/a&gt;' observations on the eerie coincidences surrounding that most surreal of hours: 4 a.m. And don't miss veteran TEDster &lt;a href="/index.php/talks/view/id/144"&gt;Tom Rielly&lt;/a&gt;'s comic send-up of the 2006 conference: not even our sponsors are safe!</description>
113
+ <shortsummary>Actors and acrobats, musicians and magicians -- sit back and enjoy the show!</shortsummary>
114
+ <talks_description></talks_description>
115
+ <speakers_description></speakers_description>
116
+ <slug>spectacular_performance</slug>
117
+ <is_featured></is_featured>
118
+ </theme>
119
+ <theme>
120
+ <id>10</id>
121
+ <name>Architectural Inspiration</name>
122
+ <description>TED has a love affair with buildings. Big or small, we cherish the inspired visions behind them. But &lt;a href="/index.php/talks/view/id/49"&gt;Joshua Prince-Ramus&lt;/a&gt;, architect of the Seattle Public Library, would argue: It isn't a stroke of genius that creates a great building; rather, it's a rational, collaborative, bottom-up approach. &lt;a href="/index.php/talks/view/id/13"&gt;Frank Gehry&lt;/a&gt;, consummate "starchitect," on the other hand, sees each building as the product of a strong individual vision.&#13;
123
+ &#13;
124
+ Other pioneers are pushing architecture in radically new directions. &lt;a href="/index.php/talks/view/id/54"&gt;Cameron Sinclair&lt;/a&gt; champions design for humanitarian causes, and his new Open Architecture Network could revolutionize the pro bono project. Sustainability guru &lt;a href="/index.php/talks/view/id/104"&gt;William McDonough&lt;/a&gt; is bringing green design to the Rust Belt and to brand-new megacities in China. And then there's the delightful and uncategorizable &lt;a href="/index.php/talks/view/id/198"&gt;Ron Eglash&lt;/a&gt;, who found math in the design of African villages.</description>
125
+ <shortsummary>Architects present some of their most fascinating projects</shortsummary>
126
+ <talks_description></talks_description>
127
+ <speakers_description></speakers_description>
128
+ <slug>architectural_inspiration</slug>
129
+ <is_featured></is_featured>
130
+ </theme>
131
+ <theme>
132
+ <id>12</id>
133
+ <name>TED Prize Winners</name>
134
+ <description>Every year, TED names three new recipients for the TED Prize. These are the winners' acceptance talks, where they reveal their wish to change the world. &#13;
135
+ &#13;
136
+ &lt;a href="http://www.tedprize.org/2009-winners/" target="_blank"&gt;Read about the 2009 winners &gt;&gt;&lt;/a&gt;&#13;
137
+ &#13;
138
+ From 2005, &lt;b&gt;Bono&lt;/b&gt; shares a call to action on Africa; photographer &lt;b&gt;Edward Burtynsky&lt;/b&gt; shows jaw-dropping photos of industrial landscapes and asks for help teaching the next generation to be green; and medical inventor &lt;b&gt;Robert Fischell&lt;/b&gt; wishes for design help for next-generation health tools.&#13;
139
+ &#13;
140
+ From 2006, architect &lt;b&gt;Cameron Sinclair&lt;/b&gt; sets out a plan for sharing open-source design for humanity; filmmaker &lt;b&gt;Jehane Noujaim&lt;/b&gt; wishes to tap the power of film to strengthen tolerance and compassion while uniting millions of people to build a better future; and &lt;b&gt;Dr. Larry Brilliant&lt;/b&gt; asks for the TED community's help in building a global early-warning system to find and contain new pandemics.&#13;
141
+ &#13;
142
+ From 2007, &lt;b&gt;Bill Clinton&lt;/b&gt; talks about how we can help build a health care system in Rwanda; &lt;b&gt;James Nachtwey&lt;/b&gt; shows searing photographs of war and conflict; and &lt;b&gt;E.O. Wilson&lt;/b&gt; shares his vision for the Encyclopedia of Life.</description>
143
+ <shortsummary>Acceptance talks from each of the three annual TED Prize winners</shortsummary>
144
+ <talks_description></talks_description>
145
+ <speakers_description></speakers_description>
146
+ <slug>ted_prize_winners</slug>
147
+ <is_featured></is_featured>
148
+ </theme>
149
+ <theme>
150
+ <id>14</id>
151
+ <name>Inspired by Nature</name>
152
+ <description>Who can fail to marvel at the shape of a leaf, the sleek power of a cheetah, the dance of two bodies connecting? These speakers celebrate and take inspiration from the natural world -- in the design of a new chair or in a vision for living lightly upon the Earth. &#13;
153
+ &#13;
154
+ &lt;b&gt;Janine Benyus&lt;/b&gt; talks about biomimicry, the practice of copying nature's own engineers, while designers &lt;b&gt;Ross Lovegrove&lt;/b&gt; and &lt;b&gt;Paul Bennett&lt;/b&gt; discuss the practice of solving design problems by reducing them to evolutionary principles. And &lt;b&gt;Alex Steffen&lt;/b&gt; from Worldchanging.com shares his bright-green vision for a society in harmony. &#13;
155
+ &#13;
156
+ For your own shot of inspiration, take a look at the work of photographer &lt;b&gt;Frans Lanting&lt;/b&gt;, and his spine-tingling images of natural grace.</description>
157
+ <shortsummary>Who can fail to marvel at the natural world? A collection of talks in praise of nature</shortsummary>
158
+ <talks_description></talks_description>
159
+ <speakers_description></speakers_description>
160
+ <slug>inspired_by_nature</slug>
161
+ <is_featured></is_featured>
162
+ </theme>
163
+ <theme>
164
+ <id>15</id>
165
+ <name>A Greener Future?</name>
166
+ <description>The environmental debate has traditionally been characterized as a conflict between economic progress and preservation of the planet. Most TED speakers, however, insist that we can have both -- provided we're smart about it.&#13;
167
+ &#13;
168
+ &lt;a href="/index.php/talks/view/id/1"&gt;Al Gore&lt;/a&gt;, the world's leading voice on the climate crisis, argues that the simple steps we might take to avert disaster would also fuel the economy. Architect &lt;a href="/index.php/talks/view/id/104"&gt;William McDonough&lt;/a&gt; shows how the power of great design -- working on entire systems rather than local components -- can foster an abundant, sustainable future. And &lt;a href="/index.php/talks/view/id/53"&gt;Majora Carter&lt;/a&gt; discusses her work to bring green spaces to the blighted South Bronx.&#13;
169
+ &#13;
170
+ &lt;a href="/index.php/talks/view/id/56"&gt;Edward Burtynsky&lt;/a&gt;'s eerily pretty photographs of environmental damage and economic development document humanity's ever-expanding footprint. And biologist &lt;a href="/index.php/talks/view/id/83"&gt;E.O. Wilson&lt;/a&gt; shares his grandest wish -- that the human community band together to save life on Earth.</description>
171
+ <shortsummary>These pioneers of green are building a smart and sustainable future</shortsummary>
172
+ <talks_description></talks_description>
173
+ <speakers_description></speakers_description>
174
+ <slug>a_greener_future</slug>
175
+ <is_featured></is_featured>
176
+ </theme>
177
+ <theme>
178
+ <id>16</id>
179
+ <name>Tales of Invention</name>
180
+ <description>TED has always loved a good creation story. No matter the scale -- kitchen, continent, or solar system -- invention grants us access to the frontiers of our understanding.&#13;
181
+ &#13;
182
+ Legendary designer &lt;a href="/index.php/talks/view/id/197"&gt;Philippe Starck&lt;/a&gt;'s lively ruminations on his own creative process suggest how the patterns of a civilization might affect, say, the design of a citrus juicer. &lt;a href="/index.php/talks/view/id/190"&gt;Jan Chipchase&lt;/a&gt; investigates the worldwide impact of mobile phones -- and the impact of culture on next-generation mobile technology. Explorer and adventurer &lt;a href="/index.php/talks/view/id/141"&gt;Bill Stone&lt;/a&gt;, meanwhile, fires up a rapt audience with his ambitious plan to harvest energy from the moon.&#13;
183
+ &#13;
184
+ Copyright lawyer &lt;a href="/index.php/talks/view/id/187"&gt;Larry Lessig&lt;/a&gt; gives a brief history of creative freedom and copyright, and talks about how contemporary copyright law could strangle future artistic invention and interpretation. &lt;a href="/index.php/talks/view/id/153"&gt;William Kamkwamba&lt;/a&gt; tells how he built a windmill from scrap metal when he was 14 years old. And &lt;a href="/index.php/talks/view/id/2"&gt;Amy Smith&lt;/a&gt; shares her transformative low-tech tools for saving life in the developing world.</description>
185
+ <shortsummary>Inventive souls who create something from nothing inspire us to dream bigger</shortsummary>
186
+ <talks_description></talks_description>
187
+ <speakers_description></speakers_description>
188
+ <slug>tales_of_invention</slug>
189
+ <is_featured></is_featured>
190
+ </theme>
191
+ <theme>
192
+ <id>17</id>
193
+ <name>Art Unusual</name>
194
+ <description>&lt;em&gt;Image: Maira Kalman&lt;/em&gt;&#13;
195
+ &#13;
196
+ Provocative, multidisciplinary and often technology-driven, new modes of art and performance defy their traditional definitions. These Talks celebrate artistic innovation as well as creative cross-pollination.&#13;
197
+ &#13;
198
+ Game designer &lt;a href="/index.php/talks/view/id/146"&gt;Will Wright&lt;/a&gt; constructs virtual worlds in which players can make creatures of their own. The dancers of &lt;a href="/index.php/talks/view/id/24"&gt;Pilobolus&lt;/a&gt; blur the boundary between two bodies, and &lt;a href="/index.php/talks/view/id/64"&gt;Eve Ensler&lt;/a&gt; crosses a few boundaries herself by speaking bluntly about the body. &#13;
199
+ &#13;
200
+ &lt;a href="/index.php/talks/view/id/14"&gt;Golan Levin&lt;/a&gt; uses software to create experimental sonic and visual artworks -- a symphony of ringtones, for example. &lt;a href="/index.php/talks/view/id/32"&gt;Vik Muniz&lt;/a&gt;'s artwork -- made of chocolate, confetti and clouds -- challenges our perceptions and teases our imaginations. And &lt;a href="/index.php/talks/view/id/50"&gt;Stefan Sagmeister&lt;/a&gt; shows how a little flair and an ardent attention to detail can do for design something indispensable: make people happy.</description>
201
+ <shortsummary>Make room in the canon for this new breed of artists</shortsummary>
202
+ <talks_description></talks_description>
203
+ <speakers_description></speakers_description>
204
+ <slug>art_unusual</slug>
205
+ <is_featured></is_featured>
206
+ </theme>
207
+ <theme>
208
+ <id>18</id>
209
+ <name>To Boldly Go ...</name>
210
+ <description>At TED, the spirit of adventure runs deep. An explorer's tale can move us, enrich our knowledge and awaken the wanderer within.&#13;
211
+ &#13;
212
+ Through pictures and words, we accompany &lt;a href="/index.php/talks/view/id/89"&gt;Ben Saunders&lt;/a&gt; on his incredible journey to the North Pole -- on skis, alone. Planetary scientist &lt;a href="/index.php/talks/view/id/178"&gt;Carolyn Porco&lt;/a&gt; takes us along the spacecraft &lt;i&gt;Cassini&lt;/i&gt;'s voyage to Saturn and its mysterious moons. And adventurer &lt;a href="/index.php/talks/view/id/141"&gt;Bill Stone&lt;/a&gt; talks about his exploration of the deepest caverns on Earth -- and how his experiences there will help his mission to discover life in the outer reaches of the solar system.</description>
213
+ <shortsummary>Exploration at the edge of the known universe</shortsummary>
214
+ <talks_description></talks_description>
215
+ <speakers_description></speakers_description>
216
+ <slug>to_boldly_go</slug>
217
+ <is_featured></is_featured>
218
+ </theme>
219
+ <theme>
220
+ <id>19</id>
221
+ <name>The Rise of Collaboration</name>
222
+ <description>Yochai Benkler dubs it 'the wealth of networks." Howard Rheingold's term is "smart mobs." It's the idea of technology-enabled collaboration … and it's making us all smarter.&#13;
223
+ &#13;
224
+ The open-source movement embodies this spirit of collaboration. &lt;a href="/index.php/talks/view/id/37"&gt;Jimmy Wales&lt;/a&gt; tells the story of perhaps the movement's most famous example, Wikipedia -- while &lt;a href="/index.php/talks/view/id/25"&gt;Richard Baraniuk&lt;/a&gt; envisions a free global education system to which thousands of teachers could contribute. &lt;a href="/index.php/talks/view/id/63"&gt;Charles Leadbeater&lt;/a&gt; gives examples of collaborative innovation that predate the Web. And 2006 TED Prize winner &lt;a href="/index.php/talks/view/id/54"&gt;Cameron Sinclair&lt;/a&gt; wants to shelter the world -- by providing an online platform for open-source architecture.&#13;
225
+ &#13;
226
+ And &lt;a href="http://www.ted.com/index.php/talks/view/id/145"&gt;Deborah Gordon&lt;/a&gt; shows us the inspiration for all this: the desert anthill.</description>
227
+ <shortsummary>Call it "hive mind," "smart mobs" or the "wisdom of crowds" ... it's making us all smarter</shortsummary>
228
+ <talks_description></talks_description>
229
+ <speakers_description>There are many variations on the theme, each with its own catchphrase. A decade ago Kevin Kelly wrote about "the hive mind." Yochai Benkler dubs it 'the wealth of networks." Howard Rheingold's term is "smart mobs." James Surowiecki called it "the wisdom of crowds."</speakers_description>
230
+ <slug>the_rise_of_collaboration</slug>
231
+ <is_featured>1</is_featured>
232
+ </theme>
233
+ <theme>
234
+ <id>20</id>
235
+ <name>Rethinking Poverty</name>
236
+ <description>The catchphrase goes, "Make poverty history." But how? These speakers' innovative ideas may convince you to forget the traditional models -- grants, aid, charity -- and consider business, technology and trade instead.&#13;
237
+ &#13;
238
+ &lt;a href="/index.php/talks/view/id/157"&gt;Jacqueline Novogratz&lt;/a&gt;, founder of the Acumen Fund, argues for a combination of philanthropy and investment -- highlighting personal dignity and choice as the path to progress. Academic and policymaker &lt;a href="/index.php/talks/view/id/3"&gt;Ashraf Ghani&lt;/a&gt;, meanwhile, urges us to rethink capital in terms of security, social connectivity and education. And &lt;a href="/index.php/talks/view/id/140"&gt;Hans Rosling&lt;/a&gt;'s dazzling, animated statistics reveal the true discrepancies between emerging and developed economies. &#13;
239
+ &#13;
240
+ &lt;a href="/index.php/talks/view/id/79"&gt;Iqbal Quadir&lt;/a&gt; explains how he improved a Bangladeshi business model -- by replacing cows with a new component: mobile phones. &lt;a href="/index.php/talks/view/id/53"&gt;Majora Carter&lt;/a&gt; details her efforts to bring green space to the blighted South Bronx, offering an eye-opening look at how flawed urban policy allows ghettos to exist. &lt;a href="/index.php/talks/view/id/127"&gt;Ngozi Okonjo-Iweala&lt;/a&gt;, meanwhile, lets us in on a secret: business in impoverished countries is viable, and a "few smart people" have already made millions of dollars.</description>
241
+ <shortsummary>Fresh ideas for making poverty history</shortsummary>
242
+ <talks_description></talks_description>
243
+ <speakers_description></speakers_description>
244
+ <slug>rethinking_poverty</slug>
245
+ <is_featured></is_featured>
246
+ </theme>
247
+ <theme>
248
+ <id>21</id>
249
+ <name>Is There a God?</name>
250
+ <description>While TED has no official stance on religion, speakers do occasionally venture (bravely) into this contentious territory.&#13;
251
+ &#13;
252
+ At TED's 2006 conference, best-selling author and pastor &lt;a href="/index.php/talks/view/id/71"&gt;Rick Warren&lt;/a&gt; argued that an exceptional life must be driven by spiritual purpose. But he was immediately challenged by atheist philosopher &lt;a href="/index.php/talks/view/id/94"&gt;Dan Dennett&lt;/a&gt;, who argued that Warren's claims couldn't be true. (If you're feeling courageous, you can join this ongoing debate on our forum, at right.)</description>
253
+ <shortsummary>Is there any bigger question?</shortsummary>
254
+ <talks_description></talks_description>
255
+ <speakers_description></speakers_description>
256
+ <slug>is_there_a_god</slug>
257
+ <is_featured></is_featured>
258
+ </theme>
259
+ <theme>
260
+ <id>22</id>
261
+ <name>Master Storytellers</name>
262
+ <description>Nowhere has the timeless power of narrative been more apparent than at TED: here, storytellers both professional and provisional use the personal tale to entertain, educate and inspire to action.&#13;
263
+ &#13;
264
+ &lt;a href="/index.php/talks/view/id/60"&gt;Anna Deavere Smith&lt;/a&gt; replicates the spoken styles of true-to-life American characters with her startling monologues -- "organic poetry" extracted verbatim from interviews. Whip-smart &lt;a href="/index.php/talks/view/id/108"&gt;Rives&lt;/a&gt; and razor-sharp &lt;a href="/index.php/talks/view/id/86"&gt;Julia Sweeney&lt;/a&gt; revel in the rhythmic power of the spoken word. And &lt;a href="/index.php/talks/view/id/144"&gt;Jonathan Harris&lt;/a&gt; uses web technology to collect, catalog and broadcast the emotions and aspirations of thousands of people -- instantaneously.&#13;
265
+ &#13;
266
+ &lt;a href="/index.php/talks/view/id/189"&gt;Sherwin Nuland&lt;/a&gt; illuminates the history and potential of electroshock therapy through an emotional, personal account of depression. &lt;a href="/index.php/talks/view/id/69"&gt;Wade Davis&lt;/a&gt;’ passionate talk on vanishing world cultures simply grabs you from the first instant. And you’ll never forget &lt;a href="/index.php/talks/view/id/89"&gt;Ben Saunders&lt;/a&gt;’ rousing recollections of skiing to the North Pole -- alone.&#13;
267
+ &#13;
268
+ If these stories inspire you to tell your own, consider &lt;a href="http://www.pangeaday.org/"&gt;submitting a film to Pangea Day &gt;&gt;&lt;/a&gt;</description>
269
+ <shortsummary>These folks know how to spin a good yarn</shortsummary>
270
+ <talks_description></talks_description>
271
+ <speakers_description></speakers_description>
272
+ <slug>master_storytellers</slug>
273
+ <is_featured></is_featured>
274
+ </theme>
275
+ <theme>
276
+ <id>23</id>
277
+ <name>Bold Predictions, Stern Warnings</name>
278
+ <description>These passionate, fearless speakers don’t mince words. They identify the most difficult problems and propose bold solutions.&#13;
279
+ &#13;
280
+ Climatologist &lt;a href="/index.php/talks/view/id/192"&gt;David Keith&lt;/a&gt; considers the dramatic and even dangerous ways in which global warming might be reversed in a hurry -- and who ought to regulate such action. On the same issue, economist &lt;a href="/index.php/talks/view/id/62"&gt;Bjorn Lomborg&lt;/a&gt; delivers his controversial but no less important thesis: there are simply bigger problems to worry about. And characteristically acerbic &lt;a href="/index.php/talks/view/id/121"&gt;James Howard Kunstler&lt;/a&gt; wants to stave off a hypothetical "long emergency" -- by encouraging developers to build public spaces worth caring about.&#13;
281
+ &#13;
282
+ Other speakers see more reason for optimism. Maverick gerontologist &lt;a href="/index.php/talks/view/id/39"&gt;Aubrey de Grey&lt;/a&gt; investigates the notion of indefinite life extension, while inventor &lt;a href="/index.php/talks/view/id/38"&gt;Ray Kurzweil&lt;/a&gt; predicts an accelerated future where technology and humanity advance as one. And &lt;a href="/index.php/talks/view/id/68"&gt;Robert Wright&lt;/a&gt;’s dry delivery somehow highlights his inspired conviction that human history has a direction -- an "arrow" -- and that, from here, things can only get better.</description>
283
+ <shortsummary>Speakers who aren't afraid to go negative</shortsummary>
284
+ <talks_description></talks_description>
285
+ <speakers_description></speakers_description>
286
+ <slug>bold_predictions_stern_warnings</slug>
287
+ <is_featured></is_featured>
288
+ </theme>
289
+ </themes>
290
+ <counts>
291
+ <this>20</this>
292
+ <total>47</total>
293
+ </counts>
294
+ </response>
@@ -0,0 +1,38 @@
1
+ unless ENV['CI']
2
+ require 'simplecov'
3
+ SimpleCov.start do
4
+ add_filter "/spec"
5
+ end
6
+ end
7
+
8
+ require 'ted_api'
9
+ require 'rspec'
10
+ require 'webmock/rspec'
11
+
12
+ def a_get(url)
13
+ a_request(:get, ted_url(url))
14
+ end
15
+
16
+ def a_post(url)
17
+ a_request(:post, ted_url(url))
18
+ end
19
+
20
+ def stub_get(url)
21
+ stub_request(:get, ted_url(url))
22
+ end
23
+
24
+ def stub_post(url)
25
+ stub_request(:post, ted_url(url))
26
+ end
27
+
28
+ def fixture_path
29
+ File.expand_path("../fixtures", __FILE__)
30
+ end
31
+
32
+ def fixture(file)
33
+ File.new(fixture_path + '/' + file)
34
+ end
35
+
36
+ def ted_url(url)
37
+ "https://api.ted.com/#{@client.api_version}/#{url}"
38
+ end
@@ -0,0 +1,46 @@
1
+ require 'spec_helper'
2
+
3
+ describe TedApi::Client::Countries do
4
+
5
+ after(:each) do
6
+ TedApi.reset
7
+ end
8
+
9
+ # JSON Tests:
10
+
11
+ it "should list countries in json" do
12
+ @client = TedApi::Client.new(api_key: 'foo')
13
+ stub_get("countries.json?api-key=foo").
14
+ to_return(:body => fixture("countries.json"))
15
+ response = @client.countries
16
+ response.states.first.state.name.should == 'Afghanistan'
17
+ end
18
+
19
+ it "should return a specific Ted event in json" do
20
+ @client = TedApi::Client.new(api_key: 'foo')
21
+ stub_get("countries/1.json?api-key=foo").
22
+ to_return(:body => fixture("country.json"))
23
+ response = @client.countries('1')
24
+ response.state.name.should == 'Afghanistan'
25
+ end
26
+
27
+ # XML Tests:
28
+
29
+ it "should list Ted events in xml" do
30
+ @client = TedApi::Client.new(api_key: 'foo', response_format: 'xml')
31
+ stub_get("countries.xml?api-key=foo").
32
+ to_return(:body => fixture("countries.xml"))
33
+ response = @client.countries
34
+ response.counts.total.should == "248"
35
+ end
36
+
37
+ it "should return a specific Ted event in xml" do
38
+ @client = TedApi::Client.new(api_key: 'foo', response_format: 'xml')
39
+ stub_get("countries/1.xml?api-key=foo").
40
+ to_return(:body => fixture("country.xml"))
41
+ response = @client.countries('1')
42
+ response.state.name.should == 'Afghanistan'
43
+ end
44
+
45
+
46
+ end
@@ -0,0 +1,46 @@
1
+ require 'spec_helper'
2
+
3
+ describe TedApi::Client::Events do
4
+
5
+ after(:each) do
6
+ TedApi.reset
7
+ end
8
+
9
+ # JSON Tests:
10
+
11
+ it "should list Ted events in json" do
12
+ @client = TedApi::Client.new(api_key: 'foo')
13
+ stub_get("events.json?api-key=foo").
14
+ to_return(:body => fixture("events.json"))
15
+ response = @client.events
16
+ response.counts.total.should == 211
17
+ end
18
+
19
+ it "should return a specific Ted event in json" do
20
+ @client = TedApi::Client.new(api_key: 'foo')
21
+ stub_get("events/1.json?api-key=foo").
22
+ to_return(:body => fixture("event.json"))
23
+ response = @client.events('1')
24
+ response.event.name.should == 'TED2008'
25
+ end
26
+
27
+ # XML Tests:
28
+
29
+ it "should list Ted events in xml" do
30
+ @client = TedApi::Client.new(api_key: 'foo', response_format: 'xml')
31
+ stub_get("events.xml?api-key=foo").
32
+ to_return(:body => fixture("events.xml"))
33
+ response = @client.events
34
+ response.counts.total.should == "211"
35
+ end
36
+
37
+ it "should return a specific Ted event in xml" do
38
+ @client = TedApi::Client.new(api_key: 'foo', response_format: 'xml')
39
+ stub_get("events/1.xml?api-key=foo").
40
+ to_return(:body => fixture("event.xml"))
41
+ response = @client.events('1')
42
+ response.event.name.should == 'TED2008'
43
+ end
44
+
45
+
46
+ end