def institution(self, url, institution_id): """ Fetch details for a single institution `institution_id` str Institution id to fetch """ return get_request(url.format(institution_id), suppress_errors=self.suppress_http_errors)
def category(self, url, category_id): """ Fetch a specific category `category_id` str Category id to fetch """ return get_request(url.format(category_id), suppress_errors=self.suppress_http_errors)
def balance(self, url, credentials): ''' Fetch the real-time balance of the user's accounts ''' return get_request(url, data=credentials, suppress_errors=self.suppress_http_errors)
def institution(self, url, institution_id): ''' Fetch details for a single institution `institution_id` str Institution id to fetch ''' return get_request(url.format(institution_id), suppress_errors=self.suppress_http_errors)
def category(self, url, category_id): ''' Fetch a specific category `category_id` str Category id to fetch ''' return get_request(url.format(category_id), suppress_errors=self.suppress_http_errors)
def balance(self, url, credentials): ''' Fetch the real-time balance of the user's accounts ''' return get_request( url, data=credentials, suppress_errors=self.suppress_http_errors )
def institution(self, url, institution_id): ''' Fetch details for a single institution `institution_id` str Category id to fetch ''' return get_request( url.format(institution_id), suppress_errors=self.suppress_http_errors )
def institution_search(self, url, q=None, p=None, institution_id=None): """ Perform simple search query against Long Tail institutions. `q` str Query against the full list of institutions. `p` str Filter FIs by a single product (Optional). `institution_id` str The id of a single institution for lookup (Optional). """ assert q is not None or institution_id is not None, "query or institution_id required" params = dict( [(key, value) for key, value in [("q", q), ("p", p), ("id", institution_id)] if value is not None] ) return get_request( "{}{}{}".format(url, "?" if params else "", urlencode(params)), suppress_errors=self.suppress_http_errors )
def institution_search(self, url, q=None, p=None, institution_id=None): ''' Perform simple search query against Long Tail institutions. `q` str Query against the full list of institutions. `p` str Filter FIs by a single product (Optional). `institution_id` str The id of a single institution for lookup (Optional). ''' assert q is not None or institution_id is not None, ( 'query or institution_id required') params = dict([ (key, value) for key, value in [('q', q), ('p', p), ('id', institution_id)] if value is not None ]) return get_request('{}{}{}'.format(url, '?' if params else '', urlencode(params)), suppress_errors=self.suppress_http_errors)
def institution_search(self, url, q=None, p=None, institution_id=None): ''' Perform simple search query against Long Tail institutions. `q` str Query against the full list of institutions. `p` str Filter FIs by a single product (Optional). `institution_id` str The id of a single institution for lookup (Optional). ''' assert q is not None or institution_id is not None, ( 'query or institution_id required' ) params = dict([(key, value) for key, value in [ ('q', q), ('p', p), ('id', institution_id) ] if value is not None]) return get_request( '{}{}{}'.format(url, '?' if params else '', urlencode(params)), suppress_errors=self.suppress_http_errors )
def institutions(self, url): """ Fetch all Plaid institutions, using /institutions """ return get_request(url, suppress_errors=self.suppress_http_errors)
def categories(self, url): """Fetch all Plaid Categories""" return get_request(url, suppress_errors=self.suppress_http_errors)
def institutions(self, url): ''' Fetch all Plaid institutions ''' return get_request(url, suppress_errors=self.suppress_http_errors)
def institutions(self, url): ''' Fetch all Plaid institutions, using /institutions ''' return get_request(url, suppress_errors=self.suppress_http_errors)
def categories(self, url): '''Fetch all Plaid Categories''' return get_request(url, suppress_errors=self.suppress_http_errors)