<?php

namespace Tops\AmazonSellingPartnerAPI\Api;

class SellersApi extends BaseApi
{

    /**
     * Operation Get Marketplace Participantions
     *
     * @return json Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller's participation in those marketplaces.
     *
     * @author Chetan Meena <chetan@topsinfosolutions.com>
     *
     * About more Ref: https://github.com/amzn/selling-partner-api-docs/blob/main/references/sellers-api/sellers.md#getmarketplaceparticipations
     */
    public function getMarketplaceParticipations()
    {
        $resource_path = '/sellers/v1/marketplaceParticipations';
        $query_params = [];
        $http_body = '';
        $method = 'GET';

        $curl_headers = $this->generateRequest($resource_path, $query_params, $http_body, $this->config, $method);

        $url = $this->config->getHost() . $resource_path;
        return $this->sendRequest($url, $query_params, $http_body, $curl_headers, $method);
    }
}
