c-sakel / rub-php-client

Röth & Beck PHP API 客户端

dev-main 2024-06-04 07:18 UTC

This package is auto-updated.

Last update: 2024-09-04 07:49:37 UTC


README

在以下页面上可以找到 RESELLING.SERVICES 接口描述

  • API 版本:1.9.0

安装 & 使用

Composer

要使用 Composer 安装绑定,请将以下内容添加到 composer.json

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

然后运行 composer install

手动安装

下载文件并包含 autoload.php

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

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

请按照 安装过程 操作,然后运行以下命令

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


$apiInstance = new Swagger\Client\Api\AbuseManagementApi(
    // 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
);
$incident_id = 56; // int | 
$evidence_id = 56; // int | 
$attachment_id = 56; // int | 

try {
    $result = $apiInstance->abuseManagementEvidenceAttachmentDownloadGet($incident_id, $evidence_id, $attachment_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AbuseManagementApi->abuseManagementEvidenceAttachmentDownloadGet: ', $e->getMessage(), PHP_EOL;
}


$apiInstance = new Swagger\Client\Api\AbuseManagementApi(
    // 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
);
$incident_id = 56; // int | 

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


$apiInstance = new Swagger\Client\Api\AbuseManagementApi(
    // 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
);
$incident_id = 56; // int | 
$evidence_id = 56; // int | 

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


$apiInstance = new Swagger\Client\Api\AbuseManagementApi(
    // 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
);
$incident_id = 56; // int | 

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


$apiInstance = new Swagger\Client\Api\AbuseManagementApi(
    // 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->abuseManagementIncidentGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AbuseManagementApi->abuseManagementIncidentGet: ', $e->getMessage(), PHP_EOL;
}


$apiInstance = new Swagger\Client\Api\AbuseManagementApi(
    // 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
);
$incident_id = 56; // int | 

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


$apiInstance = new Swagger\Client\Api\AbuseManagementApi(
    // 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
);
$incident_id = 56; // int | 

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

API 端点文档

所有 URI 都相对于 https://api.reselling.services/api/v1

模型文档

授权文档

api_token

  • 类型:HTTP 承载身份验证

作者