Skip to content

Instantly share code, notes, and snippets.

@thesmith
Created July 18, 2010 20:21
Show Gist options
  • Save thesmith/480675 to your computer and use it in GitHub Desktop.
Save thesmith/480675 to your computer and use it in GitHub Desktop.
ContentQuery query = query()
.equalTo(Attributes.PLAYLIST_URI, "http://ref.atlasapi.org/hotness/twitter")
.equalTo(Attributes.ITEM_IS_LONG_FORM, true)
.build();
List<Item> mentionedItems = client.items(query);
ContentQuery query = query()
.searchFor(Attributes.BRAND_TITLE, searchText)
.build();
List<Brand> serachResults = client.brands(query);
ContentQuery query = query()
.equalTo(Attributes.PLAYLIST_URI, "http://ref.atlasapi.org/hotness/twitter")
.equalTo(Attributes.ITEM_IS_LONG_FORM, true)
.equalTo(Attributes.ITEM_GENRE, "http://ref.atlasapi.org/genres/atlas/news")
.build();
List<Item> mentionedItems = client.items(query);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment