2017 © Pedro Peláez
 

symfony-bundle ecircle-bundle

Bigfoot ecircle bundle

image

bigfoot/ecircle-bundle

Bigfoot ecircle bundle

  • Thursday, November 20, 2014
  • by gmanen
  • Repository
  • 14 Watchers
  • 1 Stars
  • 4,399 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 2 % Grown

The README.md

EcircleBundle

EcircleBundle is part of the framework BigFoot created by C2IS., (*1)

Installation

Add 'bigfoot/ecircle-bundle' into your composer.json file in the 'require' section:, (*2)

``` json // composer.json "require": { ... ... "bigfoot/ecircle-bundle": "dev-master", }, (*3)


Update your project: ``` shell php composer.phar update

Enter your credentials in the config file:, (*4)

``` shell, (*5)

app/config.yml

... ... parameters: bigfoot_ecircle: client: wsdl_url: 'http://webservices.ecircle-ag.com/soap/ecm.wsdl' request: account_1: realm: 'http://your-ecircle-url.com' user: 'User' passwd: 'Password', (*6)


Create a class file into the directory Options with the name of the E-circle method followed by 'Options': ```php // src/Bigfoot/Bundle/EcircleBundle/Options/SubscribeMemberByEmailOptions.php namespace Bigfoot\Bundle\EcircleBundle\Options; class subscribeMemberByEmailOptions { public $email; public $groupId; public $session; public $sendMessage = false; }

The parameters must be the same as the Ecircle method., (*7)

Create a new method in the service 'bigfoot_ecircle.client':, (*8)

// src/Bigfoot/Bundle/EcircleBundle/Services/BigfootEcircleClient.php
public function subscribeMemberByEmail($email,$groupId)
{

    if (!$this->sessionId) {
        throw new Exception('Client no connected');
    }

    $subscribeMemberByEmailOptions = $this->options('SubscribeMemberByEmail');

    $subscribeMemberByEmailOptions->email   = $email;
    $subscribeMemberByEmailOptions->session = $this->sessionId;
    $subscribeMemberByEmailOptions->groupId = $groupId;

    $result = $this->client->subscribeMemberByEmail($subscribeMemberByEmailOptions);

    return $result;
}

Usage

Into an action method:, (*9)

// Controller/DefaultController.php
$client = $this->get('bigfoot_ecircle.client')->connect('account_1');
$retour = $client->subscribeMemberByEmail('example@email.com','99');
$client->disconnect();

The Versions

20/11 2014

dev-master

9999999-dev

Bigfoot ecircle bundle

  Sources   Download

MIT

The Requires

 

by S.Huot

20/11 2014

2.2.x-dev

2.2.9999999.9999999-dev

Bigfoot ecircle bundle

  Sources   Download

MIT

The Requires

 

by S.Huot

20/11 2014

v2.2.1

2.2.1.0

Bigfoot ecircle bundle

  Sources   Download

MIT

The Requires

 

by S.Huot

19/06 2014

2.1.x-dev

2.1.9999999.9999999-dev

Bigfoot ecircle bundle

  Sources   Download

MIT

The Requires

 

by S.Huot

19/06 2014

v2.1.2

2.1.2.0

Bigfoot ecircle bundle

  Sources   Download

MIT

The Requires

 

by S.Huot

16/06 2014

v2.1.1

2.1.1.0

Bigfoot ecircle bundle

  Sources   Download

MIT

The Requires

 

by S.Huot

13/02 2014

dev-content

dev-content

Bigfoot ecircle bundle

  Sources   Download

MIT

The Requires

 

by S.Huot

21/01 2014

1.0.0

1.0.0.0

Bigfoot ecircle bundle

  Sources   Download

MIT

The Requires

 

by S.Huot