Combu  3.2.2
Unity API Documentation
Managing News

Table of Contents

In this section you will learn how to retrieve the in-game news.

Loading News

To retrieve the list of latest news you need to call News.Load:

// Load the page 1 with 10 results per page
News.Load(1, 10, (News[] news, int resultsCount, int pagesCount, string error) => {
if (string.IsNullOrEmpty(error))
Debug.Log("Success: " + news.Length);
else
Debug.Log("Failed: " + error);
});