moved http client logic to http_client library

This commit is contained in:
2023-12-18 19:14:15 -05:00
parent e61396dd6a
commit 560d3377e3
7 changed files with 271 additions and 75 deletions

View File

@@ -5,11 +5,7 @@ import requests
class Clients(BaseEndpoint):
uri = '/api/v1/clients'
def __init__(self, base_url: str = str(), api_token: str = str()):
super().__init__(base_url, api_token)
self.url = super()._get_url_for('clients')
def __build_sort_params(self, sort: dict):
sort_params = {'sort': str()}
is_first_entry = True

View File

@@ -0,0 +1,10 @@
from invoice_ninja.endpoints.base_endpoint import BaseEndpoint
import requests
class Ping(BaseEndpoint):
uri = '/api/v1/ping'
def ping(self):
pass