youxianbo/oceanengine-sdk

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

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

README

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

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

  • API version: 1.0.0
  • Package version: 0.0.1-beta8
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

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

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

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/oceanengine-sdk/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 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;
}

?>

Documentation for API Endpoints

All URIs are relative to https://ad.oceanengine.com/open_api

Class Method HTTP request Description
AdvertiserApi call2AdvertiserFundDailyStatGet GET /2/advertiser/fund/daily_stat/ 查询账户日流水
AdvertiserApi call2AdvertiserFundGetGet GET /2/advertiser/fund/get/ 查询账号余额
AdvertiserApi call2AdvertiserFundTransactionGetGet GET /2/advertiser/fund/transaction/get/ 查询账号流水明细
AdvertiserApi call2AdvertiserInfoGet GET /2/advertiser/info/ 广告主信息
AdvertiserApi call2BusinessPlatformPartnerOrganizationListGet GET /2/business_platform/partner_organization/list/ 查询合作组织
AdvertiserApi call2CustomerCenterAdvertiserListGet GET /2/customer_center/advertiser/list/ 获取纵横组织下资产账户列表(分页)
AdvertiserApi call2FundSharedWalletBalanceGetGet GET /2/fund/shared_wallet_balance/get/ 获取共享钱包余额
AdvertiserApi call2MajordomoAdvertiserSelectGet GET /2/majordomo/advertiser/select/ 获取纵横组织下资产账户列表
AdvertiserApi v30BusinessPlatformCompanyAccountGetGet GET /v3.0/business_platform/company_account/get/ 获取主体下的账户列表
AdvertiserApi v30BusinessPlatformCompanyInfoGetGet GET /v3.0/business_platform/company_info/get/ 获取纵横组织下所有主体信息
EnterpriseApi v10EnterpriseBindListGetGet GET /v1.0/enterprise/bind/list/get/ 获取广告主关联的企业号列表
EnterpriseApi v10EnterpriseInfoGet GET /v1.0/enterprise/info/ 获取企业号信息
EnterpriseApi v10EnterpriseOperationLogGetGet GET /v1.0/enterprise/operation/log/get/ 获取企业号推广操作记录
EnterpriseApi v10EnterpriseOverviewDataGetGet GET /v1.0/enterprise/overview/data/get/ 获取企业号基础数据
Oauth2Api call2UserInfoGet GET /2/user/info/ 获取授权User信息
Oauth2Api oauth2AccessTokenPost POST /oauth2/access_token/ access_token
Oauth2Api oauth2AdvertiserGetGet GET /oauth2/advertiser/get/ 获取已授权账户
Oauth2Api oauth2AppAccessTokenPost POST /oauth2/app_access_token/ 获取APP Access Token
Oauth2Api oauth2RefreshTokenPost POST /oauth2/refresh_token/ 刷新Refresh Token
ReportApi call2ReportAdGetGet GET /2/report/ad/get/ 广告计划数据
ReportApi call2ReportAdvertiserGetGet GET /2/report/advertiser/get/ 广告主数据
ReportApi call2ReportAudienceAgeGet GET /2/report/audience/age/ 年龄数据
ReportApi call2ReportAudienceCityGet GET /2/report/audience/city/ 市级数据
ReportApi call2ReportAudienceGenderGet GET /2/report/audience/gender/ 性别数据
ReportApi call2ReportAudienceInterestActionListGet GET /2/report/audience/interest_action/list/ 行为兴趣数据
ReportApi call2ReportAudienceProvinceGet GET /2/report/audience/province/ 省级数据
ReportApi call2ReportCampaignGetGet GET /2/report/campaign/get/ 广告组数据
ReportApi call2ReportCreativeGetGet GET /2/report/creative/get/ 广告创意数据
ReportApi call2ReportSitePageGet GET /2/report/site/page/ 橙子建站落地页数据
ReportApi v30ReportCustomConfigGetGet GET /v3.0/report/custom/config/get/ 获取自定义报表可用指标和维度
ReportApi v30ReportCustomGetGet GET /v3.0/report/custom/get/ 自定义报表

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author