This code will check user notification subscription status on PushBots and toggle Push Notifications:
[Pushbots getDevice:^(NSDictionary *device, NSError *error) {
if(device != nil){
NSLog(@"Current Subscription status: %d", [[device valueForKey:@"sub"] boolValue]);
[Pushbots toggleNotifications:![[device valueForKey:@"sub"] boolValue]];
NSLog(@"Updated Subscription status: %d", ![[device valueForKey:@"sub"] boolValue]);
}
}];