summaryrefslogtreecommitdiff
path: root/Juick/APIClient.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-03 21:33:11 +0300
committerGravatar Vitaly Takmazov2018-03-03 21:33:11 +0300
commit5d0e97b3c1a1910a036f455b67205bc5eece1c29 (patch)
tree5878f990e43ac5b2f163764bfa7f9226a962b8f3 /Juick/APIClient.m
parent3e0b7455926477ee5cce1233bf1bf1d6f2bd63f8 (diff)
discussions
Diffstat (limited to 'Juick/APIClient.m')
-rw-r--r--Juick/APIClient.m7
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";
}