-
I am trying to get information for a book use "1.0/catalog/products/"
This give me 1 result,
I get 2 results and it is of cause the one I dont get from the script that is the right one, do anyone have any suggestions to what |
Beta Was this translation helpful? Give feedback.
Answered by
mkb79
Feb 4, 2024
Replies: 1 comment 6 replies
-
I'll found the reason for this behavior. It's the authenticated request, which will result in a response of only 1 item. If you disable authentication like: auth = Authenticator.from_file(auth_file)
with Client(auth, country_code="us") as client:
r = client.get(
"catalog/products",
num_results=50,
title="And Less Than Kind",
response_groups="media,series,product_desc,product_extended_attrs,contributors,category_ladders,rating,product_attrs",
auth=None # disable auth for this request
)
print(r) you'll got a response with 2 results. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
mkb79
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'll found the reason for this behavior. It's the authenticated request, which will result in a response of only 1 item.
If you disable authentication like:
you'll got a response with 2 results.