- Fix AccessToken ExpireDate
This commit is contained in:
1 parent
c23b1e0e38
commit
501e408aea
2 files changed
+11
-6
No files matched your search
@@ -55,24 +55,25 @@
|
||||
|
||||
NSLog(@"%@",[accessToken JSONObject]);
|
||||
|
||||
/*[[[PNObjectConfig sharedInstance] manager] GET:[[[PNObjectConfig sharedInstance] PNObjEndpoint] stringByAppendingString:[PNAccessToken PNObjClassName]] parameters:nil progress:^(NSProgress * _Nonnull downloadProgress) {
|
||||
|
||||
[[[PNObjectConfig sharedInstance] manager] GET:[[[PNObjectConfig sharedInstance] PNObjEndpoint] stringByAppendingString:[PNAccessToken PNObjClassName]] parameters:nil progress:^(NSProgress * _Nonnull downloadProgress) {
|
||||
|
||||
} success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
|
||||
} success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
|
||||
|
||||
PNAccessToken *accessToken = [[PNAccessToken alloc] initWithJSON:responseObject];
|
||||
|
||||
NSLog(@"%@",[accessToken JSONObject]);
|
||||
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
[accessToken saveLocally];
|
||||
[accessToken saveLocally];
|
||||
});
|
||||
//[accessToken saveLocally];
|
||||
|
||||
} failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
|
||||
} failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
|
||||
|
||||
NSLog(@"%@",error);
|
||||
|
||||
}];*/
|
||||
}];
|
||||
//NSLog(@"%@",userDictionary);
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user