OPHosting API Intro

OPHosting API Access

You can apply here for access -> https://goo.gl/forms/PzdZRTj3IicyKbnj2

Base Url for Hosting API

GET http://api.ophosting.club/hosting/

The Base Parameter for every Request is: key


Valid Key:

Success GET json {"success":"success","valid":"true","timestamp":"1503064909"}


InValid Key:

json return fail {"success":"false","valid":"false","timestamp":"1503064909"}

OPHosting Create Account

OPHosting API createAccount

URL for Account Creating

GET http://api.ophosting.club/hosting/createAccount

The Base Parameter for every Request is: key

Email Parameter: email

Password Parameter: password

Subdomain Parameter: domain (only the name: flare not flare.domain.ex)


Success:

Success GET json {"success":"true","error":"0","userid":"apiXXX,"username":"opgd_XXXXX","password":"xxxxxx","email":"xxxxx@xxxxx.exa","domain":"xxxx.domain.exa","plan":"User","panel":"panel.domain.exa","timestamp":"10000000"}


API Key not submitted/API Key Invalid:

json return fail {"success":"false","error":"8","userid":"","username":"","password":"","email":"","domain":"","plan":"","panel":"","timestamp":""}


No email submitted:

json return fail {"success":"false","error":"1","userid":"","username":"","password":"","email":"","domain":"","plan":"","panel":"","timestamp":""}


Email is Invalid:

json return fail {"success":"false","error":"2","userid":"","username":"","password":"","email":"","domain":"","plan":"","panel":"","timestamp":""}


Password not submitted:

json return fail {"success":"false","error":"3","userid":"","username":"","password":"","email":"","domain":"","plan":"","panel":"","timestamp":""}


Subdomain Name not submitted:

json return fail {"success":"false","error":"4","userid":"","username":"","password":"","email":"","domain":"","plan":"","panel":"","timestamp":""}


Domain Invalid/Already Use:

json return fail {"success":"false","error":"5","userid":"","username":"","password":"","email":"","domain":"","plan":"","panel":"","timestamp":""}


Database Error:

json return fail {"success":"false","error":"6","userid":"","username":"","password":"","email":"","domain":"","plan":"","panel":"","timestamp":""}


API Key not avaible:

json return fail {"success":"false","error":"7","userid":"","username":"","password":"","email":"","domain":"","plan":"","panel":"","timestamp":""}

OPHosting suspendAccount

OPHosting API Suspend Account

URL for Account Creating

GET http://api.ophosting.club/hosting/suspendAccount

The Base Parameter for every Request is: key

The Username of the Users Hosting Account(exaXXXXXXX): username

The Reason for suspension: reason


Success:

Success json Return {"success":"true","error":"0","username":"exaXXXXXX","domain":"exa.domain.exa","timestamp":"1503063526"}


API Key not given:

json return fail {"success":"false","error":"1","username":"","domain":"","timestamp":"1503063526"}


Username not given:

json return fail {"success":"false","error":"2","username":"","domain":"","timestamp":"1503063526"}


Reason not given:

json return fail {"success":"false","error":"3","username":"","domain":"","timestamp":"1503063526"}


No User Found:

json return fail {"success":"false","error":"4","username":"","domain":"","timestamp":"1503063526"}


API Key not avaible:

json return fail {"success":"false","error":"5","username":"","domain":"","timestamp":"1503063526"}