-(void)testFacepunchAPI {
FPAPI *apiInstance = [FPAPI sharedInstance];
[apiInstance authenticateWithUsername:@"i300" password:@"colbert2012" andCallbackDelegate:self];
}
// Called when Authentication is completed
-(void)facepunchAPIAuthenticationComletedWithPayload:(NSDictionary *)payload {
FPAPI *apiInstance = [FPAPI sharedInstance];`
[apiInstance getForumsWithCurrentSessionAndCallbackDelegate:self];
}
// Called when GetForums is completed
-(void)facepunchGetForumsCompletedWithForums:(NSArray *)forums {
FPCategory *firstCategory = [forums objectAtIndex:0];
NSLog(@"The first category returned by the API is: %@", firstCategory.name);
// Outputs
// The first category returned by the API is: General Discussion
}