Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listpkgs.php #31

Open
Wallvon opened this issue Sep 11, 2023 · 2 comments · Fixed by #34
Open

listpkgs.php #31

Wallvon opened this issue Sep 11, 2023 · 2 comments · Fixed by #34
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed P2 Priority two, medium priority fix

Comments

@Wallvon
Copy link
Owner

Wallvon commented Sep 11, 2023

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.

@Wallvon Wallvon added enhancement New feature or request help wanted Extra attention is needed P2 Priority two, medium priority fix labels Sep 11, 2023
@Wallvon Wallvon self-assigned this Sep 11, 2023
Wallvon added a commit that referenced this issue Dec 13, 2023
@Wallvon Wallvon mentioned this issue Dec 13, 2023
@Wallvon
Copy link
Owner Author

Wallvon commented Dec 13, 2023

The XML API indeed returns nothing, so I contacted iFastNet about it and I'm waiting for a reply.

@Wallvon
Copy link
Owner Author

Wallvon commented Dec 13, 2023

The XML API indeed returns nothing, so I contacted iFastNet about it and I'm waiting for a reply.

image

iFastNet is working on resolving this now. I will update the docs when this has happened.

@Wallvon Wallvon linked a pull request Dec 13, 2023 that will close this issue
Repository owner deleted a comment from chippytech Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed P2 Priority two, medium priority fix
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

1 participant