Skip to main content

INWX API Python Client

Project description

INWX Domrobot Python 3 Client

You can access all functions of our frontend via our API, which is available via the XML-RPC or JSON-RPC protocol and thus can be easily consumed with all programming languages.

There is also an OT&E test system, which you can access via ote.inwx.com. Here you will find the known web interface which is using a test database. On the OT&E system no actions will be charged. So you can test as much as you like there.

Documentation

You can view a detailed description of the API functions in our documentation. You can find the online documentation by clicking here.

If you still experience any kind of problems don't hesitate to contact our support via email.

Installation

The recommended way is via pip:

pip install inwx-domrobot

You can find more information about the package on pypi.org.

Example

from INWX.Domrobot import ApiClient

username = ''
password = ''
domain = 'my-test-domain-which-is-definitely-not-registered6737.com'

api_client = ApiClient(api_url=ApiClient.API_OTE_URL, debug_mode=True)

login_result = api_client.login(username, password)

if login_result['code'] == 1000:
    domain_check_result = api_client.call_api(api_method='domain.check', method_params={'domain': domain})

    if domain_check_result['code'] == 1000:
        checked_domain = domain_check_result['resData']['domain'][0]

        if checked_domain['avail']:
            print(domain + ' is still available!')
        else:
            print('Unfortunately, ' + domain + ' is already registered.')

    else:
        raise Exception('Api error while checking domain status. Code: ' + str(domain_check_result['code'])
                        + '  Message: ' + domain_check_result['msg'])
    api_client.logout()
else:
    raise Exception('Api login error. Code: ' + str(login_result['code']) + '  Message: ' + login_result['msg'])

You can also have a look at the example folder in the project for even more info.

License

MIT

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

inwx_domrobot-3.0.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

inwx_domrobot-3.0.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file inwx_domrobot-3.0.3.tar.gz.

File metadata

  • Download URL: inwx_domrobot-3.0.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for inwx_domrobot-3.0.3.tar.gz
Algorithm Hash digest
SHA256 599ac577354aee18fd02770e273f6951c52d77fa262e91f0aa8fa3738ae45f15
MD5 2a330d39c20b7d51bc1f0b665b310556
BLAKE2b-256 2e912f1424ab8f91c138cac24009141a6cdfbde786722fa45e90c403c7b98de0

See more details on using hashes here.

File details

Details for the file inwx_domrobot-3.0.3-py3-none-any.whl.

File metadata

  • Download URL: inwx_domrobot-3.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for inwx_domrobot-3.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 13cfc3898795d7f08e74616e2f516a31af3a58ca711ca4d5e5ffdd8cfaa20ff9
MD5 f982b2270c77b2236fd0f9f8ac1ad2d3
BLAKE2b-256 e96c007ce0f74413879f7d5e02e7b03c5da0d5a1d5d592d5cb9b439b2d5fede3

See more details on using hashes here.

Supported by

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