diff options
Diffstat (limited to 'Juick/APIClient.m')
-rw-r--r-- | Juick/APIClient.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Juick/APIClient.m b/Juick/APIClient.m index ecaf536..3190659 100644 --- a/Juick/APIClient.m +++ b/Juick/APIClient.m @@ -29,6 +29,9 @@ self.manager = [[AFHTTPSessionManager alloc] initWithBaseURL:[NSURL URLWithString:@"https://api.juick.com"]]; self.manager.requestSerializer = [AFJSONRequestSerializer new]; self.backgroundQueue = [NSOperationQueue new]; + self.dateFormatter = [[NSDateFormatter alloc] init]; + self.dateFormatter.dateFormat = @"yyyy-MM-dd HH:mm:ss"; + [self.dateFormatter setTimeZone:[NSTimeZone timeZoneWithName:@"UTC"]]; } return self; } @@ -104,6 +107,10 @@ return @"/messages"; } ++(NSString *) discussionsUrl { + return @"/messages/discussions"; +} + +(NSString *) threadUrl { return @"/thread"; } |