Skip to content

Commit

Permalink
Added "trial" plan
Browse files Browse the repository at this point in the history
  • Loading branch information
alb2001 committed Feb 13, 2024
1 parent 913ead8 commit 2b24c29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ dextools = DextoolsAPI(api_key, useragent="User-Agent")
To get started, import the package, and initiate a `DextoolsAPIV2` instance object by passing your API key and your plan:
```
from dextools_python import DextoolsAPIV2
dextools = DextoolsAPIV2(api_key, plan="free")
dextools = DextoolsAPIV2(api_key, plan="trial")
```

You can also pass an optional user agent:
```
dextools = DextoolsAPIV2(api_key, useragent="User-Agent", plan="free")
dextools = DextoolsAPIV2(api_key, useragent="User-Agent", plan="trial")
```

If you don't specify any plan when instantiating the object, it will default to "partner" plan
Expand All @@ -54,7 +54,7 @@ To set your plan after the object is created, you can use the `set_plan("your_pl
dextools.set_plan("standard")
```

Available values: `"free"`, `"standard"`, `"advanced"`, `"pro"`, and `"partner"`
Available values: `"free"`, `"trial"`, `"standard"`, `"advanced"`, `"pro"`, and `"partner"`


## Version 1 Queries
Expand Down
2 changes: 1 addition & 1 deletion dextools_python/dextools.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, api_key, useragent="API-Wrapper/0.2", plan="partner"):
def set_plan(self, plan):
# python versions older than 3.10 don't support switch/case statements, using if elif instead
plan = plan.lower()
plans = ["free", "standard", "advanced", "pro"]
plans = ["free", "trial", "standard", "advanced", "pro"]
if plan in plans:
self.plan = plan
self.url = f"http://public-api.dextools.io/{plan}/v2"
Expand Down

0 comments on commit 2b24c29

Please sign in to comment.