From dd75e0f7d6a10d637056a4c6d714490c8ed55af5 Mon Sep 17 00:00:00 2001 From: idoyudha Date: Wed, 30 Apr 2025 18:02:14 +0700 Subject: [PATCH] docs: update example usage how to call the api --- README.md | 8 ++------ pyproject.toml | 2 +- setup.py | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 454e739..69eae33 100644 --- a/README.md +++ b/README.md @@ -50,12 +50,8 @@ create_invoice_req = { "callbackUrl": "https://duitku.com/callback", "returnUrl": "https://duitku.com" } -response = None -try: - response = duitku.invoice.create(create_invoice_req): -except requests.exceptions.HTTPError as e: - print(e) -print(response) +result = self.duitku.invoice.create(create_invoice_req) +print(result) ``` ## Support diff --git a/pyproject.toml b/pyproject.toml index 7f49c43..faee99f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "duitku-python" -version = "0.2.4" +version = "0.2.5" authors = [ {name = "Ido Yudhatama", email = "idowidya.yudhatama@gmail.com"}, ] diff --git a/setup.py b/setup.py index 5b6ff10..f7e12e0 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup( name="duitku", - version="0.2.4", + version="0.2.5", description="Duitku Python SDK", long_description=long_description, url="https://github.com/idoyudha/duitku-python",