/** * Publishes the draft version of product changes for each product code specified in the request, and changes the product publish state to "live". * * @param PublishingScope $publishScope Describes the scope of the product publishing update, which can include individual product codes or all pending changes. */ public static function publishDraftsClient($dataViewMode, $publishScope) { $url = PublishingScopeUrl::publishDraftsUrl(); $mozuClient = new MozuClient(); $mozuClient->withResourceUrl($url)->withBody($publishScope)->withHeader(Headers::X_VOL_DATAVIEW_MODE, $dataViewMode); return $mozuClient; }