mirror of
https://github.com/EvolutionAPI/evolution-client-python.git
synced 2025-12-19 03:42:22 -06:00
adjusts in package
This commit is contained in:
9
evolutionapi/services/instance.py
Normal file
9
evolutionapi/services/instance.py
Normal file
@@ -0,0 +1,9 @@
|
||||
class InstanceService:
|
||||
def __init__(self, client):
|
||||
self.client = client
|
||||
|
||||
def fetch_instances(self):
|
||||
return self.client.get('instance/fetchInstances')
|
||||
|
||||
def create_instance(self, config):
|
||||
return self.client.post('instance/create', data=config.__dict__)
|
||||
Reference in New Issue
Block a user