Complete Data Retrieval, Combinations

Multiple 'layer' parameters can be sent by simply putting a comma between them: 'layer=meta,text' or layer=short,text'. This results in all of the data requested being returned in the same line, so you would first split them by a pipe, then a second split by a tilde. The first element of each segment is the layer_code, so inspecting the first four characters will tell you which segment you're working with. Splitting each of these segments by an asterisk will get each of the elements.

NOTE: the order in which the layer strings occur does not affect the output order. 'layer=meta,text' will have the same result as 'layer=text,meta'. The output order is always: Header, Meta, Other, Low Verbosity, High Verbosity

Example Link:

http://api.parfait.snarkybox.com/reuters?feed=topnews&layer=head,meta,other,low&items=3

What that link returns will look like this if viewed in a browser:

hd*reuters***3**topnews*head,meta,other,low*20141116*1115*68.100.18.139*2014.11.16.12~|mt*Reuters: Top News*http://www.reuters.com*en-us*Sun, 16 Nov 2014 15:30:22 GMT*Sun, 16 Nov 2014 15:30:22 GMT*5*Reuters: Top News*http://www.reuters.com/resources_v2/images/reuters125.png*http://www.reuters.com~|ot*Reuters.com is your source for breaking news, business, financial and investing news, including personal finance and stocks. Reuters is the leading global provider of news, financial information and technology solutions to the world's media, financial institutions, businesses and individuals.*All rights reserved. Users may download and print extracts of content from this website for their own personal and non-commercial use only. Republication or redistribution of Reuters content, including by framing or similar means, is expressly prohibited without the prior written consent of Reuters. Reuters and the Reuters sphere logo are registered trademarks or trademarks of the Reuters group of companies around the world. © Reuters 2014*|lo*00*G20 commits to higher growth, fight climate change; Russia isolated over Ukraine*http://feeds.reuters.com/r/reuters/topNews/3/7FiimA47mKA/story01.htm*topNews*Sun, 16 Nov 2014 15:25:54 GMT~lo*01*Islamic State claims to have beheaded U.S. hostage Kassig*http://feeds.reuters.com/r/reuters/topNews/3/aFHvewi3Mok/story01.htm*topNews*Sun, 16 Nov 2014 15:06:58 GMT~lo*02*U.S. hospital says Sierra Leone doctor with Ebola extremely critical*http://feeds.reuters.com/r/reuters/topNews/3/_WJyVT5LVZs/story01.htm*topNews*Sun, 16 Nov 2014 14:56:38 GMT~|