Skip to content

Instantly share code, notes, and snippets.

@birarda
Created October 27, 2012 18:27
Show Gist options
  • Save birarda/3965594 to your computer and use it in GitHub Desktop.
Save birarda/3965594 to your computer and use it in GitHub Desktop.
Old CP Api setup
+ (void)sendLoveToUserWithID:(NSNumber *)recieverID
loveMessage:(NSString *)message
skillID:(NSUInteger)skillID
completion:(void (^)(NSDictionary *, NSError *))completion
{
NSMutableDictionary *reviewParams = [NSMutableDictionary dictionaryWithCapacity:2];
[reviewParams setObject:[NSString stringWithFormat:@"%@", recieverID] forKey:@"recipientID"];
[reviewParams setObject:[NSString stringWithFormat:@"%d", skillID] forKey:@"skill_id"];
[reviewParams setObject:message forKey:@"reviewText"];
[self makeHTTPRequestWithAction:@"sendLove" withParameters:reviewParams completion:completion];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment