优鲜宝/OceanEngine-SDK

根据项目需求完成的接口,并非所有接口都有相应的代码

0.0.1-beta8 2023-04-20 03:06 UTC

README

根据项目需求完成的接口,并非所有接口都有相应的代码

此PHP包由OpenAPI Generator项目自动生成

  • API版本:1.0.0
  • 包版本:0.0.1-beta8
  • 构建包:org.openapitools.codegen.languages.PhpClientCodegen

需求

PHP 5.5及以上

安装与使用

Composer

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

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/youxianbo/oceanengine-sdk.git"
    }
  ],
  "require": {
    "youxianbo/oceanengine-sdk": "*@dev"
  }
}

然后运行composer install

手动安装

下载文件并包含autoload.php

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

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

请按照安装说明进行操作,然后运行以下命令

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

$apiInstance = new Oceanengine\Open\Api\AdvertiserApi(
    // 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()
);
$access_token = {{access_token}}; // string | 
$x_debug_mode = 56; // int | 
$inline_object7 = new \Oceanengine\Open\Model\InlineObject7(); // \Oceanengine\Open\Model\InlineObject7 | 

try {
    $result = $apiInstance->call2AdvertiserFundDailyStatGet($access_token, $x_debug_mode, $inline_object7);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AdvertiserApi->call2AdvertiserFundDailyStatGet: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI均相对于https://ad.oceanengine.com/open_api

模型文档

授权文档

所有端点均不需要授权。

作者