Skip to content

Instantly share code, notes, and snippets.

@bobspryn
Created June 20, 2013 21:23
Show Gist options
  • Select an option

  • Save bobspryn/5826771 to your computer and use it in GitHub Desktop.

Select an option

Save bobspryn/5826771 to your computer and use it in GitHub Desktop.
RKObjectMapping *mapping = [RKObjectMapping mappingForClass:[self class]];
[mapping addAttributeMappingsFromDictionary:@{
@"access_token": @"accessToken",
@"access_token" : @"identifier",
@"refresh_token": @"refreshToken",
@"status.errorCode": @"errorCode",
@"status.message": @"message",
@"username": @"username",
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment