Skip to main content

The Official Resellme Python SDK .

Project description

Official Resellme Python SDK

Usage

  • Make sure you already got you developer token. If you dont have the token refer to this guide: - and that its set properly using this guide: -

Installation Guide

  • Use the pyhton package manager pip to install the official Python SDK
pip3 install rm_sdk_python

Import the Resellme module to your project

  • Import the resellme package and initiate with the API_KEY from Resellme
from rm_sdk_python import Resellme


resellme = Resellme(api_key='YOUR_RESELLME_API_KEY_TOKEN')

Checking / Searching for Domain Availability

  • The resellme.search_domain method can return a json object with the values such as available or not_available
search_response = resellme.search_domain('xyz.co.zw')

# search_response is a json object
if search_response['status'] == 'available':
    # do registration etc

Registering a New Domain

  • The client's contact details are entered upon registering the domain
  • The SDK uses default nameservers upon creation and registration of the domain, however there is room to update to your preferred nameservers, check the Updating Nameserver section
# A contact is created with the details provided upon registering a domain
response = resellme.register_domain(
    domain_name='xbc.co.zw',
    first_name='Beven',
    last_name='Nyamande',
    email='beven@crontab.co.zw',
    company='test1',
    mobile='123123123',
    street_address='123 Xyz Street',
    core_business='Area of business undertaken by the company',
    city='Harare',
    country='Zimbabwe',
)

Updating nameservers

  • To update nameservers to custom nameservers, firstly provide the domain name of the site you want to update as shown below
  • NB: The method returns a json object
response = resellme.update_nameserver('test8.co.zw',ns1='ns1.xyz.com', ns2='ns2.xyz.com')

Updating Contact details

  • To update the email, mobile, city details for a specified domain use the following method
  • The following method illustrates a case were you want to update all the fields, however you can choose any specific field
  • NB: the method requires the domain and email as positional arguments
updated_contact_details = resellme.update_contact('test.co.zw', email='beven@crontab.co.zw',
                                           first_name='your name',
                                           last_name='your surname',
                                           company='Xyz Inc',
                                           mobile='0777123123',
                                           street_address='Xyz Street',
                                           core_business='Vending',
                                           city='Harare',
                                           country='Zimbabwe')

Get Domains

  • You can use this method to fetch all your domains
domains = resellme.get_all_domains()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rm_sdk_python-1.0.4.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rm_sdk_python-1.0.4-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file rm_sdk_python-1.0.4.tar.gz.

File metadata

  • Download URL: rm_sdk_python-1.0.4.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for rm_sdk_python-1.0.4.tar.gz
Algorithm Hash digest
SHA256 9756ddaa1d5649cf8111ecd31b47290d05e8769bb699a69ed0cbb9652d704d89
MD5 fc3902a81c6959d5e2b9e85c2617bba2
BLAKE2b-256 5a4266238845d69accfb8337bc761eae4a50e5af98fa5a01a0ca59a9a53e173b

See more details on using hashes here.

File details

Details for the file rm_sdk_python-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: rm_sdk_python-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for rm_sdk_python-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 842d77a4d21f339cf95336a0928c060117bda27270ff7cc19d385e1625619b1e
MD5 7439ac4e5255b8b8f15501b9b1fae9da
BLAKE2b-256 75f1819f68ea595a27c5fab605379f8e12d31a6ea93472d446abb0bd6c20b5c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page