Skip to content

Instantly share code, notes, and snippets.

@aaronpearce
Created April 25, 2011 20:50
Show Gist options
  • Save aaronpearce/941191 to your computer and use it in GitHub Desktop.
Save aaronpearce/941191 to your computer and use it in GitHub Desktop.
Obj-C Message Folder Grabber for deviantART
// inboxId is retrieved before hand.
int maxItems = 20;
NSString *queryString = [NSString stringWithFormat:@"?
c[]=MessageCenter;get_views;%@,oq:fb_comments:0:%@:f&
c[]=MessageCenter;get_views;%@,oq:fb_replies:0:%@:f&
c[]=MessageCenter;get_views;%@,oq:notes_unread:0:%@:f&
c[]=MessageCenter;get_views;%@,oq:notices:0:%@:f&
c[]=MessageCenter;get_views;%@,oq:contests:0:%@:f&
c[]=MessageCenter;get_views;%@,oq:fb_activity:0:%@:f&
c[]=MessageCenter;get_views;%@,oq:correspondence:0:%@:f&
c[]=MessageCenter;get_views;%@,oq:devwatch:0:%@:f:tg=deviations&
c[]=MessageCenter;get_views;%@,oq:devwatch:0:%@:f:tg=news&
c[]=MessageCenter;get_views;%@,oq:devwatch:0:%@:f:tg=journals&
c[]=MessageCenter;get_views;%@,oq:devwatch:0:%@:f:tg=polls",
inboxId, maxItems, inboxId, maxItems, inboxId, maxItems, inboxId, maxItems, inboxId, maxItems, inboxId, maxItems, inboxId, maxItems, inboxId, maxItems, inboxId, maxItems, inboxId, maxItems, inboxId, maxItems];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment