From aeaacb6b405e954cad602bec78e3537ad13278b0 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 18 Aug 2019 22:34:19 -0400 Subject: [PATCH] updated README.md to model current status of project --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ee88c09..2ad7cb5 100644 --- a/README.md +++ b/README.md @@ -25,14 +25,13 @@ python setup.py install The library needs to be configured with your account's email and API password, the latter of which can be created [here](https://voip.ms/m/api.php). Set the variables `voipms.email` and `voipms.apikey` to their respective values: ```python -import voipms +from voipms.api import Client -voipms.email = "test@email.com" -voipms.api_key = "01N0sWTdiutWTHNF" +email = "test@email.com" +api_password = "01N0sWTdiutWTHNF" + +client = Client(email, api_password) # get current account balance -voipms.general.get_balance() - -# remove did from account -voipms.dids.cancel_dids(did="5551234567") +balance = client.balance.fetch() ```