承接 epicformbuilder/wixhive-php-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

epicformbuilder/wixhive-php-api

最新稳定版本:0.0.9

Composer 安装命令:

composer require epicformbuilder/wixhive-php-api

包简介

WixHive API PHP Library

README 文档

README

Build Status

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-04-21