public function uploadAvatar(string $file): Response
    {
        $this->requiresAccessToken();

        return $this->stream(
            'POST', 'profile/avatar', $this->getApiHeaders(), $this->getApiBody(), compact('file')
        );
    }
public function uploadAvatar(string $file): Response
    {
        $this->requiresAccessToken();

        return $this->stream(
            'POST', 'profile/avatar', $this->getApiHeaders(), $this->getApiBody(), compact('file')
        );
    }
public function uploadAvatar ( string $ file ) : Response { $ this -> requiresAccessToken ( ) ; return $ this -> stream ( 'POST' , 'profile/avatar' , $ this -> getApiHeaders ( ) , $ this -> getApiBody ( ) , compact ( 'file' ) ) ; }
Upload profile avatar.

@param string $file

@return \Laravie\Codex\Contracts\Response
Upload profile avatar .