2017 © Pedro Peláez
 

library client

Client for SentryWorker service

image

sentryworker/client

Client for SentryWorker service

  • Friday, February 10, 2017
  • by sentryworker
  • Repository
  • 0 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

SentryWorker Client Library

Installation

You can install client library by composer., (*1)

composer require sentryworker/client

Or if you have to autoload it manually you can use old style autoloader, just require one src/SentryWorker/autoload.php, (*2)

require_once 'src/SentryWorker/autoload.php';

Working example

When order form is completed you need to close order in sentryworker service. There is a simple example that do work., (*3)


require_once 'vendor/autoload.php'; use SentryWorker\Client; use SentryWorker\Exception\ClientException; $client = new Client(array( 'app_key' => 'APP_KEY', 'app_secret' => 'APP_SECRET', 'curl_opts' => array( 'connection_timeout' => 1, 'read_timeout' => 1, ) )); try { $trxId = $client->sendToReview('orderId'); echo $trxId; } catch (ClientException $e) { echo $e->getCode(); echo $e->getMessage(); }

Don't forget to include tracker js file on your order form to complete integration., (*4)

The Versions

10/02 2017

dev-master

9999999-dev https://github.com/sentryworker/php-client

Client for SentryWorker service

  Sources   Download

MIT

The Requires

  • php ^5.3|^7.0

 

by Alexey Bulygin

client sentryworker

10/02 2017

1.0.0

1.0.0.0 https://github.com/sentryworker/php-client

Client for SentryWorker service

  Sources   Download

MIT

The Requires

  • php ^5.3|^7.0

 

by Alexey Bulygin

client sentryworker