{"id":228975,"date":"2020-02-25T03:50:39","date_gmt":"2020-02-25T03:50:39","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=228975"},"modified":"2020-02-25T03:50:40","modified_gmt":"2020-02-25T03:50:40","slug":"how-to-install-sylius-and-fetch-access-token-for-api","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/","title":{"rendered":"How To Install Sylius and Fetch Access Token For API?"},"content":{"rendered":"\n<div class=\"wp-block-group has-background\" style=\"background-color:#f3fbfe\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<div class=\"wp-block-group has-background\" style=\"background-color:#eef9fd\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h1 class=\"has-text-align-center wp-block-heading\">SYLIUS INSTALLATION <\/h1>\n\n\n\n<h4 class=\"wp-block-heading\">For installing Sylius the following points are necessary : <\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li>The PHP version should be 7.2 or higher.<\/li><li>The composer should have been installed.<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Follow the below given points to install Sylius:<\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li>To creating your new project, run the following command :<ul><li>$ composer create-project sylius\/sylius-standard <em>your_project_name<\/em><\/li><\/ul><\/li><li>Move inside your project directory<ul><li>$ cd your_project_name<\/li><\/ul><\/li><li>Now create<em> .env.local<\/em> file below <em>.env<\/em> file in the same directory and add\/customise with variable you want to override like:<ul><li>DATABASE_URL=mysql:\/\/username:password@host\/my_custom_sylius_database<\/li><\/ul><\/li><li>Run the following command to install Sylius:<ul><li>$ php bin\/console sylius:install<\/li><\/ul><\/li><li>The above command will ask to provide more information and it sets <em>currency as USD<\/em> and default <em>locale as English &#8211; US<\/em> which can be changed later.<\/li><li>For fully functional front-end run following commands:<ul><li>$ yarn install<\/li><li>$ yarn build<\/li><\/ul><\/li><\/ol>\n\n\n\n<p><strong>By following above commands you will be able to access your <em>Sylius<\/em> shop after running the command <em>symfony server:start<\/em> and accessing <em>http:\/\/127.0.0.1:8000<\/em> on your web browser.<\/strong><\/p>\n\n\n\n<h1 class=\"has-text-align-center wp-block-heading\">How to use Sylius API?<\/h1>\n\n\n\n<p>To use Sylius API, one need to get access token for the same which can be fetched by following steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Create <em>OAuth client<\/em> by running following command:<ul><li> $ php bin\/console sylius:oauth-server:create-client &#8211;grant-type=&#8221;password&#8221; &#8211;grant-type=&#8221;refresh_token&#8221; &#8211;grant-type=&#8221;token&#8221;<\/li><\/ul><\/li><li>You will receive a response like : A new client with <em>public id<\/em> <strong>XYZ<\/strong>, <em>secret<\/em> <em><strong>ABC<\/strong><\/em> has been added.<\/li><\/ol>\n\n\n\n<p>Now, From your <strong>API Client<\/strong> ,<\/p>\n\n\n\n<p>Register your API end point to get access token: <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">protected $endpoints = [\n        &#039;getToken&#039; =&gt; [\n            &#039;url&#039;           =&gt; &#039;oauth\/v2\/token&#039;,\n            &#039;method&#039;        =&gt; &#039;POST&#039;,\n            &#039;requiredToken&#039; =&gt; FALSE\n        ],\n    ];<\/pre>\n\n\n\n<p><strong>Creating a function to get Access Token<\/strong> :<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n     * This function revokes the access key once expired\n     * and set it to $this-&gt;accessToken.\n     *\/\n\n    public function revokeAccessKey($endpoint)\n    {\n        $this-&gt;ch = \\curl_init();\n        $request = $this-&gt;createRequest($endpoint);\n        $this-&gt;setDefaultCurlSettings();\n        $response = $this-&gt;createResponse();\n        \n        if (\\curl_errno($this-&gt;ch)) {\n            $response[&#039;error&#039;] = \\curl_error($this-&gt;ch);\n            $response[&#039;code&#039;] = 0;\n        }\n        \\curl_close($this-&gt;ch);\n        if ($response[&#039;response_code&#039;] == 200 &amp;&amp; isset($response[&#039;access_token&#039;])) {\n            $this-&gt;accessToken = $response[&#039;access_token&#039;];\n        }\n        \n    }<\/pre>\n\n\n\n<p>The above function call 3 major functions:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Creating request for Access Token API.<\/li><li>Default Curl Setting.<\/li><li>Creating response for Access Token API.<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Creating request for Access Token API.<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\">protected function createRequest($endpoint)\n    {\n        if (! array_key_exists($endpoint, $this-&gt;endpoints)) {\n            return;\n        }\n        $method = $this-&gt;endpoints[$endpoint][&#039;method&#039;];\n\n        $endpoint = $this-&gt;endpoints[$endpoint][&#039;url&#039;];\n\n        $body    = &#039;&#039;;\n\n        \/\/$this-&gt;url is your store URL\n        $url = $this-&gt;url . $endpoint;\n        \n        $isAuthenticate = true;\n\n        if(&#039;oauth\/v2\/token&#039; === $endpoint) {\n            $data = [\n                &#039;grant_type&#039; =&gt; &#039;password&#039;,\n                &#039;client_id&#039; =&gt; $this-&gt;clientId,\n                &#039;client_secret&#039; =&gt; $this-&gt;clientSecret,\n                &#039;username&#039; =&gt; $this-&gt;username,\n                &#039;password&#039; =&gt;  $this-&gt;password\n            ];\n            $isAuthenticate = false;\n        }\n\n        $hasData = !empty($data);\n        \/\/ Setup authentication.\n        $this-&gt;authenticate($url, $isAuthenticate); \n        \/\/ Setup method.\n        $this-&gt;setupMethod($method);\n        \/\/ Include post fields.\n        \n        if ($hasData) {\n            $body = json_encode($data);\n            curl_setopt($this-&gt;ch, CURLOPT_POSTFIELDS, $body);\n        }\n        return;\n    }\n\n    protected function authenticate($url, $isAuthenticate)\n    {\n        \\curl_setopt($this-&gt;ch, CURLOPT_URL, $url);\n        \\curl_setopt($this-&gt;ch, CURLOPT_HTTPHEADER, $this-&gt;getRequestHeaders($isAuthenticate));\n    }\n\n    \/**\n    * Setup method.\n    *\n    * @param string $method Request method.\n    *\/\n    protected function setupMethod($method)\n    {\n        if (&#039;POST&#039; == $method) {\n            \\curl_setopt($this-&gt;ch, CURLOPT_POST, true);\n            \\curl_setopt($this-&gt;ch, CURLOPT_CUSTOMREQUEST, $method);\n        } elseif (\\in_array($method, [&#039;PATCH&#039;, &#039;PUT&#039;, &#039;DELETE&#039;, &#039;OPTIONS&#039;])) {\n            \\curl_setopt($this-&gt;ch, CURLOPT_CUSTOMREQUEST, $method);\n        }\n    }<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Default Curl Setting.<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n     * This function sets default cURL settings.\n     *\/\n    protected function setDefaultCurlSettings()\n    {\n        $verifySsl       = !empty($this-&gt;options[&#039;verifySsl&#039;]) ? $this-&gt;options[&#039;verifySsl&#039;] : false;\n        $timeout         = !empty($this-&gt;options[&#039;timeout&#039;]) ? $this-&gt;options[&#039;timeout&#039;] : 60 ;\n        $followRedirects = !empty($this-&gt;options[&#039;followRedirects&#039;]) ? $this-&gt;options[&#039;followRedirects&#039;] : true;\n\n        \\curl_setopt($this-&gt;ch, CURLOPT_SSL_VERIFYPEER, $verifySsl);\n        if (!$verifySsl) {\n            \\curl_setopt($this-&gt;ch, CURLOPT_SSL_VERIFYHOST, $verifySsl);\n        }\n        if ($followRedirects) {\n            \\curl_setopt($this-&gt;ch, CURLOPT_FOLLOWLOCATION, $followRedirects);\n        }\n        \\curl_setopt($this-&gt;ch, CURLOPT_CONNECTTIMEOUT, $timeout);\n        \\curl_setopt($this-&gt;ch, CURLOPT_TIMEOUT, $timeout);\n        \\curl_setopt($this-&gt;ch, CURLOPT_RETURNTRANSFER, true);\n        \\curl_setopt($this-&gt;ch, CURLOPT_HEADER, 1);\n    }<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Creating response for Access Token API.<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n     * Create response.\n     *\n     * @return Response\n     *\/\n    protected function createResponse()\n    {\n        $body    = \\curl_exec($this-&gt;ch);\n        $code    = \\curl_getinfo($this-&gt;ch, CURLINFO_HTTP_CODE);\n        $code    = \\curl_getinfo($this-&gt;ch, CURLINFO_HTTP_CODE);\n        $header_size = curl_getinfo($this-&gt;ch, CURLINFO_HEADER_SIZE);\n        $headers = substr($body, 0, $header_size);\n        $body = explode(&quot;\\r\\n&quot;, $body);\n        try {\n            $matches  = array_values(preg_grep(&#039;\/Link\/&#039;, $body));\n            if (!empty($matches) &amp;&amp; strpos($matches[0], &#039;&gt;; rel=&quot;next&#039;)) {\n                $link = explode(&quot;:&quot;, $matches[0], 2);\n                $start  = strripos($link[1], &#039;page_info=&#039;);\n                $end    = strripos($link[1], &#039;&gt;; rel=&quot;next&#039;, $start + 10);\n                $length = $end - $start;\n                $result = substr($link[1], $start + 10, $length - 10);\n            }\n\n            $count = count($body) - 1;\n            $body = json_decode($body[$count], true);\n        } catch (\\Exception $e) {\n            $body = [];\n        }\n        if (!empty($body) &amp;&amp; gettype($body) != &#039;integer&#039; &amp;&amp; gettype($body) != &#039;boolean&#039;) {\n            $response = array_merge([&#039;response_code&#039; =&gt; $code], $body);\n            if (!empty($result)) {\n                $response[&#039;link&#039;] = $result;\n            }\n        } else {\n            $response = [ &#039;response_code&#039; =&gt; $code ];\n        }\n        \/\/ Register response.\n        return $response;\n    }<\/pre>\n<\/div><\/div>\n\n\n\n<p>This will set fetched <strong>Access Token<\/strong> into <strong>$this-&gt;accessToken variable<\/strong> which can be further used to manipulate Sylius Store Data with APIs.<\/p>\n\n\n\n<p><strong>NOTE<\/strong> &#8211; The older version of PHP will result in installing older version of Sylius.<\/p>\n\n\n\n<p>Thanks for reading me. I hope this blog would help you with a better understanding of the Sylius Installation and getting Access Token. Please share your reviews on this, which will support me to write more.<\/p>\n\n\n\n<p>Until next time. \ud83d\udc4b<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>SYLIUS INSTALLATION For installing Sylius the following points are necessary : The PHP version should be 7.2 or higher. The composer should have been installed. Follow the below given points to install Sylius: To creating your new project, run the following command : $ composer create-project sylius\/sylius-standard your_project_name Move inside your project directory $ cd <a href=\"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":310,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3649,2710,4407],"class_list":["post-228975","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-akeneo","tag-symfony","tag-uvdesk"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Install Sylius and Fetch Access Token For API? - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install Sylius and Fetch Access Token For API? - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"SYLIUS INSTALLATION For installing Sylius the following points are necessary : The PHP version should be 7.2 or higher. The composer should have been installed. Follow the below given points to install Sylius: To creating your new project, run the following command : $ composer create-project sylius\/sylius-standard your_project_name Move inside your project directory $ cd [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-25T03:50:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-25T03:50:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Kumar Saurabh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kumar Saurabh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/\"},\"author\":{\"name\":\"Kumar Saurabh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/fe421d7e87019de3a91449143b4e8c0d\"},\"headline\":\"How To Install Sylius and Fetch Access Token For API?\",\"datePublished\":\"2020-02-25T03:50:39+00:00\",\"dateModified\":\"2020-02-25T03:50:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/\"},\"wordCount\":372,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"keywords\":[\"Akeneo\",\"symfony\",\"uvdesk\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/\",\"name\":\"How To Install Sylius and Fetch Access Token For API? - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2020-02-25T03:50:39+00:00\",\"dateModified\":\"2020-02-25T03:50:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install Sylius and Fetch Access Token For API?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/fe421d7e87019de3a91449143b4e8c0d\",\"name\":\"Kumar Saurabh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/08f4ea2512da567b3fbff160be0eeb27680fc7c82f1f902c8a58bead5cf64b51?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/08f4ea2512da567b3fbff160be0eeb27680fc7c82f1f902c8a58bead5cf64b51?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Kumar Saurabh\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/kumar-saurabh108\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Install Sylius and Fetch Access Token For API? - Webkul Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/","og_locale":"en_US","og_type":"article","og_title":"How To Install Sylius and Fetch Access Token For API? - Webkul Blog","og_description":"SYLIUS INSTALLATION For installing Sylius the following points are necessary : The PHP version should be 7.2 or higher. The composer should have been installed. Follow the below given points to install Sylius: To creating your new project, run the following command : $ composer create-project sylius\/sylius-standard your_project_name Move inside your project directory $ cd [...]","og_url":"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2020-02-25T03:50:39+00:00","article_modified_time":"2020-02-25T03:50:40+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Kumar Saurabh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Kumar Saurabh","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/"},"author":{"name":"Kumar Saurabh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/fe421d7e87019de3a91449143b4e8c0d"},"headline":"How To Install Sylius and Fetch Access Token For API?","datePublished":"2020-02-25T03:50:39+00:00","dateModified":"2020-02-25T03:50:40+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/"},"wordCount":372,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"keywords":["Akeneo","symfony","uvdesk"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/","url":"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/","name":"How To Install Sylius and Fetch Access Token For API? - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2020-02-25T03:50:39+00:00","dateModified":"2020-02-25T03:50:40+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-install-sylius-and-fetch-access-token-for-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Install Sylius and Fetch Access Token For API?"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/fe421d7e87019de3a91449143b4e8c0d","name":"Kumar Saurabh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/08f4ea2512da567b3fbff160be0eeb27680fc7c82f1f902c8a58bead5cf64b51?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/08f4ea2512da567b3fbff160be0eeb27680fc7c82f1f902c8a58bead5cf64b51?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Kumar Saurabh"},"url":"https:\/\/webkul.com\/blog\/author\/kumar-saurabh108\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/228975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/310"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=228975"}],"version-history":[{"count":17,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/228975\/revisions"}],"predecessor-version":[{"id":229037,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/228975\/revisions\/229037"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=228975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=228975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=228975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}