3

This query returns the details of the Main sites only:

        /associated-users#ids=2855348

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

  • @BrockAdams : Can I post a bug? – Arulkumar Dec 27 '15 at 18:17
  • Posted a bug report related to this. This particular API route is returning wrong values for badges on meta sites. – Brock Adams Dec 27 '15 at 18:57
  • @BrockAdams: Thanks for posting the bug and linked the related questions. – Arulkumar Dec 27 '15 at 19:00
  • You're welcome; glad to help. – Brock Adams Dec 27 '15 at 19:01
1

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 or meta_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:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .