我想处理来自Magento的API调用,我尝试了lognllc / LogNMagento。它不能满足我的需求,所以请为iOS 8建议任何其他pod或库来管理Magento API调用。提前感谢。
-(BOOL)authenticationUsingUsername:(NSString *)username andPassword:(NSString *)password
{
Magento.service.storeID = @1;
[Magento.service renewSession];
[Magento call:@[@"ios_core.login",@{
@"username" : username ,
@"password" : password}] success:^(AFHTTPRequestOperation *operation, id responseObject)
{
resultantData = [[NSDictionary alloc]init];
resultantData = responseObject;
}
failure:^(AFHTTPRequestOperation *operation, NSError *error) { isValid = NO;
NSLog(@"error %@", error.localizedDescription);
}];