Overview

Namespaces

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

Classes

  • Client
  • SyndicationClient
  • Overview
  • Namespace
  • Class

Class Client

Class Client

Namespace: SellerLabs\Snagshout
Package: SellerLabs\Snagshout
Author: Eduardo Trujillo ed@sellerlabs.com
Located at SellerLabs/Snagshout/Client.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
protected Resource
# buildResource( string $resourceClass )

A wrapper for constructing instances of resource classes.

A wrapper for constructing instances of resource classes.

Parameters

$resourceClass

Returns

Resource
public SellerLabs\Snagshout\Resource\CampaignResource
# campaign( )

Builds an instance of the Campaign resource.

Builds an instance of the Campaign resource.

Returns

SellerLabs\Snagshout\Resource\CampaignResource
public SellerLabs\Snagshout\Resource\CategoryResource
# category( )

Builds an instance of the Campaign resource.

Builds an instance of the Campaign resource.

Returns

SellerLabs\Snagshout\Resource\CategoryResource
public SellerLabs\Snagshout\Resource\FrontResource
# front( )

Builds an instance of the Front resource.

Builds an instance of the Front resource.

Returns

SellerLabs\Snagshout\Resource\FrontResource
Properties summary
protected string $publicId
#
protected string $secretKey
#
protected GuzzleHttp\Psr7\Uri $endpoint
#
API documentation generated by ApiGen