Skip to content

prepaid-host/php-api-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwaggerClient-php

Auf dieser Seite findest du die API Dokumentation von Prepaid-Host.com

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 1.2.0
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\AccountApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$api_token = "api_token_example"; // string | API Token

try {
    $result = $apiInstance->accountGet($api_token);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountApi->accountGet: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

All URIs are relative to https://prepaid-host.com/api

Class Method HTTP request Description
AccountApi accountGet GET /account Gibt alle Account Informationen aus
DomainApi domainIdAddPost POST /domain/{id}/add Fügt ein DNS Eintag zu der Domain hinzu
DomainApi domainIdDNSGet GET /domain/{id}/DNS Gibt eine Liste der aktuellen DNS Einträge der Domain zurück
DomainApi domainIdDeleteDelete DELETE /domain/{id}/delete Löscht ein DNS Eintag zu der Domain hinzu
DomainApi domainIdGet GET /domain/{id} Gibt Infos zu einer Domain aus
DomainApi domainListGet GET /domain/list Gibt eine Liste der aktuellen Domains zurück
PaymentApi paymentGet GET /payment Gibt zu einer Transaktion ein Status aus
PaymentApi paymentPost POST /payment Erstellt eine Zahlung
RootserverApi rootserverIdAddressesGet GET /rootserver/{id}/addresses Gibt die IP Adressen des Rootservers aus
RootserverApi rootserverIdRestartPost POST /rootserver/{id}/restart Startet den gewünschten Rootserver neu
RootserverApi rootserverIdStartPost POST /rootserver/{id}/start Startet den gewünschten Rootserver
RootserverApi rootserverIdStatsGet GET /rootserver/{id}/stats Gibt den aktuellen Status der Rootserver durch
RootserverApi rootserverIdStopPost POST /rootserver/{id}/stop Stoppt den gewünschten Rootserver
RootserverApi rootserverListGet GET /rootserver/list Gibt eine Liste der aktuellen Rootserver zurück
TeamspeakApi teamspeakIdGet GET /teamspeak/{id} Gibt Details eines TeamSpeak Servers aus
TeamspeakApi teamspeakIdStartPost POST /teamspeak/{id}/start Startet den gewünschten Teamspeak Server
TeamspeakApi teamspeakIdStopPost POST /teamspeak/{id}/stop Stoppt den gewünschten Teamspeak Server
TeamspeakApi teamspeakListGet GET /teamspeak/list Gibt eine Liste der aktuellen TeamSpeak Server zurück
WebhostingApi webhostingIdGet GET /webhosting/{id} Gibt das aktuelle Webhosting aus
WebhostingApi webhostingListGet GET /webhosting/list Gibt eine Liste der aktuellen Webhosting(s) zurück

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published