Set api_authorized when instantiating the plugin