diablomedia / leadspedia-php-sdk
未提供描述(由Openapi Generator生成 https://github.com/openapitools/openapi-generator)
2.0.5
2024-03-18 23:12 UTC
Requires
- php: >=7.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- diablomedia/php-cs-fixer-config: 2.1.0
- phpunit/phpunit: ^7.4 || ^8.0
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-19 00:31:22 UTC
README
未提供描述(由Openapi Generator生成 https://github.com/openapitools/openapi-generator)
此PHP包由OpenAPI Generator项目自动生成
- API版本:v2.0
- 构建包:org.openapitools.codegen.languages.PhpClientCodegen
要求
PHP 5.5及以后版本
安装与使用
Composer
要使用Composer安装绑定,请在composer.json
中添加以下内容
{ "repositories": [ { "type": "vcs", "url": "https://github.com/diablomedia/leadspedia-php-sdk.git" } ], "require": { "diablomedia/leadspedia-php-sdk": "*@dev" } }
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/Leadspedia/vendor/autoload.php');
测试
要运行单元测试
composer install ./vendor/bin/phpunit
入门指南
请按照安装流程进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: apiKey0 $config = Leadspedia\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Leadspedia\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer'); // Configure API key authorization: apiKey1 $config = Leadspedia\Configuration::getDefaultConfiguration()->setApiKey('api_secret', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Leadspedia\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_secret', 'Bearer'); $apiInstance = new Leadspedia\Api\AdvertisersApi( // 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 ); $advertiserID = 56; // int | $type = 'type_example'; // string | $amount = 3.4; // float | $charge = 'No'; // string | $generateInvoice = 'No'; // string | $note = 'note_example'; // string | $transactionFee = 'transactionFee_example'; // string | $transactionFeePercentage = 3.4; // float | $transactionFeeAmount = 3.4; // float | try { $result = $apiInstance->advertisersadjustCreditdo($advertiserID, $type, $amount, $charge, $generateInvoice, $note, $transactionFee, $transactionFeePercentage, $transactionFeeAmount); print_r($result); } catch (Exception $e) { echo 'Exception when calling AdvertisersApi->advertisersadjustCreditdo: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI均相对于https://api.leadspedia.com/core/v2
模型文档
授权文档
apiKey0
- 类型:API密钥
- API密钥参数名:api_key
- 位置:URL查询字符串
apiKey1
- 类型:API密钥
- API密钥参数名:api_secret
- 位置:URL查询字符串