是否有任何pod或Library用于处理iOS中的Magento API调用

时间:2015-07-07 06:49:19

标签: objective-c magento ios7 cocoapods

我想处理来自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);
}];

0 个答案:

没有答案