mitquinn/heap-helper

此Composer包协助Heap服务器端API。

v1.0.1 2021-11-30 06:34 UTC

This package is auto-updated.

Last update: 2024-09-29 05:50:07 UTC


README

GitHub issues GitHub stars GitHub license

描述

Heap Helper是Heap服务器端API的一个简单封装。

Heap Helper提供

  • 与Heap服务器端API的简单集成。
  • Heap API端点的封装。
  • API期望提供的单个资源。

您可以在此处了解更多关于Heap的信息:https://heapanalytics.com/

$configuration = new \Mitquinn\HeapHelper\HeapConfiguration('apiKey', 'appId');
$heapHelper = new \Mitquinn\HeapHelper\HeapHelper($configuration);

$event = new \Mitquinn\HeapHelper\Resources\HeapEvent(
    'eventName', 
    'alice@example.com', 
    ['propertyKey' => 'propertyValue']
);

$heapResponse = $heapHelper->track($event);

安装

安装Heap Helper推荐的方式是通过Composer。

composer require mitquinn/heap-helper

许可证

Heap Helper在GNU通用公共许可证(GNU)下提供。请参阅许可证文件获取更多信息。

贡献者