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