kousik / simple-linkedinphp

Automatically exported from code.google.com/p/simple-linkedinphp
0 stars 0 forks source link

Group membesrhip - incomplete results #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When retrieving users group membership is not enough to request 
membership-state=member,
because the results is empty if user is OWNER of a group.

I suggest requesting multiple states:
membership-state=member&membership-state=owner

Also in this request we have count and start values.
I suggest the full request string as:
membership-state=member&membership-state=owner&count='.$count.'&start='.$start 

and in this case function params could be:
public function groupMemberships($options='', $count=10, $start=0) {
...
}

Original issue reported on code.google.com by i.shu...@webcerebrium.com on 9 Jan 2013 at 11:27