mofh-api-wrapper
v1.2.5
Published
MOFH API Wrapper
Downloads
5
Readme
MOFH API Wrapper
Account Management
Example
Get Account Info
btw theres more functions but i didnt write them into docs
import mofh-api-wrapper from "mofh-api-wrapper"
const client = new mofh-api-wrapper.client()
client.login("username","password")
const account = client.getAccount("test")login(username: string,password: string)
Username- usernamePassword- password
addResellerDomain(domain: string,prefix: string)
domainDomainprefixPrefix (example: if0)- return:
boolean
addPlan(domain: string,plan: Plan)
domainDomainplanPlan Info
removePlan(domain: string,planName: string)
domain- DomainplanName- Plan
setAffiliateID(affiliateID: string)
affiliateIDID
setForumLink(domain:string,link:string)
domainReseller DomainlinkLink
client.getAccount("name")
nameUsername return:info- UserInfo- username:
string, - domains:
string, - active:
boolean - sqlserver:
string, - date_created:
string, - create_ip:
string, - hits:
string, - traffic_used:
string, - cpu_used:
string, - plan_name:
string, - plan_traffic:
string, - plan_disk:
string, - plan_sql:
string, - plan_domains:
string, - package:
string,
- username:
suspend(reason: string,note: string)changePackage(package_name: string)updateQuota(plan: EditablePlan)
panelBranding(domain: string,branding: Branding)
domainReseller DomainbrandingBranding Info- Return:
boolean
updateLogo(domain: string, logo: any)
domainReseller DomainlogoLogo- Return:
boolean
defaultIndex(domain: string, index: string)
domainReseller DomainindexContent (HTML)- Return
boolean
changeWelcomeEmail(domain: string,data: string)
domainReseller DomainindexContent- Return
boolean
