summaryrefslogtreecommitdiff
path: root/namecheap_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'namecheap_api.py')
-rw-r--r--namecheap_api.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/namecheap_api.py b/namecheap_api.py
index 27c82a7..c85da02 100644
--- a/namecheap_api.py
+++ b/namecheap_api.py
@@ -4,10 +4,9 @@ from typing import Dict, Any, Optional
from config import Config
class NamecheapAPI:
- def __init__(self, config: Config, sandbox: bool = False):
+ def __init__(self, config: Config):
self.config = config
- self.sandbox = sandbox
- self.base_url = "https://api.sandbox.namecheap.com/xml.response" if sandbox else "https://api.namecheap.com/xml.response"
+ self.base_url = "https://api.namecheap.com/xml.response"
def _make_request(self, command: str, params: Dict[str, Any]) -> ET.Element:
"""Make a request to Namecheap API"""