1 person found this helpful
The placeID is not the ID of the social group, it's the browseID. These are unique across all places and content. The reason you're getting back a different container than what you've passed in is because that's the container for browse ID 1001.
To get the placeID you need to use a filter on the place api:
Thanks, Steve -- This was helpful.
The rub is that either 1) the placeID value isn't explicitly returned in the response from the call to the places service, or 2) I'm simply not seeing it. However, neither of these matters, as the group's placeID value is surfaced among the place's resources.
For example, among the returned place's resources is the self object, which includes among its members a URI capable of being used to retrieve metadata associated with itself:
It's the "1008" on the end of the self object's ref URI that I'm interested in; the "1008" is the specified group's placeID value. Retrieving this value is as simple as:
- Retrieving the value of the ref URI, then
- Using a regular expression to obtain the URI's trailing numeric value; e.g. ".+/(\\d+)$".