revenuewire/jackfruit-rest-sdk-php

v1.26 2017-11-06 22:53 UTC

This package is auto-updated.

Last update: 2024-09-08 14:41:15 UTC


README

此API 不代表 最终产品。以下列出的某些API 高度实验性,在最终发布前可能会发生变化。它们可能包含崩溃和错误,并可能导致数据丢失

此PHP包由Swagger Codegen项目自动生成

  • API版本:v1
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen

要求

PHP 5.4.0及以后版本

安装与使用

Composer

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

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/revenuewire/jackfruit-rest-sdk-php.git"
    }
  ],
  "require": {
    "revenuewire/jackfruit-rest-sdk-php": "*@dev"
  }
}

然后运行composer install

手动安装

下载文件并包含autoload.php

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

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

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

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

// Configure API key authorization: JWT
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Authorization-JWT', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Authorization-JWT', 'Bearer');
// Configure API key authorization: API-KEY
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$api_instance = new Swagger\Client\Api\AffiliateLinkerLinksApi();
$catalogFid = "catalogFid_example"; // string | Offer's catalog FID

try {
    $result = $api_instance->affiliateLinksGet($catalogFid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AffiliateLinkerLinksApi->affiliateLinksGet: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI均相对于https:///rest/v1

模型文档

授权文档

API-KEY

  • 类型:API密钥
  • API密钥参数名:X-API-KEY
  • 位置:HTTP头

JWT

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

作者