Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Why does a category idnumber return null?

$
0
0
by Peter de Jong.  

I use the Moodle API and GetToken to log-in with a user. Then I retrieve the categories information here:

api.GetCategories(siteInfo.Userid, categories =>
                {
                    DataManager.Instance.categories.Clear();
                    if (categories.Length > 0)
                    {
                        foreach (var category in categories)
                        {
                            // Save category info.
                            Debug.Log(category.Idnumber);
                            DataManager.Instance.categories.Add(category);
                        }
                    }
                    queuedRequestCount--;
                });


However, category.Idnumber returns null. It shouldn't be null, it's definitely filled in.

Is it an issue with account privilege? Or what could it be..?

Thank you.


Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>