This particular module is full of all sorts of fun tidbits that the API uses all over the place, such as file locations, strings that might change at some point and all that.
Methods and Constants¶
If you’re using these directly in your app, you might be doing something wrong.
This might be populated from
None(as it is out of the box). All
sunlight.service.Serviceobjects will make use of this API key (once, in it’s __init__, not after that) to do their job.
All Sunlight services share API keys. Nice, right?
This is a link to the API Key signup page - so that we can sanely direct people to register for a key (if they don’t already have one) – after all, signing up for a Sunlight API key is fun for the whole family!
This is the name of the
os.environkey to look for. It’s usually something stupid simple, like
This is the location of the api key that’s stored on the filesystem. Currently, it uses a file directly under a tilde, so that windows users don’t have to feel as much pain when using the API. Usually this is something like