Esempio 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,
     )
Esempio 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,
     )
Esempio 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,
     )
Esempio n. 4
0
 def inner_func(self, *args, **kwargs):
     url = urljoin(self.base_url, self.ENDPOINTS[path])
     return func(self, url, *args, **kwargs)
Esempio n. 5
0
 def _post(self, path, data):
     return post_request(urljoin(
         'https://' + self.environment + '.plaid.com', path),
                         data=data,
                         timeout=self.timeout)
Esempio n. 6
0
 def inner_func(self, *args, **kwargs):
     url = urljoin(self.base_url, self.ENDPOINTS[path])
     return func(self, url, *args, **kwargs)