Ejemplo n.º 1
0
 def _post(self, path, data):
     headers = {}
     if self.api_version is not None:
         headers = {'Plaid-Version': self.api_version}
     return post_request(
         urljoin('https://' + self.environment + '.plaid.com', path),
         data=data,
         timeout=self.timeout,
         headers=headers,
     )
Ejemplo n.º 2
0
 def _post(self, path, data, is_json):
     headers = {}
     if self.api_version is not None:
         headers = {'Plaid-Version': self.api_version}
     return post_request(
         urljoin('https://' + self.environment + '.plaid.com', path),
         data=data,
         timeout=self.timeout,
         is_json=is_json,
         headers=headers,
     )
Ejemplo n.º 3
0
 def _post(self, path, data, is_json):
     headers = {}
     if self.api_version is not None:
         headers['Plaid-Version'] = self.api_version
     if self.client_app is not None:
         headers['Plaid-Client-App'] = self.client_app
     return post_request(
         urljoin('https://' + self.environment + '.plaid.com', path),
         data=data,
         timeout=self.timeout,
         is_json=is_json,
         headers=headers,
     )
Ejemplo n.º 4
0
 def inner_func(self, *args, **kwargs):
     url = urljoin(self.base_url, self.ENDPOINTS[path])
     return func(self, url, *args, **kwargs)
Ejemplo n.º 5
0
 def _post(self, path, data):
     return post_request(urljoin(
         'https://' + self.environment + '.plaid.com', path),
                         data=data,
                         timeout=self.timeout)
Ejemplo n.º 6
0
 def inner_func(self, *args, **kwargs):
     url = urljoin(self.base_url, self.ENDPOINTS[path])
     return func(self, url, *args, **kwargs)