Giter Site home page Giter Site logo

wallvon / mofh-api-docs Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 8.0 3.49 MB

API Documentation for https://myownfreehost.net

Home Page: https://api.myownfreehost.net

License: MIT License

JavaScript 7.98% MDX 92.02%
myownfreehost api mofh byet ifastnet vpanel vistapanel free-hosting documentation api-documentation

mofh-api-docs's Introduction

banner

๐Ÿ‘‹ I'm Robert S.

A full-stack developer and tech enthusiast from the Netherlands.

Check out my website https://robert-s.dev for my recent work.


Languages

Go Typescript Javascript Python SQL HTML5 CSS3

Frameworks & Libraries

Tailwind CSS Bootstrap UIkit Flask Falcon React Next.js Alpine.js Prisma

Miscellaneous

Linux Docker Git NGINX

Currently learning

Svelte Rust

GitHub Stats

You can contact me on Discord robe.rt or by emailing me here

mofh-api-docs's People

Contributors

4yx avatar bastelpichi avatar chippytech avatar dependabot[bot] avatar greenreader9 avatar wallvon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mofh-api-docs's Issues

getcname.php

Validate domain by CNAME

This endpoint allows you to add a domain using CNAME validation instead of DNS validation. It uses a POST request, which is confusing because it's called getcname but whatever.

Right now it is not possible to create an account with an domain that has been verified by CNAME via the API! Its only possible to manually add that in vPanel.
- BastelPichi

Required parameters:

  • api_user
  • api_key
    - username
  • domain_name

XML API:

https://panel.myownfreehost.net/xml-api/getcname.php

Example response:

73081144a0525fde6ba1b0510684efcf

JSON API:

https://panel.myownfreehost.net/json-api/getcname.php

Example response:

73081144a0525fde6ba1b0510684efcf

Thanks to @BastelPichi for bringing up the missing endpoint.

Where can I find the callback url?

Hello. I was trying to set the API with WHMCS. When I click the "Refresh" button of the MOFH server on the "Servers" page, the WHMCS returned this error tip:

Error
Not Found
The requested URL /json-api/batch.php was not found on this server.

So I dived into the API Documents and see if I missed something. Then I was confused with the Callback URL. How can I find it? Should I create a callback file and put them into my WHMCS folder first? Also, what is the absolute path of "/json-api/batch.php"? Should it be the "http://panel.myownfreehost.net/" or my WHMCS domain?

Thank you.

listpkgs.php

Return current user's available hosting plans

According to cPanel's documentation, the listpkgs endpoint does the following: "This function lists the authenticated user's available hosting plans (packages)."

XML API:

https://panel.myownfreehost.net/xml-api/listpkgs.php
TODO. However, according to people in the iFastNet Community Discord server, the XML API endpoint is broken.
image

JSON API:

https://panel.myownfreehost.net/json-api/listpkgs.php

Call with no plans:

{"package":[{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"default","BWLIMIT":9223372036854775807,"IP":"n","CGI":"n","MAXSUB":9999,"name":"Default","MAXSQL":999,"MAXFTP":"1","QUOTA":9223372036854775807,"MAXPARK":9999,"HASSHELL":"N","MAXADDON":9999,"MAXPOP":"10","MAXLIST":"0","LANG":"english"}]}

Call with a "Test" plan:

{"package":[{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"default","BWLIMIT":9223372036854775807,"IP":"n","CGI":"n","MAXSUB":9999,"name":"Default","MAXSQL":999,"MAXFTP":"1","QUOTA":9223372036854775807,"MAXPARK":9999,"HASSHELL":"N","MAXADDON":9999,"MAXPOP":"10","MAXLIST":"0","LANG":"english"},{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"default","BWLIMIT":"9223372036854775807","IP":"n","CGI":"n","MAXSUB":"9999","name":"Test","MAXSQL":"999","MAXFTP":"1","QUOTA":"9223372036854775807","MAXPARK":"9999","HASSHELL":"n","MAXADDON":"9999","MAXPOP":"10","MAXLIST":"0","LANG":"english"},{"FRONTPAGE":"n","CPMOD":"x3","FEATURELIST":"default","BWLIMIT":"9223372036854775807","IP":"n","CGI":"n","MAXSUB":"9999","name":"lve0A9SRQo1Cr7HwuqH96DngzvLxn36TYrPB9MpBiuZWE0wtplpv2ecb6lRjRWfvS2iqRMArzWMlh7czbO6YPyJucyxjSEYHC7ZPvn08hsY3ZiE1RSDvxXER1NTprFoAbgT6ZHGvqZYFFvudliUhHp4f3iZGqef6tWVNRhB2D04AwtrDP2zeocoIduHOIuPabEV332vaAdz5Guo4eSAfTlnPBlunXgIkz9XAQK7SLXE0Qrsj2sH5rJOQe8MY3MX_Test","MAXSQL":"999","MAXFTP":"1","QUOTA":"9223372036854775807","MAXPARK":"9999","HASSHELL":"n","MAXADDON":"9999","MAXPOP":"10","MAXLIST":"0","LANG":"english"}]}

Thanks to @4yx for providing the JSON API responses and for bringing up the missing endpoint.

Redo with Nextra

Redo the docs with Docusaurus, it looks nicer in my opinion. I was already done with this, and I added git and set the origin to this repository, but then I accidentally reset my local environment which removed all Docusaurus files and replaced them with the files from this repo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.