westonplatter / fast_arrow_auth

Robinhood API Authentication for fast_arrow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Client.get method not passing request paramerters

bagelbyte opened this issue · comments

fast_arrow_auth's client.py is not passing, at the very least, the params dict to the requests.get method. However, this feature did work in the previous version of client.py as found in "fast_arrow". See below for the code in master at the time of this issue:

fast_arrow_auth/client.py:

def get(self, url, params=None):
        '''
        Execute HTTP GET
        '''
        headers = self._gen_headers(self.access_token, url)
        res = requests.get(url, headers=headers)
        return res.json()

fast_arrow\client.py:

def get(self, url=None, params=None, retry=True):
        '''
        Execute HTTP GET
        '''
        headers = self._gen_headers(self.access_token, url)
        res = requests.get(url,
                           headers=headers,
                           params=params,
                           timeout=15,
                           verify=self.certs)
        res.raise_for_status()
        return res.json()