ciricihq/cirici-beacon-control-client-bundle

用于管理 BeaconControl s2s API 的 Symfony 客户端

dev-master 2018-01-09 15:11 UTC

This package is auto-updated.

Last update: 2024-09-08 07:58:00 UTC


README

此捆绑包连接到 BeaconControl API 以执行各种操作

API 文档可在此处找到:https://beaconcontrol.io/dev/backend/api_docs/index.html

安装

使用 composer 需要此捆绑包

composer require ciricihq/cirici-beacon-control-client-bundle:dev-master

将其添加到 AppKernel.php

        $bundles = [
            ...
            new EightPoints\Bundle\GuzzleBundle\GuzzleBundle(),
            new Cirici\BeaconControlClientBundle\CiriciBeaconControlClientBundle(),
            ...
        ]

为 GuzzleBundle 配置 BeaconControl API 端点

guzzle:
    clients:
        beacon_contol_s2s:
            base_url: "%beacon_control_s2s_api_base_url%"

配置

将以下参数添加到 parameters.yml

    beacon_control_s2s_api_id: <your beacon-control oauth api id>
    beacon_control_s2s_api_secret: <your beacon-control oauth api secret>
    beacon_control_s2s_admin_email: <your beacon-control admin email>
    beacon_control_s2s_admin_password: <your beacon-control admin password>
    beacon_control_s2s_api_base_url: <your beacon-control api base-url>

享受吧!