def get_interfaces(args):
    # TODO: Cache this value, so we don't make so many requests.
    url = method_url({'name': 'ISteamWebAPIUtil'}, {'name': 'GetSupportedAPIList', 'version': 1})
    params = {'format': 'json'}
    if args.key:
        params['key'] = args.key
    url += '?%s' % urlencode(params)

    if args.verbose:
        print " ! GET request for %s" % url
    response = requests.get(url)
    return response.json()['apilist']['interfaces']
dataset/ETHPy150Open UberEnt/SteamCLI/steamcli.py/get_interfaces/original