Skip to content

Commit

Permalink
Update DIOSView.m
Browse files Browse the repository at this point in the history
  • Loading branch information
meSte committed Apr 17, 2012
1 parent f44a53d commit ab7f9ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DIOSView.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@
@implementation DIOSView
- (void)viewGet:(NSDictionary *)params success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error)) failure {
NSMutableString *path = [NSMutableString stringWithFormat:@"%@/%@/%@?", kDiosEndpoint, kDiosBaseView, [params objectForKey:@"view_name"]];
NSMutableString *path = [NSMutableString stringWithFormat:@"%@/%@/%@?", kDiosEndpoint, kDiosBaseView, [params objectForKey:@"view_name"]];
for (NSString *key in params) {
id value = [params objectForKey:key];
[path appendFormat:@"%@=%@&", key, value];
if (![key isEqualToString:@"view_name"]) {
[path appendFormat:@"%@=%@&", key, value];
}
}
[[DIOSSession sharedSession] getPath:path parameters:nil success:success failure:failure];
}
Expand Down

0 comments on commit ab7f9ee

Please sign in to comment.