import requests import urllib class ApiHandler(): def get(view_name, endpoint=None, params=None): """ Args: view_name (string): name of the view. endpoint (string): the url endpoint. params (dict): parameters to pass to this api endpoint. Return: dict: The json dictionary from the response. """ pass api = ApiHandler()