Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get stories #7

Open
ACMCMC opened this issue May 6, 2024 · 1 comment
Open

Can't get stories #7

ACMCMC opened this issue May 6, 2024 · 1 comment

Comments

@ACMCMC
Copy link

ACMCMC commented May 6, 2024

The definition of single in Stories is as follows:

    def single(self, token, options={}):
        """Returns a single story by id (https://www.storyblok.com/docs/Delivery-Api/get-a-story#get-a-story-by-id)

        '/cdn/stories/:story_id' GET

        Args:
            token: Public token for published or private token for draft version
        """
        body = options['query'] if 'query' in options else {}

        response = self.client.get('/cdn/stories/' + story_id + '', body, options)

        return response

As you can see, it uses story_id without that variable being defined - leading to a NameError.

@mrosati84
Copy link

Same here, can someone please have a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants