Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
greedbell committed Feb 23, 2016
1 parent c72eb20 commit 340b91a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ pod 'GreedNetwork'
{
GRTestForm *form = [[GRTestForm alloc] init];
form.q = @"GreedNetwork";
[self requestWithNetworkForm:form success:^(GRNetworkResponse *responseObject) {
NSLog(@"form:%@",[form gr_dictionary]);
[self gr_requestWithNetworkForm:form success:^(GRNetworkResponse *responseObject) {
NSLog(@"request:%@",responseObject.responseDictionary);
} failure:^(NSError *error) {
NSLog(@"request:%@",[error userInfo]);
} failure:^(GRNetworkResponse *responseObject) {
NSLog(@"request:%@",[responseObject.error userInfo]);
}];
}
```
Expand All @@ -34,10 +35,11 @@ pod 'GreedNetwork'
form.successBlock = ^(GRNetworkResponse *responseObject) {
NSLog(@"queue_%@:%@",@(index),responseObject.responseDictionary);
};
form.failureBlock = ^(NSError *error) {
NSLog(@"queue_%@:%@",@(index),[error userInfo]);
form.failureBlock = ^(GRNetworkResponse *responseObject) {
NSLog(@"queue_%@:%@",@(index),[responseObject.error userInfo]);
};
NSLog(@"form:%@",[form gr_dictionary]);
[[GRNetworkQueue getInstance] addForm:form];
}
}
Expand Down

0 comments on commit 340b91a

Please sign in to comment.