added web class to connect to api