Giter Site home page Giter Site logo

java-client's Introduction

inwx.com XML-RPC Java Client

You can access all functions of our frontend via an application programming interface (API). Our API is based on the XML-RPC protocol and thus can be easily addressed by almost all programming languages. The documentation and programming examples in PHP, Java, Ruby and Python can be downloaded here.

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 OTE system no actions will be charged. So you can test how to register domains etc.

Documentation

You can view a detailed description of the API functions in our documentation. The documentation as PDF ist part of the Projekt. You also can read the documentation online http://www.inwx.de/en/help/apidoc

Example

The implementation in Java requires the included .JAR files.

import model.ArrayElement;
import model.Element;
import model.MapElement;
import org.apache.xmlrpc.XmlRpcException;
import java.net.MalformedURLException;

public class InwxJavaExample {
  public static void main(String args[]) throws MalformedURLException, XmlRpcException {
    System.out.println("Starting inwx Java example ...");
    String username = "your username";
    String password = "your password";

    Connector connector = new Connector();
    if (connector.login(username,password)) {
      ArrayElement myDomains = connector.checkDomain("inwx23 werew4rewr.de");
      for ( Element item : (Element[]) myDomains.getArray(  ) ) {
        MapElement _item = (MapElement) item;
        System.out.println("tld: " + _item.get("tld").toString());
        System.out.println("name: " + _item.get("name").toString());
        System.out.println("domain: " + _item.get("domain").toString());
        System.out.println("status: " + _item.get("status").toString());
        System.out.println("price: " + _item.get("price").toString());
      }

      ArrayElement domains = connector.getAllNS();
      for ( Element item : (Element[]) domains.getArray(  ) ) {
        MapElement _item = (MapElement) item;
        System.out.println(_item.get("domain")+":"+_item.get("type"));
      }
      
      connector.logout();
      System.out.println("logout");
    }//if login
  }
}

License

MIT

java-client's People

Contributors

kekskurse avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.