epicformbuilder/wixhive-php-api
最新稳定版本:0.0.9
Composer 安装命令:
composer require epicformbuilder/wixhive-php-api
包简介
WixHive API PHP Library
README 文档
README
This library is a PHP wrapper WixHive API.
Usage
// create WixHive object $wixHive = new WixHive("{app_id}", "{app_secret_key}"); // generate data for activity $field = new \stdClass(); $field->name = "Name"; $field->value = "Value"; $activityInfo = new \stdClass(); $activityInfo->fields = [$field]; // create the model $createActivity = new CreateActivity( new DateTime(), ActivityType::CONTACT_CONTACT_FORM, null, null, $activityInfo, ); // create the command to execute $command = new CreateContactActivity($createActivity); try{ /** @var ActivityResult $data */ $data = $wixHive->execute($command, "{instance_id}" $userSessionToken); // <-- $userSessionToken comes from Wix JS SDK }catch (WixHiveException $e){ // catch an error here print_r($e->getMessage()); } // check what we got print_r($data); exit;
WixHive documentation live here
统计信息
- 总下载量: 104
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-04-21