2017 © Pedro Peláez
 

library affilinet-facade

simplifies the usage of the WebService by affili.net

image

suit-it/affilinet-facade

simplifies the usage of the WebService by affili.net

  • Saturday, March 26, 2016
  • by Kürbis
  • Repository
  • 1 Watchers
  • 2 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

AffilinetFacade

simplifies the usage of the WebService by affili.net, (*1)

Installation

Open a command console, enter your project directory and add the following to your composer.json file:, (*2)

```sh "require": { "suit-it/affilinet-facade": "dev-master" },, (*3)


## Examples ```php <?php define('PUBLISHER_ID', '12345'); define('PUBLISHER_PASSWORD', 'abcde'); $publisherLogon = new PublisherLogon(PUBLISHER_ID, PUBLISHER_PASSWORD); $publisherService = new PublisherService($publisherLogon); $programInfoMessagesResponse = $publisherService->getProgramInfoMessages([ 'Request' => [ 'TimeSpan' => PublisherService::TIME_SPAN_LAST_LOGIN, 'Query' => '', 'MessageStatus' => PublisherService::MESSAGE_STATUS_ALL ] ]); print_r(programInfoMessagesResponse);

Why? See the difference!

getProgramCategories without AffilinetFacade

<?php 

// Send a request to the Logon Service to get an authentication token
$soapLogon = new SoapClient("https://api.affili.net/V2.0/Logon.svc?wsdl");
$token = $soapLogon->Logon(array(
    'Username'  => "AFFILINET_USER_NAME",
    'Password'  => "AFFILINET_PUBLISHER_PASSWORD",
    'WebServiceType' => "Publisher"
));

$soapRequest = new SoapClient("https://api.affili.net/V2.0/PublisherProgram.svc?wsdl");
$response = $soapRequest->GetProgramCategories($token);

// Show response
print_r($response);

getProgramCategories with AffilinetFacade

  <?php
  use AffilinetFacade;

  // Login
  $publisherLogon = new PublisherLogon("AFFILINET_USER_NAME", "AFFILINET_PUBLISHER_PASSWORD");
  $publisherService = new PublisherService($publisherLogon);

  // Show response
  print_r($publisherService->getProgramCategories();

License

AffilinetFacade is released under the MIT License., (*4)

The Versions

26/03 2016

dev-master

9999999-dev https://github.com/suit-it/AffilinetFacade

simplifies the usage of the WebService by affili.net

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

affilinet affili affilinet soap

04/03 2016

dev-develop

dev-develop

simplifies the usage of the WebService by affili.net

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires