src/User.php
public function getCurrentUserId()
    {
        $contents = $this
            ->call('GET', self::USER_RESOURCE)
            ->getBody()
            ->getContents();

        $json = json_decode($contents, true);

        return $json['user_id'];
    }
public function getCurrentUserId()
    {
        $contents = $this
            ->call('GET', self::USER_RESOURCE)
            ->getBody()
            ->getContents();

        $json = json_decode($contents, true);

        return $json['user_id'];
    }
public function getCurrentUserId ( ) { $ contents = $ this -> call ( 'GET' , self :: USER_RESOURCE ) -> getBody ( ) -> getContents ( ) ; $ json = json_decode ( $ contents , true ) ; return $ json [ 'user_id' ] ; }
Get current user.

@since 1.7.0

@throws GuzzleException
@throws \RuntimeException

@return string
Get current user .