#!/usr/bin/python

import requests
import json

'''
This is some documentation
http://api.football-data.org/documentation
curl -H 'X-Response-Control: minified' -X GET http://api.football-data.org/v1/soccerseasons/?season=2015
'''

class Import:
    def __init__(self, token):
        self.response = []
        self.token = token

    def importurlfromrest(self, url):
        '''
        Wrapper around restful call to footbal-data.org
        :return: JSON response object
        '''
        headers = {
            'X-Auth-Token': self.token
           }
        response = requests.get(url,headers=headers)
        self.response = json.loads(response.content)
        return self.response

d898d5d2012a6780c7afbb23a4dffff913a34bc6
<mask token>


class Import:
    <mask token>
    <mask token>

<mask token>


class Import:
    <mask token>

    def importurlfromrest(self, url):
        """
        Wrapper around restful call to footbal-data.org
        :return: JSON response object
        """
        headers = {'X-Auth-Token': self.token}
        response = requests.get(url, headers=headers)
        self.response = json.loads(response.content)
        return self.response

<mask token>


class Import:

    def __init__(self, token):
        self.response = []
        self.token = token

    def importurlfromrest(self, url):
        """
        Wrapper around restful call to footbal-data.org
        :return: JSON response object
        """
        headers = {'X-Auth-Token': self.token}
        response = requests.get(url, headers=headers)
        self.response = json.loads(response.content)
        return self.response

import requests
import json
<mask token>


class Import:

    def __init__(self, token):
        self.response = []
        self.token = token

    def importurlfromrest(self, url):
        """
        Wrapper around restful call to footbal-data.org
        :return: JSON response object
        """
        headers = {'X-Auth-Token': self.token}
        response = requests.get(url, headers=headers)
        self.response = json.loads(response.content)
        return self.response

#!/usr/bin/python

import requests
import json

'''
This is some documentation
http://api.football-data.org/documentation
curl -H 'X-Response-Control: minified' -X GET http://api.football-data.org/v1/soccerseasons/?season=2015
'''

class Import:
    def __init__(self, token):
        self.response = []
        self.token = token

    def importurlfromrest(self, url):
        '''
        Wrapper around restful call to footbal-data.org
        :return: JSON response object
        '''
        headers = {
            'X-Auth-Token': self.token
           }
        response = requests.get(url,headers=headers)
        self.response = json.loads(response.content)
        return self.response
