softonic/developer_api_sdk

This package is abandoned and no longer maintained. No replacement package was suggested.

2.19.0 2022-10-20 08:23 UTC

README

Add your description here

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

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/softonic/developer_api_sdk.git"
    }
  ],
  "require": {
    "softonic/developer_api_sdk": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/DeveloperApiSdk/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');

// Configure OAuth2 access token for authorization: developer_api_access_code
$config = Softonic\DeveloperApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: developer_api_application
$config = Softonic\DeveloperApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: developer_api_implicit
$config = Softonic\DeveloperApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: developer_api_password
$config = Softonic\DeveloperApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Softonic\DeveloperApiSdk\Api\DevelopersApi(
    // 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
);
$body = new \Softonic\DeveloperApiSdk\Client\Model\Developer(); // \Softonic\DeveloperApiSdk\Client\Model\Developer | 

try {
    $apiInstance->createDeveloper($body);
} catch (Exception $e) {
    echo 'Exception when calling DevelopersApi->createDeveloper: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://developer.sftapi.com

Class Method HTTP request Description
DevelopersApi createDeveloper POST /developers Creates a new Developer
DevelopersApi findDeveloper GET /developers List of Developers
DevelopersApi readDeveloper GET /developers/{id_developer} Fetches a single Developer
DevelopersApi replaceDeveloper PUT /developers/{id_developer} Entirely replaces a Developer
DevelopersApi updateDeveloper PATCH /developers/{id_developer} Partially updates a Developer

Documentation For Models

Documentation For Authorization

developer_api_access_code

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://oauth-v2.softonic.com/token
  • Scopes:
  • developer_api.read.developers: Read Developers
  • developer_api.replace.developers: Replace Developers
  • developer_api.update.developers: Update Developers
  • developer_api.find.developers: Find Developers
  • developer_api.create.developers: Create Developers

developer_api_application

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • developer_api.read.developers: Read Developers
  • developer_api.replace.developers: Replace Developers
  • developer_api.update.developers: Update Developers
  • developer_api.find.developers: Find Developers
  • developer_api.create.developers: Create Developers

developer_api_implicit

  • Type: OAuth
  • Flow: implicit
  • Authorization URL: https://oauth-v2.softonic.com/authorize
  • Scopes:
  • developer_api.read.developers: Read Developers
  • developer_api.replace.developers: Replace Developers
  • developer_api.update.developers: Update Developers
  • developer_api.find.developers: Find Developers
  • developer_api.create.developers: Create Developers

developer_api_password

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes:
  • developer_api.read.developers: Read Developers
  • developer_api.replace.developers: Replace Developers
  • developer_api.update.developers: Update Developers
  • developer_api.find.developers: Find Developers
  • developer_api.create.developers: Create Developers

Author

XXXXXXXXX@softonic.com