Lulu Book Printing API Client
Testing
Some of the tests require a connection to the sandbox API.
Before running the tests you must copy and paste your “client key” and “client secret” from the
Sandbox API Keys Page
into the files testdata/clientkey and testdata/clientsecret.
For example, if your client-key and client-secret were 190f024a-fded-f508-7db8-a987b1159f40 and dSdCXch8SCIcAksu6CXd1SzvfYUUdjPs,
mkdir testdata
echo 190f024a-fded-f508-7db8-a987b1159f40 >testdata/clientkey
echo dSdCXch8SCIcAksu6CXd1SzvfYUUdjPs >testdata/clientsecret
chmod 600 testdata/clientkey testdata/clientsecret
The tests make connections to Lulu’s sandbox API server. Please be polite and don’t run the tests too often to avoid spamming their server.