Uncaught Exception: REST API is deprecated for versions v2.1 and higher (12)