A simple Objective-C library for Phaxio
AFNetworking (Automatic when using cocoapods)
You must set your api key and secret key before calling the service.
[PhaxioManager setPMAPIKey:API_KEY andPMAPISecret:API_SECRET];
[[PhaxioManager sharedInstance] send:fileData ofType:@"pdf" toNumber:@"5555555555" withOptions:params completion:^(id responseObject) {
//Do something with the response
} failure:^(NSError *error) {
//Handle the error
}];
[[PhaxioManager sharedInstance] faxStatusForId:@"18826331" completion:^(id responseObject) {
NSLog(@"%@", responseObject);
} failure:^(NSError *error) {
NSLog(@"%@", error.localizedDescription);
}];