hochdreih/bappsy-sdk-php

关于此包的最新版本(dev-master)没有可用的许可证信息。

Bappsy - 商业应用程序系统

dev-master 2021-02-21 09:27 UTC

This package is auto-updated.

Last update: 2024-09-21 16:56:43 UTC


README

此SDK可以帮助您通过hochdreih构建自己的商业应用程序系统(Bappsy)集成。如果您还不是客户,您可以通过此处获取您的账户。Bappsy API为您提供了超过400个数据模型和大约2500个端点。

Bappsy可以管理现代企业运行所需的几乎所有内容

安装

composer require hochdreih/bappsy

认证

  1. 获取您的API密钥
  2. 设置您的应用程序
    • 在构造函数中提供它
<?php
$bappsy = new Bapsy("<yourAPIKey>");

示例

通用用法

<?php

require_once __DIR__ . '/../vendor/autoload.php'; // Autoload files using Composer autoload

use Bappsy\Bappsy;

$bappsy = new Bappsy("<yourAPIKey>");

$get = $bappsy->get($endpoint, $q, $prePart, $postPart);
$getDetail = $bappsy->getDetail($endpoint, $id, $q, $prePart, $postPart);
$copy = $bappsy->copy( $endpoint, $id);
$delete = $bappsy->delete( $type, $id);
$update = $bappsy->update($endpoint, $id, $data, $q, $prePart, $postPart);
$create = $bappsy->create($endpoint, $data, $prePart, $postPart);

直接使用端点

SDK为一般数据操作提供了 get() getDetail() create() update() delete()方法,您可以在API文档中找到所有端点

致谢

由hochdreih在Tegernsee和Erding用❤️制作