Provides your API key to the SDK client. The client uses the supplied key for all API calls.

Setting the $ENIGMA_PUBLIC_APIKEY environment variable causes set_auth( ) to be called automatically.

Required arguments

Name Type Description
apikey string Your Enigma Public API key.

Optional keyword arguments

None

Example

public = enigma.Public()
public.set_auth(apikey='YOUR-API-KEY')