pipeless/pipeless-php

未提供描述(由 Openapi Generator 生成 https://github.com/openapitools/openapi-generator)

1.0.2 2020-12-14 05:55 UTC

This package is auto-updated.

Last update: 2024-09-14 14:41:35 UTC


README

使用简单的API实现实时个性化推荐和活动流。 https://docs.pipeless.io

要求

PHP 7.1 及更高版本

安装与使用

Composer

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

composer require pipeless/pipeless-php

然后运行 composer install

手动安装

下载文件并包含 autoload.php

    require_once('/pipeless-php/vendor/autoload.php');

入门指南

请遵循安装步骤,然后运行以下命令

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



// Configure API key authorization: App_API_Key
$config = Pipeless\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'Bearer YOUR_API_KEY');

$apiInstance = new Pipeless\Api\ActivityApi(
    // 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
);
$app_id = 123;

$params = [

];

try {
    $result = $apiInstance->getActivityActionsFeed($app_id, $params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ActivityApi->getActivityActionsFeed: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI都是相对于 https://api.pipeless.io

模型文档

授权文档

App_API_Key

  • 类型: API密钥
  • API密钥参数名: Authorization
  • 位置: HTTP头

作者