Exemplo n.º 1
0
from hostfact_api import HostFactAPI

api = HostFactAPI()

debtorParams = {
    'Identifier': '1',
    'CompanyName': 'Company Y',
    'AccountName': 'Company Y'
}

response = api.sendRequest('debtor', 'edit', debtorParams)

print(response)
from hostfact_api import HostFactAPI

api = HostFactAPI()

debtorParams = {
    'Identifier': 1,  # Debtor ID
    'Message': 'test',
    #'Recipient' : '', # By default debtor e-mailaddress
    'TemplateID': 5,  # E-mailtemplate ID
    #'References' : {'invoice' : 1, 'domain' : 1}, # Dict with references, for filling variables
}

response = api.sendRequest('debtor', 'sendemail', debtorParams)

print(response)
Exemplo n.º 3
0
from hostfact_api import HostFactAPI

api = HostFactAPI()

vpsParams = {
    # Get all vps of customer DB0001
    'searchat': 'DebtorCode',
    'searchfor': 'DB0001'
}

response = api.sendRequest('vps', 'list', vpsParams)

print(response)
Exemplo n.º 4
0
from hostfact_api import HostFactAPI

api = HostFactAPI()

productParams = {
    # 'searchfor': ''
}

response = api.sendRequest('product', 'list', productParams)

print(response)
Exemplo n.º 5
0
from hostfact_api import HostFactAPI

api = HostFactAPI()

serviceParams = {
	'searchfor': ''
}

response = api.sendRequest('service', 'list', serviceParams)

print(response)
from hostfact_api import HostFactAPI

api = HostFactAPI()

debtorParams = {
    'Identifier': 1,
    'TemplateID': 3,
    'ServiceID': 1,
    'ServiceType': 'hosting'
}

response = api.sendRequest('debtor', 'generatepdf', debtorParams)

print(response)
from hostfact_api import HostFactAPI

api = HostFactAPI()

debtorParams = {
    'Username': '******',
    'EmailAddress': '*****@*****.**',
    'Password': '******',
    'SendPasswordForgotEmail': 'yes',
}

response = api.sendRequest('debtor', 'updatelogincredentials', debtorParams)

print(response)
Exemplo n.º 8
0
from hostfact_api import HostFactAPI

api = HostFactAPI()

debtorParams = {'Username': '******', 'Password': '******'}

response = api.sendRequest('debtor', 'checkLogin', debtorParams)

print(response)