moved http client logic to http_client library
This commit is contained in:
@@ -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
|
||||
|
||||
10
invoice_ninja/endpoints/ping.py
Normal file
10
invoice_ninja/endpoints/ping.py
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user