src/Api/User.php
public function messageThreads() : array
    {
        $returnThreads = [];

        $threads = $this->get(MessageThread::MESSAGE_THREAD_ENDPOINT . 'users/me/threadIds', [
            'withOnlineIds' => $this->onlineId()
        ]);

        if (empty($threads->threadIds)) return [];

        foreach ($threads->threadIds as $thread) {
            $returnThreads[] = new MessageThread($this->client, $thread->threadId);
        }

        return $returnThreads;
    }
public function messageThreads() : array
    {
        $returnThreads = [];

        $threads = $this->get(MessageThread::MESSAGE_THREAD_ENDPOINT . 'users/me/threadIds', [
            'withOnlineIds' => $this->onlineId()
        ]);

        if (empty($threads->threadIds)) return [];

        foreach ($threads->threadIds as $thread) {
            $returnThreads[] = new MessageThread($this->client, $thread->threadId);
        }

        return $returnThreads;
    }
public function messageThreads ( ) : array { $ returnThreads = [ ] ; $ threads = $ this -> get ( MessageThread :: MESSAGE_THREAD_ENDPOINT . 'users/me/threadIds' , [ 'withOnlineIds' => $ this -> onlineId ( ) ] ) ; if ( empty ( $ threads -> threadIds ) ) return [ ] ; foreach ( $ threads -> threadIds as $ thread ) { $ returnThreads [ ] = new MessageThread ( $ this -> client , $ thread -> threadId ) ; } return $ returnThreads ; }
Get all MessageThreads with the User.

@return array Array of Api\MessageThread.
Get all MessageThreads with the User .