testing out follow popular

This commit is contained in:
Roy Yang 2012-08-12 20:19:07 -07:00
parent 221dc7eab0
commit 417ef5011b
3 changed files with 12 additions and 4 deletions

View file

@ -23,7 +23,6 @@
- (IBAction)tapPopularButton:(id)sender;
- (void)finishAddSite:(ASIHTTPRequest *)request;
- (void)finishAddPopular:(ASIHTTPRequest *)request;
- (void)requestFailed:(ASIHTTPRequest *)request;
- (void)addSite:(NSString *)siteUrl;
- (void)addPopular;

View file

@ -7,6 +7,7 @@
//
#import "FirstTimeUserAddNewsBlurViewController.h"
#import "NewsBlurViewController.h"
@implementation FirstTimeUserAddNewsBlurViewController
@ -141,7 +142,15 @@
}
- (void)finishAddSite:(ASIHTTPRequest *)request {
NSLog(@"request: %@", request);
NSString *responseString = [request responseString];
NSData *responseData=[responseString dataUsingEncoding:NSUTF8StringEncoding];
NSError *error;
NSDictionary *results = [NSJSONSerialization
JSONObjectWithData:responseData
options:kNilOptions
error:&error];
NSLog(@"results are %@", results);
[appDelegate.feedsViewController fetchFeedList:NO];
}
@end

View file

@ -15,8 +15,8 @@
// #define BACKGROUND_REFRESH_SECONDS -5
#define BACKGROUND_REFRESH_SECONDS -10*60
#define NEWSBLUR_URL [NSString stringWithFormat:@"nb.local.com"]
// #define NEWSBLUR_URL [NSString stringWithFormat:@"www.newsblur.com"]
// #define NEWSBLUR_URL [NSString stringWithFormat:@"nb.local.com"]
#define NEWSBLUR_URL [NSString stringWithFormat:@"www.newsblur.com"]
#define NEWSBLUR_LINK_COLOR 0x405BA8
#define NEWSBLUR_HIGHLIGHT_COLOR 0xd2e6fd