"""Interface to the ows-account microservice.""" from owsrequest import request from timed_release import constants def get_vendor(vendor_id): """Get the vendor information based on vendor id. Args: int: vendor_id Returns: dict: vendor data """ response = request.get('ows-account', '/vendor/{vendor_id}'.format( vendor_id=vendor_id)) if response.status_code == 200: return response.json()[constants.field_const.STATUS]