Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
    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)
Exemplo n.º 5
0
    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)
Exemplo n.º 6
0
 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
     )
Exemplo n.º 7
0
    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
        )
Exemplo n.º 8
0
    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
        )
Exemplo n.º 9
0
    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)
Exemplo n.º 10
0
    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
        )
Exemplo n.º 11
0
 def institutions(self, url):
     """
     Fetch all Plaid institutions, using /institutions
     """
     return get_request(url, suppress_errors=self.suppress_http_errors)
Exemplo n.º 12
0
 def categories(self, url):
     """Fetch all Plaid Categories"""
     return get_request(url, suppress_errors=self.suppress_http_errors)
Exemplo n.º 13
0
 def institutions(self, url):
     '''
     Fetch all Plaid institutions
     '''
     return get_request(url, suppress_errors=self.suppress_http_errors)
Exemplo n.º 14
0
 def institutions(self, url):
     '''
     Fetch all Plaid institutions, using /institutions
     '''
     return get_request(url, suppress_errors=self.suppress_http_errors)
Exemplo n.º 15
0
 def categories(self, url):
     '''Fetch all Plaid Categories'''
     return get_request(url, suppress_errors=self.suppress_http_errors)