def timeline_feed(self, **kwargs):
        """
        Get logged-in user's timeline feed.

        :param kwargs:
            - **count**: Number of records to return
            - **end_cursor**: For pagination
        """
        end_cursor = kwargs.pop('end_cursor', None) or kwargs.pop('max_id', None)
        fetch_media_item_count = int(kwargs.pop('count', 12))
        if fetch_media_item_count > 50:
            raise ValueError('count cannot be greater than 50')

        fetch_comment_count = int(kwargs.pop('fetch_comment_count', 4))
        fetch_like = int(kwargs.pop('fetch_like', 10))
        has_stories = bool(kwargs.pop('has_stories', False))
        variables = {
            'fetch_media_item_count': fetch_media_item_count,
            'fetch_comment_count': fetch_comment_count,
            'fetch_like': fetch_like,
            'has_stories': has_stories,
        }
        if end_cursor:
            variables['fetch_media_item_cursor'] = end_cursor
        query = {
            'query_hash': '3f01472fb28fb8aca9ad9dbc9d4578ff',
            'variables': json.dumps(variables, separators=(',', ':'))
        }
        return self._make_request(self.GRAPHQL_API_URL, query=query)

        Get logged-in user's timeline feed.

        :param kwargs:
            - **count**: Number of records to return
            - **end_cursor**: For pagination
        
instagram_web_api/client.py