Drop the API version, user_key and access_token. They are added to the SDK.
NSError* error; NSArray *actions = @[@{ @"action": @"delete", @"item_id": @"456853615" }]; NSData *jsonData = [NSJSONSerialization dataWithJSONObject: actions options: kNilOptions error: &error]; NSString *jsonString = [[NSString alloc] initWithData:jsonData encoding: NSUTF8StringEncoding]; NSDictionary* argumentDictionary = @{@"actions":jsonString}; [[PocketAPI sharedAPI] callAPIMethod:@"send" withHTTPMethod:PocketAPIHTTPMethodPOST arguments:argumentDictionary handler:^(PocketAPI *api, NSString *apiMethod, NSDictionary *response, NSError *error){ NSLog(@"response %@", [response description]); NSLog(@"error %@", [error localizedDescription]); }];
source share