Giter Site home page Giter Site logo

getcname.php about mofh-api-docs HOT 8 CLOSED

wallvon avatar wallvon commented on August 19, 2024
getcname.php

from mofh-api-docs.

Comments (8)

BastelPichi avatar BastelPichi commented on August 19, 2024 1

curl -X POST https://panel.myownfreehost.net/xml-api/getcname.php -d 'domain_name=domain.com&username=hname_12345678&api_user=XXXXXXXXX&api_key=XXXXXXXXXX' -u XXXXXXX:XXXXXXXXXX
Returns: 73081144a0525fde6ba1b0510684efcf

Using the json API vs the XML API makes no difference.
The username is irrelevant and doesnt matter. (they probably left it in by mistake), however its still good practice to send the actual username.

By creating an CNAME record from HASH_VALUE.domain.com to ns1.byet.org the domain can be added to cPanel without changing nameservers.

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.

from mofh-api-docs.

BastelPichi avatar BastelPichi commented on August 19, 2024 1

The other endpoints do use body data (at least thats how your docs specify it and that way it also works). What happens if you use body data?

I get the same error then it seems.

Thats interesting, ill look into this later.

from mofh-api-docs.

BastelPichi avatar BastelPichi commented on August 19, 2024

IMG_20231213_091633.jpg

You shouldn't need the username now anymore.

from mofh-api-docs.

Wallvon avatar Wallvon commented on August 19, 2024

IMG_20231213_091633.jpg

You shouldn't need the username now anymore.

Seems like they've broken the endpoint with that change since now I only get ERROR :The API key or API username entered is not valid. .

It also seems like they changed back to query parameters instead of multipart form, just like all other endpoints.

from mofh-api-docs.

BastelPichi avatar BastelPichi commented on August 19, 2024

IMG_20231213_091633.jpg

You shouldn't need the username now anymore.

Seems like they've broken the endpoint with that change since now I only get ERROR :The API key or API username entered is not valid. .

It also seems like they changed back to query parameters instead of multipart form, just like all other endpoints.

The other endpoints do use body data (at least thats how your docs specify it and that way it also works). What happens if you use body data?

from mofh-api-docs.

Wallvon avatar Wallvon commented on August 19, 2024

The other endpoints do use body data (at least thats how your docs specify it and that way it also works). What happens if you use body data?

I get the same error then it seems.

from mofh-api-docs.

Wallvon avatar Wallvon commented on August 19, 2024

I've contacted iFastNet about this and I'm currently waiting for a reply ^

from mofh-api-docs.

Wallvon avatar Wallvon commented on August 19, 2024

image

This issue is resolved now.

from mofh-api-docs.

Related Issues (8)

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.