This query returns the details of the Main sites only:
How can I get the Meta site details also in the same query?
Do I need to add any other filter or to use some other query?
This is regarding: Displaying Badges for Meta sites in Android app
This query returns the details of the Main sites only:
How can I get the Meta site details also in the same query?
Do I need to add any other filter or to use some other query?
This is regarding: Displaying Badges for Meta sites in Android app
From the doc page for the /users/{ids}/associated
route:
You can filter the network_users returned by this method with the
types
parameter. Specify, semicolon delimited,main_site
ormeta_site
to filter by site.
So this means that for just a user's meta accounts you would use, for example:
/2.2/users/2855348/associated?types=meta_site
For both a user's regular accounts and his meta accounts you would use:
/2.2/users/2855348/associated?types=meta_site;main_site
All that being said, note that there is currently a relevant bug with this API route: