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

Make possibe to use runProgram on classes inheriting from VirtualminA… #21

Merged
merged 1 commit into from
Feb 3, 2022
Merged

Make possibe to use runProgram on classes inheriting from VirtualminA… #21

merged 1 commit into from
Feb 3, 2022

Conversation

fabiomontefuscolo
Copy link
Contributor

@fabiomontefuscolo fabiomontefuscolo commented Feb 3, 2022

That empower developers to extend you API to connect to custom endpoints in Virtualmin

I also suggest to make public all other methods that does not leak credentials.

$api = new VirtualminApi(
    [
        'hostname' => 'example.com',
        'username' => 'fabio',
        'password' => '***************'
    ],
    'debug'
);

$api->runProgram(
    'tiki-install',
    [
        'domain' => 'test2.example.com',
        'branch' => '22.x',
        'password' => 'tikiwiki' // 8 chars long
    ]
);

@eugenefvdm eugenefvdm merged commit 41759bd into fintech-systems:main Feb 3, 2022
@eugenefvdm
Copy link
Contributor

Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants