unoeuro/api-php

Documentation for this API can be found on https://www.simply.com/docs/api/

Installs: 356

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 2

Forks: 3

pkg:composer/unoeuro/api-php

v1.0.1 2016-04-23 13:48 UTC

This package is not auto-updated.

Last update: 2025-10-26 01:01:14 UTC


README

Documentation for this API can be found on https://www.simply.com/docs/api/

Installation & Usage

Requirements

PHP 8.1 and later.

Composer

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

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/simplycom/api-php.git"
    }
  ],
  "require": {
    "simplycom/api-php": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/SimplyCom-php/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

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



// Configure HTTP basic authorization: basicAuth
$config = SimplyCom\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new SimplyCom\Api\BillingApi(
    // 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(),
    $config
);

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

API Endpoints

All URIs are relative to https://api.simply.com/2

Class Method HTTP request Description
BillingApi getInvoices GET /my/invoices
DefaultApi domaincheck GET /my/domaincheck/{domain}
DnsApi addDnsRecord POST /my/products/{object}/dns/records Add new DNS record to a product DNS zone
DnsApi ddnsHelper POST /ddns/
DnsApi deleteDnsRecord DELETE /my/products/{object}/dns/records/{record_id} Removes DNS record from a product DNS zone
DnsApi dyndns GET /dyndns/
DnsApi getDnsRecords GET /my/products/{object}/dns/records Retrieve DNS records for a specific object
DnsApi getDnsZone GET /my/products/{object}/dns
DnsApi reloadDnsZone POST /my/products/{object}/dns/reload Force-reload a DNS zone - Usually not necessary
DnsApi updateDnsRecord PUT /my/products/{object}/dns/records/{record_id} Updates a DNS record in a product DNS zone
DocumentationApi aa199985c8f25b391406c7aa6d0582e3 GET /openapi.json OpenAPI JSON file that describes the API
OrderApi orderDnsService POST /my/order/dnsservice
ProductsApi getProductList GET /my/products
ServerstatusApi getServerStatusMessages GET /my/serverstatus/messages/ Retrieve a list of current and past serverstatus messages

Models

Authorization

basicAuth

  • Type: HTTP basic authentication

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 2.2.0
    • Generator version: 7.17.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PhpNextgenClientCodegen