Authentication¶
S&S authenticates with HTTP basic auth: the user name is your account number and the password is your API key. You can find the key under My Account on the S&S website. Keep it out of source control.
from ssactivewear_sdk import SSActivewear
ss = SSActivewear("12345", "0f8fad5b-d9cb-469f-a165-70867728950e")
The account number must be numeric and the API key must be a UUID. Anything else raises
ValueError before a request is sent.
Timeouts¶
Requests time out after 30 seconds. Pulling the whole catalog in one call
(get_products() without filters) returns a very
large payload, so give a client that does that a longer timeout:
ss = SSActivewear(account_number, api_key, timeout=600)