import requests
import json


class api_call(object):

    def __init__(self, key, url):
        self.key = key
        self.url = url

    def call(self, keyvar, **kwargs):
        params = {}
        params[keyvar] = self.key
        for key in kwargs.keys():
            params[key] = kwargs[key]
        r = requests.get(self.url, params=params)
        results = json.loads(r.text)
        return results

c1634a8be6fa7afea303eb18053420e51a5c9cc6
<mask token>

<mask token>


class api_call(object):
    <mask token>

    def call(self, keyvar, **kwargs):
        params = {}
        params[keyvar] = self.key
        for key in kwargs.keys():
            params[key] = kwargs[key]
        r = requests.get(self.url, params=params)
        results = json.loads(r.text)
        return results

<mask token>


class api_call(object):

    def __init__(self, key, url):
        self.key = key
        self.url = url

    def call(self, keyvar, **kwargs):
        params = {}
        params[keyvar] = self.key
        for key in kwargs.keys():
            params[key] = kwargs[key]
        r = requests.get(self.url, params=params)
        results = json.loads(r.text)
        return results

import requests
import json


class api_call(object):

    def __init__(self, key, url):
        self.key = key
        self.url = url

    def call(self, keyvar, **kwargs):
        params = {}
        params[keyvar] = self.key
        for key in kwargs.keys():
            params[key] = kwargs[key]
        r = requests.get(self.url, params=params)
        results = json.loads(r.text)
        return results
