There are a number of changes required. - call require_api() rather than require_once - supported version - CSP issues
There are a number of changes required.