Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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