hello, my customer asked me to create simple script for add new domain in plesk panel with api, im created this code : [Python] import requests import ssl ssl._create_default_https_context = ssl._create_unv - Pastebin.com
'''
'''
return :
where im wrong ?
'''
PHP:
<?xml version='1.0' encoding='UTF-8' ?><packet version='1.5.0.0'>
<domain>
<add>
<gen_setup>
<name>google.com</name>
<client_id>1</client_id>
<ip_address>127.0.0.1</ip_address>
<status>0</status>
</gen_setup>
<hosting>
<vrt_hst>
<ftp_login>dsakdakd</ftp_login>
<ftp_password>sdffsdfsdfsddfs</ftp_password>
<php>true</php>
<ssi>true</ssi>
<cgi>true</cgi>
<php_safe_mode>false</php_safe_mode>
<ip_address>127.0.0.01</ip_address>
</vrt_hst>
</hosting>
</add>
</domain>
</packet>
return :
Code:
<?xml version="1.0"?>
<packet version="1.5.0.0">
<system>
<status>error</status>
<errcode>1014</errcode>
<errtext>Parser error: Request is invalid</errtext>
</system> <output>
<br />
<b>Warning</b>: DOMDocument::schemaValidate() [<a href='domdocum
ent.schemavalidate'>domdocument.schemavalidate</a>]: Element 'ftp_login
': This element is not expected. Expected is ( property ). in <b>C:\Progra
m Files (x86)\Parallels\Plesk\admin\plib\api-rpc\ExpandXMLLib.php</b> on l
ine <b>56</b><br />
</output> </packet>