def set_api_url_and_key(api_key, api_base_url=None):
    """
    Set the URL of the WakeBlaster API and its key that will be used for subsequent API calls.

    :param api_key: Access key for the WakeBlaster API provided to you by the WakeBlaster support team
    :param api_base_url: Base URL of all WakeBlaster HTTP requests. Default is the beta URL.
    """
    global _api_base_url, _api_key
    _api_base_url = api_base_url or 'https://beta.app.wakeblaster.net/api'
    _api_key = api_key
