summaryrefslogtreecommitdiff
path: root/Juick/Model/Message.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-03-27 02:50:06 +0300
committerGravatar Vitaly Takmazov2017-06-28 21:28:48 +0300
commitc5888b864756cc38e94f81850f52687cb7dd2c0c (patch)
tree1a861b1eb1161d133efdc1a35e68a343c2c03889 /Juick/Model/Message.m
parent9fd3a914fee6c22d7d7148ca100df72aa7cfc74e (diff)
push notifications
Diffstat (limited to 'Juick/Model/Message.m')
-rw-r--r--Juick/Model/Message.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Juick/Model/Message.m b/Juick/Model/Message.m
index a7934ac..4a6e96c 100644
--- a/Juick/Model/Message.m
+++ b/Juick/Model/Message.m
@@ -25,6 +25,7 @@
+(void) pullNextFromPath:(NSString *)path params:(NSDictionary *) params callback:(void(^)(NSArray *))callback {
AFHTTPSessionManager *manager = [APIClient sharedClient].manager;
if ([[PDKeychainBindings sharedKeychainBindings] stringForKey:@"com.juick.username"] != nil) {
+ manager.requestSerializer = [AFJSONRequestSerializer serializer];
[manager.requestSerializer setAuthorizationHeaderFieldWithUsername:[[PDKeychainBindings sharedKeychainBindings] stringForKey:@"com.juick.username"] password:[[PDKeychainBindings sharedKeychainBindings] stringForKey:@"com.juick.password"]];
}
[manager GET:path parameters:params progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {