Created
April 29, 2012 20:57
-
-
Save bobspryn/2553234 to your computer and use it in GitHub Desktop.
GetProductList Obj-C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RKObjectMapping* productMapping = [RKObjectMapping mappingForClass:[CWProduct class]]; | |
| [productMapping mapKeyPathsToAttributes:@"Product.Id", @"productId", @"Product.ProductCode", @"productCode", @"Product.Name", @"name", @"Product.Description", @"descriptionText", @"Product.IsInBox", @"isInBox", @"Product.QtyInBox", @"quantityInBox", @"Product.Images", @"images", @"Product.Videos", @"videos", @"Product.Attributes", @"attributes", @"Product.Link", @"link", @"Product.Rating", @"rating", nil]; | |
| productMapping.rootKeyPath = @"Products"; | |
| // curl -XPOST -d "mid=4" http://feeds.clubw.com.asp1-1.dfw1-2.websitetestlink.com/mobile.svc/GetProductList | |
| [objectManager.mappingProvider setObjectMapping:productMapping forResourcePathPattern:@"/mobile.svc/GetProductList"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment