src/ApiClient.php
public function getGroups()
    {
        return $this->apiCall('groups.list')->then(function ($response) {
            $groups = [];
            foreach ($response['groups'] as $group) {
                $groups[] = new Group($this, $group);
            }
            return $groups;
        });
    }
public function getGroups()
    {
        return $this->apiCall('groups.list')->then(function ($response) {
            $groups = [];
            foreach ($response['groups'] as $group) {
                $groups[] = new Group($this, $group);
            }
            return $groups;
        });
    }
public function getGroups ( ) { return $ this -> apiCall ( 'groups.list' ) -> then ( function ( $ response ) { $ groups = [ ] ; foreach ( $ response [ 'groups' ] as $ group ) { $ groups [ ] = new Group ( $ this , $ group ) ; } return $ groups ; } ) ; }
Gets all groups the authenticated user is a member of.

@return \React\Promise\PromiseInterface
Gets all groups the authenticated user is a member of .