PHPackages                             wondeotec/emailbidding-sdk-legacy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. wondeotec/emailbidding-sdk-legacy

ActiveLibrary[API Development](/categories/api)

wondeotec/emailbidding-sdk-legacy
=================================

Collection of scripts to allow interactions with Emailbidding API (Guzzle 3 port)

v1.0.0(10y ago)08[2 PRs](https://github.com/wondeotec/emailbidding-sdk-legacy/pulls)MITPHPPHP &gt;=5.4

Since Oct 22Pushed 9y ago4 watchersCompare

[ Source](https://github.com/wondeotec/emailbidding-sdk-legacy)[ Packagist](https://packagist.org/packages/wondeotec/emailbidding-sdk-legacy)[ Docs](https://github.com/wondeotec/emailbidding-sdk-legacy)[ RSS](/packages/wondeotec-emailbidding-sdk-legacy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (5)Used By (0)

Emailbidding SDK (Guzzle 3 port)
================================

[](#emailbidding-sdk-guzzle-3-port)

This SDK serves to help Emailbiddings's publishers to integrate their systems with Emailbidding platform.

**Note:** This is a fork of [wondeotec/emailbidding-sdk](https://github.com/wondeotec/emailbidding-sdk) that uses Guzzle 3 instead of Guzzle 4+

Requirements
------------

[](#requirements)

You'll need to be install on your server the PHP 5.4 version or higher and add the package 'wondeotec/emailbidding-sdk' to you [composer](https://getcomposer.org/) dependencies.

Webhooks
--------

[](#webhooks)

If you are an Emailbidding publisher, then you can subscribe an endpoint and listen Emailbidding's events such as unsubscriptions, soft bounces, hard bounces, clicks or even opens.

This SDK helps you on testing your test to be able to receive an webhook event. Emailbidding system always send an HTTP POST request to the given endpoint with an JSON object on body identical to the following:

```
{
  "ip_address":"127.0.0.1",
  "action":"unsubscription",
  "campaign_id":6368,
  "list_external_id":"my_list",
  "reason":"user_request",
  "recipient_email_address":"email@domain.com",
  "hash":"8d4ba2b6fc195d3f95039377ac7208e6",
  "recipient_external_id":"5556664",
  "trigger_date":"2015-09-03 11:13:34",
  "type":"unsubscription"
}
```

This SDK provides you an object to send webhooks to your endpoint in the same way as the Emailbidding system will send to you on the production environment.

The object 'EB\\SDK\\Webhook\\Webhook' has a single method that accepts a payload and and endpoint. You can create an object of type 'EB\\SDK\\Webhook\\Payload', or you just can 'ask' to 'EB\\SDK\\Webhook\\Payload' to create an simple object to you. See the following example:

```
