Starting from a contact ID, i need to find all the groups to which the contact belongs.
I know that i can use api
GroupContact but it doesn't work for smart groups (in CiviCRM 4.5)
Is there any api calls that will retrieve all groups at once ? Otherwise, what would be the best way ?