Overview

Namespaces

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

Classes

  • SellerLabs\Snagshout\Client
  • SellerLabs\Snagshout\Model\AmazonData
  • SellerLabs\Snagshout\Model\Attribute
  • SellerLabs\Snagshout\Model\BookmarkMetadata
  • SellerLabs\Snagshout\Model\Campaign
  • SellerLabs\Snagshout\Model\Category
  • SellerLabs\Snagshout\Model\Image
  • SellerLabs\Snagshout\Model\ImageMetadata
  • SellerLabs\Snagshout\Model\Links
  • SellerLabs\Snagshout\Model\Product
  • SellerLabs\Snagshout\Model\PromoCode
  • SellerLabs\Snagshout\Model\Promotion
  • SellerLabs\Snagshout\Model\Shipping
  • SellerLabs\Snagshout\Model\V1GetCampaignsResponse
  • SellerLabs\Snagshout\Model\V1GetCategoriesResponse
  • SellerLabs\Snagshout\Model\V1GetStatus
  • SellerLabs\Snagshout\Model\V1GetStatusResponse
  • SellerLabs\Snagshout\Normalizer\AmazonDataNormalizer
  • SellerLabs\Snagshout\Normalizer\AttributeNormalizer
  • SellerLabs\Snagshout\Normalizer\BookmarkMetadataNormalizer
  • SellerLabs\Snagshout\Normalizer\CampaignNormalizer
  • SellerLabs\Snagshout\Normalizer\CategoryNormalizer
  • SellerLabs\Snagshout\Normalizer\ImageMetadataNormalizer
  • SellerLabs\Snagshout\Normalizer\ImageNormalizer
  • SellerLabs\Snagshout\Normalizer\LinksNormalizer
  • SellerLabs\Snagshout\Normalizer\NormalizerFactory
  • SellerLabs\Snagshout\Normalizer\ProductNormalizer
  • SellerLabs\Snagshout\Normalizer\PromoCodeNormalizer
  • SellerLabs\Snagshout\Normalizer\PromotionNormalizer
  • SellerLabs\Snagshout\Normalizer\ShippingNormalizer
  • SellerLabs\Snagshout\Normalizer\V1GetCampaignsResponseNormalizer
  • SellerLabs\Snagshout\Normalizer\V1GetCategoriesResponseNormalizer
  • SellerLabs\Snagshout\Normalizer\V1GetStatusNormalizer
  • SellerLabs\Snagshout\Normalizer\V1GetStatusResponseNormalizer
  • SellerLabs\Snagshout\Resource\CampaignResource
  • SellerLabs\Snagshout\Resource\CategoryResource
  • SellerLabs\Snagshout\Resource\FrontResource
  • SellerLabs\Snagshout\SyndicationClient
  • SellerLabs\Snagshout\Utils\NormalizerFactory
  • SellerLabs\Snagshout\Utils\NullNormalizer
  • Overview
  • Namespace
  • Class
 1: <?php
 2: 
 3: namespace SellerLabs\Snagshout\Resource;
 4: 
 5: use Joli\Jane\OpenApi\Runtime\Client\QueryParam;
 6: use Joli\Jane\OpenApi\Runtime\Client\Resource;
 7: class FrontResource extends Resource
 8: {
 9:     /**
10:      * 
11:      *
12:      * @param array  $parameters List of parameters
13:      * @param string $fetch      Fetch mode (object or response)
14:      *
15:      * @return \Psr\Http\Message\ResponseInterface|\SellerLabs\Snagshout\Model\V1GetStatusResponse
16:      */
17:     public function getStatus($parameters = array(), $fetch = self::FETCH_OBJECT)
18:     {
19:         $queryParam = new QueryParam();
20:         $url = '/api/v1/status';
21:         $url = $url . ('?' . $queryParam->buildQueryString($parameters));
22:         $headers = array_merge(array('Host' => 'www.snagshout.com', 'Accept' => array('application/json')), $queryParam->buildHeaders($parameters));
23:         $body = $queryParam->buildFormDataString($parameters);
24:         $request = $this->messageFactory->createRequest('GET', $url, $headers, $body);
25:         $promise = $this->httpClient->sendAsyncRequest($request);
26:         if (self::FETCH_PROMISE === $fetch) {
27:             return $promise;
28:         }
29:         $response = $promise->wait();
30:         if (self::FETCH_OBJECT == $fetch) {
31:             if ('200' == $response->getStatusCode()) {
32:                 return $this->serializer->deserialize((string) $response->getBody(), 'SellerLabs\\Snagshout\\Model\\V1GetStatusResponse', 'json');
33:             }
34:         }
35:         return $response;
36:     }
37: }
API documentation generated by ApiGen