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

getCategory #13

Open
AdrianRC opened this issue Dec 16, 2022 · 0 comments
Open

getCategory #13

AdrianRC opened this issue Dec 16, 2022 · 0 comments
Assignees

Comments

@AdrianRC
Copy link
Contributor

Fetches a category using the passed-in identifier, which can be either the product's ID or the category's slug.

Example

const category = getCategory(client, "books");

API

const category = getCategory(client, id, requestOptions);
client (SwellClient): The client returned from the init function.
id (string): Identifier for the category. Can be either the category's slug or the category's id.
requestOptions (object, optional): Overwrites the client options for the current request. Parameters:
    locale (string, optional): The requested product's locale.
    currency (string, optional): The requested product's currency.
    sessionToken (string, optional): The token from the session to be used.
@AdrianRC AdrianRC converted this from a draft issue Dec 16, 2022
@AdrianRC AdrianRC added this to the @swell/js 0.2.0 milestone Dec 16, 2022
@AdrianRC AdrianRC moved this from Todo to In Progress in Swell SDK Jan 23, 2023
@bonofiglio bonofiglio self-assigned this Jan 24, 2023
@bonofiglio bonofiglio moved this from In Progress to Done in Swell SDK Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants