0

WSDLなしでPython 3.5を使用してISPConfig 3に接続し、そこからデータを取得する必要があります。私はまだ有用なものを見つけられませんでした.誰かがすでにそれを試したか、提案、ヒント、またはサンプルコードを持っていますか? PHP にはいくつかの例がありますが、Python には新鮮なものはありません。

いくつかのコード

現時点ではこれを持っていますが、それが何か機能して便利なものであるかどうかはわかりませんが、少なくとも何か.

from django.core.management.base import BaseCommand
from pysimplesoap.client import SoapClient


class Command(BaseCommand):
    def handle(self, *args, **options):

        username = 'usr'
        password = 'usrpswd'
        url = 'https://link/remote/index.php'
        uri = 'https://link/remote'

        client = SoapClient(
            location=url,
            trace=True,
            http_headers={'Authorization': 'Basic %s:%s' % (username, password)}
        )

その他の情報源

また、このipsconfig-json-wrapperを見つけ、ファイルをフォルダーに配置してからhttp://{domain}/remote/json.php?method=login&username=fubar&password=boobaz&callback=JSON_CALLBACK

私は得るtypeof JSONP === 'function' && JSONP({"success":true,"response":"**************************"});

誰かがGETリクエストを作成してデータを取得するか、少なくとも次に何をすべきかを説明するのを手伝ってくれるでしょうか?

4

0 に答える 0