2017 © Pedro Peláez
 

library wixhive-php-api

WixHive API PHP Library

image

epicformbuilder/wixhive-php-api

WixHive API PHP Library

  • Tuesday, March 22, 2016
  • by epicformbuilder
  • Repository
  • 1 Watchers
  • 1 Stars
  • 55 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

WixHive API PHP Library

Build Status, (*1)

This library is a PHP wrapper WixHive API., (*2)

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, (*3)

The Versions

22/03 2016

dev-master

9999999-dev https://github.com/epicformbuilder/wixhive-php-api

WixHive API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Epic Form Builder Team

php wix wixhive

22/03 2016

0.0.5

0.0.5.0 https://github.com/epicformbuilder/wixhive-php-api

WixHive API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Epic Form Builder Team

php wix wixhive

26/12 2015

0.0.4

0.0.4.0 https://github.com/epicformbuilder/wixhive-php-api

WixHive API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Epic Form Builder Team

php wix wixhive

18/11 2015

0.0.3

0.0.3.0 https://github.com/epicformbuilder/wixhive-php-api

WixHive API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0
  • ext-http >=1.7.6

 

The Development Requires

by Epic Form Builder Team

php wix wixhive

04/06 2015

0.0.2

0.0.2.0 https://github.com/Epicformbuilder/wixhive-php-api

WixHive API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

The Development Requires

by Epic Form Builder Team

php wix wixhive

21/04 2015

0.0.1

0.0.1.0 https://github.com/Epicformbuilder/wixhive-php-api

WixHive API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

The Development Requires

by Epic Form Builder Team

php wix wixhive