Add statistics data to your ViewController

You need to perform async request to get user statistics:

- (void)loadData {    
    [[RPEntry instance].api getStatisticsMainWithCompletion:^(id response, NSError *error) {
        if (error != nil) {
            return;
        }
        
        if (![response isKindOfClass:[RPStatistics class]]) {
            return;
        }
  /// Implement updating your ViewController with new data        
    }];
}

Last updated