{"id":39147,"date":"2024-12-17T05:57:59","date_gmt":"2024-12-17T05:57:59","guid":{"rendered":"https:\/\/www.icreativetechnologies.com\/?p=39147"},"modified":"2024-12-17T05:57:59","modified_gmt":"2024-12-17T05:57:59","slug":"how-to-use-shopware-6-php-rest-client-a-complete-guide","status":"publish","type":"post","link":"https:\/\/www.icreativetechnologies.com\/de\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/","title":{"rendered":"How to Use Shopware 6 PHP Rest Client: A Complete Guide"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"39147\" class=\"elementor elementor-39147\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4eaaa elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4eaaa\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-41c2ebf3\" data-id=\"41c2ebf3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d1ef18a elementor-widget elementor-widget-theme-post-featured-image elementor-widget-image\" data-id=\"d1ef18a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"theme-post-featured-image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"527\" src=\"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/12\/Shopware-6-PHP-1024x675.jpg\" class=\"attachment-large size-large wp-image-39148\" alt=\"Shopware 6 PHP\" srcset=\"\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/12\/Shopware-6-PHP-1024x675.jpg 1024w, \/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/12\/Shopware-6-PHP-300x198.jpg 300w, \/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/12\/Shopware-6-PHP-768x506.jpg 768w, \/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/12\/Shopware-6-PHP.jpg 1080w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-771f2c85 elementor-widget elementor-widget-text-editor\" data-id=\"771f2c85\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\n<h2 class=\"wp-block-heading\"><strong>Overview<\/strong><\/h2>\n\n\n\n<p>In this guide, we will learn how to integrate and use a PHP client with <strong><a href=\"https:\/\/www.icreativetechnologies.com\/how-to-retrieve-an-access-token-for-shopware-6-api-using-postman\/\">Shopware 6 API<\/a><\/strong>. This includes using the rest API and creating a client for seamless communication between your Shopware plugin and third-party services.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Prerequisites<\/strong><\/h2>\n\n\n\n<p>To use PHP rest client with the plugin dependency for using Rest client in plugin.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>REST API Integration for Shopware 6<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Plugin Configuration with <\/strong><strong>config.xml<\/strong><\/h3>\n\n\n\n<p>To add a domain URL for a third party into the REST API client via plugin configuration. Define a configuration file to allow users to input the third-party domain URL. In the plugin configuration file, add fields to accept the domain URL.<\/p>\n\n\n\n<p>xml<\/p>\n\n\n\n<p>Copy code<\/p>\n\n\n\n<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<\/p>\n\n\n\n<p>&lt;config xmlns:xsi=&#8221;http:\/\/www.w3.org\/2001\/XMLSchema-instance&#8221;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xsi:noNamespaceSchemaLocation=&#8221;<a href=\"https:\/\/raw.githubusercontent.com\/shopware\/shopware\/trunk\/src\/Core\/System\/SystemConfig\/Schema\/config.xsd\">https:\/\/raw.githubusercontent.com\/shopware\/shopware\/trunk\/src\/Core\/System\/SystemConfig\/Schema\/config.xsd<\/a>&#8220;&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&lt;card&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;Basic configuration&lt;\/title&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;title lang=&#8221;de-DE&#8221;&gt;Basiseinstellung&lt;\/title&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input-field type=&#8221;text&#8221;&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;name&gt;domainUrl&lt;\/name&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;defaultValue&gt;your_domain&lt;\/defaultValue&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label&gt;Enter domain URl&lt;\/label&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;label lang=&#8221;de-DE&#8221;&gt;Domain URl eingeben&lt;\/label&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/input-field&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/card&gt;<\/p>\n\n\n\n<p>&lt;\/config&gt;<\/p>\n\n\n\n<p>This setup allows developers to input a domain URL that will be used for API integration.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Register the Client in <\/strong><strong>service.xml<\/strong><\/h3>\n\n\n\n<p>Register your<strong> <\/strong>ExampleClient into service.xml , inject system config service for get domain url from configuration.<\/p>\n\n\n\n<p>&lt;?xml version=&#8221;1.0&#8243; ?&gt;<\/p>\n\n\n\n<p>&lt;container xmlns=&#8221;http:\/\/symfony.com\/schema\/dic\/services&#8221;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xmlns:xsi=&#8221;http:\/\/www.w3.org\/2001\/XMLSchema-instance&#8221;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xsi:schemaLocation=&#8221;http:\/\/symfony.com\/schema\/dic\/services http:\/\/symfony.com\/schema\/dic\/services\/services-1.0.xsd&#8221;&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&lt;services&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;service id=&#8221;PluginExample\\RestApi\\ExampleClient&#8221; public=&#8221;true&#8221;&gt;<\/p>\n\n\n\n<p>&nbsp; &lt;argument type=&#8221;service&#8221; id=&#8221;Shopware\\Core\\System\\SystemConfig\\SystemConfigService&#8221;\/&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/service&gt;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/services&gt;<\/p>\n\n\n\n<p>&lt;\/container&gt;<\/p>\n\n\n\n<p>This step ensures your client is properly integrated and configured to fetch the API URL dynamically.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Create the PHP Client<\/strong><\/h3>\n\n\n\n<p>Create the Shopware 6 API client class to handle HTTP requests using the GuzzleHTTP library.<\/p>\n\n\n\n<p><strong>File Path<\/strong> :&nbsp; src\/RestApi\/<\/p>\n\n\n\n<p>The constructor method initializes the ExampleClient class. It defines a private property $client of type Client and initializes it with a new instance of GuzzleHttp\\Client. This client will be used to make HTTP requests.<\/p>\n\n\n\n<p>&lt;?php declare(strict_types=1);<\/p>\n\n\n\n<p>namespace PluginExample\\Controller;<\/p>\n\n\n\n<p>use GuzzleHttp\\Client;<\/p>\n\n\n\n<p>#[Route(defaults: [&#8216;_routeScope&#8217; =&gt; [&#8216;api&#8217;]])]<\/p>\n\n\n\n<p>class ExampleClient extends AbstractController<\/p>\n\n\n\n<p>{<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;public const MM_ENDPOINT = &#8216;\/example\/example_create_from_shopware&#8217;;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;public function __construct(<\/p>\n\n\n\n<p>Private Read<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;) {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;client = new Client();<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>Here, the GuzzleHTTP client is initialized to make HTTP requests, an essential step for Shopware 6 API integration.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Implement a Method to Call the REST API<\/strong><\/h3>\n\n\n\n<p>Sends an HTTP POST request to a specified endpoint URL.<\/p>\n\n\n\n<p><strong>$this-&gt;client-&gt;post(&#8230;) <\/strong>&nbsp;:&nbsp; Calls the post method on the GuzzleHTTP client ($this-&gt;client) to perform an HTTP POST request.<\/p>\n\n\n\n<p><strong>$url <\/strong>. self::MM_ENDPOINT: Constructs the complete URL by appending the endpoint constant self::MM_ENDPOINT to the base URL ($url).<\/p>\n\n\n\n<p>&lt;?php declare(strict_types=1);<\/p>\n\n\n\n<p>namespace PluginExample\\Controller;<\/p>\n\n\n\n<p>use GuzzleHttp\\Client;<\/p>\n\n\n\n<p>use GuzzleHttp\\Exception\\GuzzleException;<\/p>\n\n\n\n<p>use Psr\\Http\\Message\\ResponseInterface;<\/p>\n\n\n\n<p>use Shopware\\Core\\Framework\\Context;<\/p>\n\n\n\n<p>use Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController;<\/p>\n\n\n\n<p>use Symfony\\Component\\Routing\\Annotation\\Route;<\/p>\n\n\n\n<p>use Symfony\\Component\\HttpFoundation\\JsonResponse;<\/p>\n\n\n\n<p>use Shopware\\Core\\System\\SystemConfig\\SystemConfigService;<\/p>\n\n\n\n<p>#[Route(defaults: [&#8216;_routeScope&#8217; =&gt; [&#8216;api&#8217;]])]<\/p>\n\n\n\n<p>class ExampleClient extends AbstractController<\/p>\n\n\n\n<p>{<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;public function __construct(<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;private readonly SystemConfigService $systemConfigService<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;) {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;client = new Client();<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;public function sendExampleData($payloadData, $context): void<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;{<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$url = $this-&gt;systemConfigService-&gt;get(&#8216;Plugin.config.domainUrl&#8217;);<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;client-&gt;post(<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$url . self::MM_ENDPOINT,<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8216;headers&#8217; =&gt; [&#8216;Content-Type&#8217; =&gt; &#8216;application\/json&#8217;],<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8216;json&#8217; =&gt; json_encode($payloadData)<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>This guide explains how to use a PHP client with the Shopware 6 Admin API to interact with third-party services. By using the Shopware 6 API and REST client libraries like GuzzleHTTP, developers can send and receive data effectively.<\/p>\n\n\n\n<p>With this setup, developers can add new features to Shopware and build plugins for different eCommerce needs.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Overview In this guide, we will learn how to integrate and use [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":39148,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[86],"tags":[443,441,444],"class_list":["post-39147","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shopware","tag-shopware-6-admin-api","tag-shopware-6-api","tag-shopware-6-php"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Shopware 6 PHP REST Client: Setup and API Integration<\/title>\n<meta name=\"description\" content=\"Master the Shopware 6 PHP REST client. Learn to configure, integrate APIs, and efficiently exchange data in your plugins with simple steps.\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Shopware 6 PHP REST Client: Setup and API Integration\" \/>\n<meta property=\"og:description\" content=\"Master the Shopware 6 PHP REST client. Learn to configure, integrate APIs, and efficiently exchange data in your plugins with simple steps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.icreativetechnologies.com\/de\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"iCreative Technologies\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-17T05:57:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/12\/Shopware-6-PHP.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"712\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Bhavya Shah\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bhavya Shah\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-use-shopware-6-php-rest-client-a-complete-guide\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-use-shopware-6-php-rest-client-a-complete-guide\\\/\"},\"author\":{\"name\":\"Bhavya Shah\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#\\\/schema\\\/person\\\/dc57fa9f205d886138374edc2464e992\"},\"headline\":\"How to Use Shopware 6 PHP Rest Client: A Complete Guide\",\"datePublished\":\"2024-12-17T05:57:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-use-shopware-6-php-rest-client-a-complete-guide\\\/\"},\"wordCount\":947,\"publisher\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-use-shopware-6-php-rest-client-a-complete-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/Shopware-6-PHP.jpg\",\"keywords\":[\"Shopware 6 Admin API\",\"Shopware 6 API\",\"shopware 6 PHP\"],\"articleSection\":[\"Shopware\"],\"inLanguage\":\"de\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-use-shopware-6-php-rest-client-a-complete-guide\\\/\",\"url\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-use-shopware-6-php-rest-client-a-complete-guide\\\/\",\"name\":\"Shopware 6 PHP REST Client: Setup and API Integration\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-use-shopware-6-php-rest-client-a-complete-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-use-shopware-6-php-rest-client-a-complete-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/Shopware-6-PHP.jpg\",\"datePublished\":\"2024-12-17T05:57:59+00:00\",\"description\":\"Master the Shopware 6 PHP REST client. Learn to configure, integrate APIs, and efficiently exchange data in your plugins with simple steps.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-use-shopware-6-php-rest-client-a-complete-guide\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-use-shopware-6-php-rest-client-a-complete-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-use-shopware-6-php-rest-client-a-complete-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/Shopware-6-PHP.jpg\",\"contentUrl\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/Shopware-6-PHP.jpg\",\"width\":1080,\"height\":712,\"caption\":\"Shopware 6 PHP\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/how-to-use-shopware-6-php-rest-client-a-complete-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use Shopware 6 PHP Rest Client: A Complete Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#website\",\"url\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/\",\"name\":\"iCreative Technologies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#organization\",\"name\":\"iCreative Technologies\",\"url\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/logo-e1628229333795.png.png\",\"contentUrl\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/logo-e1628229333795.png.png\",\"width\":240,\"height\":66,\"caption\":\"iCreative Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.icreativetechnologies.com\\\/#\\\/schema\\\/person\\\/dc57fa9f205d886138374edc2464e992\",\"name\":\"Bhavya Shah\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7897a7168f53fb5a48af86d4570a1e86b8354d56bb303aa45b6aaf8f477ac46d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7897a7168f53fb5a48af86d4570a1e86b8354d56bb303aa45b6aaf8f477ac46d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7897a7168f53fb5a48af86d4570a1e86b8354d56bb303aa45b6aaf8f477ac46d?s=96&d=mm&r=g\",\"caption\":\"Bhavya Shah\"},\"description\":\"Bhavya Shah is a Business Analyst at iCreative Technologies. He specializes in the eCommerce consulting for all business domains. He is working hand-in-hand with developers and clients to produce requirements and specifications that accurately reflect business needs and are technologically achievable.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Shopware 6 PHP REST Client: Setup and API Integration","description":"Master the Shopware 6 PHP REST client. Learn to configure, integrate APIs, and efficiently exchange data in your plugins with simple steps.","robots":{"index":"noindex","follow":"follow"},"og_locale":"de_DE","og_type":"article","og_title":"Shopware 6 PHP REST Client: Setup and API Integration","og_description":"Master the Shopware 6 PHP REST client. Learn to configure, integrate APIs, and efficiently exchange data in your plugins with simple steps.","og_url":"https:\/\/www.icreativetechnologies.com\/de\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/","og_site_name":"iCreative Technologies","article_published_time":"2024-12-17T05:57:59+00:00","og_image":[{"width":1080,"height":712,"url":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/12\/Shopware-6-PHP.jpg","type":"image\/jpeg"}],"author":"Bhavya Shah","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Bhavya Shah","Est. reading time":"3\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.icreativetechnologies.com\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/#article","isPartOf":{"@id":"https:\/\/www.icreativetechnologies.com\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/"},"author":{"name":"Bhavya Shah","@id":"https:\/\/www.icreativetechnologies.com\/#\/schema\/person\/dc57fa9f205d886138374edc2464e992"},"headline":"How to Use Shopware 6 PHP Rest Client: A Complete Guide","datePublished":"2024-12-17T05:57:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.icreativetechnologies.com\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/"},"wordCount":947,"publisher":{"@id":"https:\/\/www.icreativetechnologies.com\/#organization"},"image":{"@id":"https:\/\/www.icreativetechnologies.com\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/12\/Shopware-6-PHP.jpg","keywords":["Shopware 6 Admin API","Shopware 6 API","shopware 6 PHP"],"articleSection":["Shopware"],"inLanguage":"de"},{"@type":"WebPage","@id":"https:\/\/www.icreativetechnologies.com\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/","url":"https:\/\/www.icreativetechnologies.com\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/","name":"Shopware 6 PHP REST Client: Setup and API Integration","isPartOf":{"@id":"https:\/\/www.icreativetechnologies.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.icreativetechnologies.com\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.icreativetechnologies.com\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/12\/Shopware-6-PHP.jpg","datePublished":"2024-12-17T05:57:59+00:00","description":"Master the Shopware 6 PHP REST client. Learn to configure, integrate APIs, and efficiently exchange data in your plugins with simple steps.","breadcrumb":{"@id":"https:\/\/www.icreativetechnologies.com\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.icreativetechnologies.com\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.icreativetechnologies.com\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/#primaryimage","url":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/12\/Shopware-6-PHP.jpg","contentUrl":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/12\/Shopware-6-PHP.jpg","width":1080,"height":712,"caption":"Shopware 6 PHP"},{"@type":"BreadcrumbList","@id":"https:\/\/www.icreativetechnologies.com\/how-to-use-shopware-6-php-rest-client-a-complete-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.icreativetechnologies.com\/"},{"@type":"ListItem","position":2,"name":"How to Use Shopware 6 PHP Rest Client: A Complete Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.icreativetechnologies.com\/#website","url":"https:\/\/www.icreativetechnologies.com\/","name":"iCreative Technologies","description":"","publisher":{"@id":"https:\/\/www.icreativetechnologies.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.icreativetechnologies.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/www.icreativetechnologies.com\/#organization","name":"iCreative Technologies","url":"https:\/\/www.icreativetechnologies.com\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.icreativetechnologies.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/11\/logo-e1628229333795.png.png","contentUrl":"https:\/\/www.icreativetechnologies.com\/wp-content\/uploads\/2024\/11\/logo-e1628229333795.png.png","width":240,"height":66,"caption":"iCreative Technologies"},"image":{"@id":"https:\/\/www.icreativetechnologies.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.icreativetechnologies.com\/#\/schema\/person\/dc57fa9f205d886138374edc2464e992","name":"Bhavya Shah","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/secure.gravatar.com\/avatar\/7897a7168f53fb5a48af86d4570a1e86b8354d56bb303aa45b6aaf8f477ac46d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7897a7168f53fb5a48af86d4570a1e86b8354d56bb303aa45b6aaf8f477ac46d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7897a7168f53fb5a48af86d4570a1e86b8354d56bb303aa45b6aaf8f477ac46d?s=96&d=mm&r=g","caption":"Bhavya Shah"},"description":"Bhavya Shah is a Business Analyst at iCreative Technologies. He specializes in the eCommerce consulting for all business domains. He is working hand-in-hand with developers and clients to produce requirements and specifications that accurately reflect business needs and are technologically achievable."}]}},"_links":{"self":[{"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/posts\/39147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/comments?post=39147"}],"version-history":[{"count":0,"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/posts\/39147\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/media\/39148"}],"wp:attachment":[{"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/media?parent=39147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/categories?post=39147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icreativetechnologies.com\/de\/wp-json\/wp\/v2\/tags?post=39147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}