soundcloudcharts/api_base.py
def _call(self, method, url, params):
        """
        Make a call to the API

        :param method: 'GET', 'POST', 'DELETE', or 'PUT'
        :param url: URL of API endpoint
        :param params: API paramaters

        :return: JSON data from the API
        """
        if not url.startswith('http'):
            url = self.root + url
        headers = self._auth_headers()
        headers['Content-Type'] = 'application/json'

        r = self._session.request(method, url,
                                  headers=headers,
                                  proxies=self.proxies,
                                  params=params,
                                  timeout=self.requests_timeout)
        r.raise_for_status()  # Check for error
        return r.json()

        Make a call to the API

        :param method: 'GET', 'POST', 'DELETE', or 'PUT'
        :param url: URL of API endpoint
        :param params: API paramaters

        :return: JSON data from the API
        
Make a call to the API
Make a call to the API
def _call(self, method, url, params):
        if not url.startswith('http'):
            url = self.root + url
        headers = self._auth_headers()
        headers['Content-Type'] = 'application/json'
        r = self._session.request(method, url,
                                  headers=headers,
                                  proxies=self.proxies,
                                  params=params,
                                  timeout=self.requests_timeout)
        r.raise_for_status()  
        return r.json()
def _call ( self , method , url , params ) : if not url . startswith ( 'http' ) : url = self . root + url headers = self . _auth_headers ( ) headers [ 'Content-Type' ] = 'application/json' r = self . _session . request ( method , url , headers = headers , proxies = self . proxies , params = params , timeout = self . requests_timeout ) r . raise_for_status ( ) return r . json ( )
Make a call to the API
Make a call to the API
"""
        Make a call to the API

        :param method: 'GET', 'POST', 'DELETE', or 'PUT'
        :param url: URL of API endpoint
        :param params: API paramaters

        :return: JSON data from the API
        """ # Check for error
JSON data from the API
JSON data from the API
self
method
None
url
URL of API endpoint
URL of API endpoint
params
None