Overview

Namespaces

  • SellerLabs
    • Snagshout
      • Model
      • Normalizer
      • Resource
      • Utils

Classes

  • Client
  • SyndicationClient
  • Overview
  • Namespace
  • Class

Class SyndicationClient

Class SyndicationClient

Namespace: SellerLabs\Snagshout
Package: SellerLabs\Snagshout
Author: Eduardo Trujillo ed@sellerlabs.com
Located at SellerLabs/Snagshout/SyndicationClient.php
Methods summary
public
# __construct( string $publicId, string $secretKey )

SyndicationClient constructor.

SyndicationClient constructor.

Parameters

$publicId
$secretKey
public
# setPublicId( SellerLabs\Snagshout\string $publicId )

Parameters

$publicId
public
# setSecretKey( SellerLabs\Snagshout\string $secretKey )

Parameters

$secretKey
public
# setEndpoint( GuzzleHttp\Psr7\Uri $endpoint )

Parameters

$endpoint
protected string
# hash( string $content )

Computes the hash of a string using the secret key.

Computes the hash of a string using the secret key.

Parameters

$content

Returns

string
protected Closure
# makeAuthHandler( )

A Guzzle middleware that automatically adds the required Authorization and Content-Hash headers required by the Snagshout API.

A Guzzle middleware that automatically adds the required Authorization and Content-Hash headers required by the Snagshout API.

Returns

Closure
public Psr\Http\Message\ResponseInterface
# getCampaigns( array $options = [] )

Searches for campaigns/offers.

Searches for campaigns/offers.

Parameters

$options

Returns

Psr\Http\Message\ResponseInterface
Properties summary
protected string $publicId
#
protected string $secretKey
#
protected GuzzleHttp\Psr7\Uri $endpoint
#
API documentation generated by ApiGen