bachus03/prismic-api-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bachus03/prismic-api-client

最新稳定版本:1.0.11

Composer 安装命令:

composer require bachus03/prismic-api-client

包简介

Prismic

README 文档

README

Installation & Usage

Requirements

PHP 7.3 and later. Should also work with PHP 8.0 but has not been tested.

Composer

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

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/bachus03/prismic-api-client"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

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




$apiInstance = new OpenAPI\Client\Api\PrismicItemsApi(
    // 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()
);
$custom_field = 56; // int | Name of custom field created in prismic
$request_body = array(new \stdClass); // object[]

try {
    $result = $apiInstance->pushItems($custom_field, $request_body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrismicItemsApi->pushItems: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to http://localhost/if/write

Class Method HTTP request Description
PrismicItemsApi pushItems POST /{custom-field} Push Items into prismic.

Models

Authorization

All endpoints do not require authorization.

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

About this package

  • API version: 1.0.7

统计信息

  • 总下载量: 3.02k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: unlicense
  • 更新时间: 2022-07-26