{"id":141148,"date":"2018-09-03T05:17:18","date_gmt":"2018-09-03T05:17:18","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=141148"},"modified":"2023-07-12T10:06:49","modified_gmt":"2023-07-12T10:06:49","slug":"how-to-use-guzzle-in-magento2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/","title":{"rendered":"How to use Guzzle in Magento 2"},"content":{"rendered":"\n<p>In this blog, we will discuss how we use the Guzzle in Magento 2. Let&#8217;s get started<\/p>\n\n\n\n<p><strong>What is Guzzle in Magento 2<\/strong><\/p>\n\n\n\n<p>Guzzle is a PHP HTTP client that makes it easy to create some integrations with some web services. Its implementation code is more simpler, cleaner, and readable, in comparison with cURL.<\/p>\n\n\n\n<p>GuzzleHttp uses cURL by default, but it can use any HTTP client that you want other than cURL like PHP\u2019s stream wrapper or sockets, in case\u00a0<code class=\"language-plaintext highlighter-rouge\">curl<\/code>\u00a0isn\u2019t installed on your Web Server.<\/p>\n\n\n\n<p>To know more about Guzzle&#8217;s request <a href=\"https:\/\/docs.guzzlephp.org\/en\/stable\/quickstart.html\">click here<\/a><\/p>\n\n\n\n<p>To use Guzzle we require some of the classes mentioned below these classes will help us to use Guzzle HTTP request in Magento 2.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">use GuzzleHttp\\Client;\nuse GuzzleHttp\\ClientFactory;\nuse GuzzleHttp\\Exception\\GuzzleException;\nuse GuzzleHttp\\Psr7\\Response;\nuse GuzzleHttp\\Psr7\\ResponseFactory;\nuse Magento\\Framework\\Webapi\\Rest\\Request;<\/pre>\n\n\n\n<p>Now we required a file in which we need a response from a api like we are using the controller in which we created the function <code>doRequest()<\/code> in which we have have requested to get the api response mentioned below.<br><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\n    \/**\n     * Do API request with provided params\n     *\n     * @param string $uriEndpoint\n     * @param array $params\n     * @param string $requestMethod\n     *\n     * @return Response\n     *\/\n    private function doRequest(\n        string $uriEndpoint,\n        array $params = &#091;],\n        string $requestMethod = Request::HTTP_METHOD_GET\n    ): Response {\n        \/** @var Client $client *\/\n        $client = $this-&gt;clientFactory-&gt;create(&#091;&#039;config&#039; =&gt; &#091;\n            &#039;base_uri&#039; =&gt; self::API_REQUEST_URI\n        ]]);\n\n        try {\n            $response = $client-&gt;request(\n                $requestMethod,\n                $uriEndpoint,\n                $params\n            );\n        } catch (GuzzleException $exception) {\n            \/** @var Response $response *\/\n            $response = $this-&gt;responseFactory-&gt;create(&#091;\n                &#039;status&#039; =&gt; $exception-&gt;getCode(),\n                &#039;reason&#039; =&gt; $exception-&gt;getMessage()\n            ]);\n        }\n\n        return $response;\n    }<\/pre>\n\n\n\n<p>Now in controller, we will call this function with appropriate parameters like mentioned below.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">$repositoryName = &#039;magento\/magento2&#039;;\n$response = $this-&gt;doRequest(static::API_REQUEST_ENDPOINT . $repositoryName);\n$status = $response-&gt;getStatusCode(); \/\/ 200 status code\n$responseBody = $response-&gt;getBody();\n$responseContent = $responseBody-&gt;getContents();<\/pre>\n\n\n\n<p>By the above-mentioned code, we will get the response from the api. <\/p>\n\n\n\n<p>Now our controller will look like.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\/**\n * Webkul Software.\n *\n * @category  Webkul\n * @package   Webkul_GuzzleHttpApi\n * @author    Webkul &lt;support@webkul.com&gt;\n * @copyright Webkul Software Private Limited (https:\/\/webkul.com)\n * @license   https:\/\/store.webkul.com\/license.html ASL Licence\n * @link      https:\/\/store.webkul.com\/license.html\n *\/\n\nnamespace Webkul\\GuzzleHttpApi\\Controller\\Services;\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\ClientFactory;\nuse GuzzleHttp\\Exception\\GuzzleException;\nuse GuzzleHttp\\Psr7\\Response;\nuse GuzzleHttp\\Psr7\\ResponseFactory;\nuse Magento\\Framework\\Webapi\\Rest\\Request;\n\n\/**\n * Class Guzzel Api\n *\/\nclass GuzzelApi\n{\n    \/**\n     * API request URL\n     *\/\n    const API_REQUEST_URI = &#039;https:\/\/api.github.com\/&#039;;\n\n    \/**\n     * API request endpoint\n     *\/\n    const API_REQUEST_ENDPOINT = &#039;repos\/&#039;;\n\n    \/**\n     * @var ResponseFactory\n     *\/\n    private $responseFactory;\n\n    \/**\n     * @var ClientFactory\n     *\/\n    private $clientFactory;\n\n    \/**\n     * Constructor\n     *\n     * @param ClientFactory $clientFactory\n     * @param ResponseFactory $responseFactory\n     *\/\n    public function __construct(\n        ClientFactory $clientFactory,\n        ResponseFactory $responseFactory\n    ) {\n        $this-&gt;clientFactory = $clientFactory;\n        $this-&gt;responseFactory = $responseFactory;\n    }\n\n    \/**\n     * Execute Function for class Addtocompare\n     *\/\n    public function execute()\n    {\n        $repositoryName = &#039;magento\/magento2&#039;;\n        $response = $this-&gt;doRequest(static::API_REQUEST_ENDPOINT . $repositoryName);\n        $status = $response-&gt;getStatusCode(); \/\/ 200 status code\n        $responseBody = $response-&gt;getBody();\n        $responseContent = $responseBody-&gt;getContents();\n        \n        return json_decode($responseContent);\n    }\n\n    \/**\n     * Do API request with provided params\n     *\n     * @param string $uriEndpoint\n     * @param array $params\n     * @param string $requestMethod\n     *\n     * @return Response\n     *\/\n    private function doRequest(\n        string $uriEndpoint,\n        array $params = &#091;],\n        string $requestMethod = Request::HTTP_METHOD_GET\n    ): Response {\n        \/** @var Client $client *\/\n        $client = $this-&gt;clientFactory-&gt;create(&#091;&#039;config&#039; =&gt; &#091;\n            &#039;base_uri&#039; =&gt; self::API_REQUEST_URI\n        ]]);\n\n        try {\n            $response = $client-&gt;request(\n                $requestMethod,\n                $uriEndpoint,\n                $params\n            );\n        } catch (GuzzleException $exception) {\n            \/** @var Response $response *\/\n            $response = $this-&gt;responseFactory-&gt;create(&#091;\n                &#039;status&#039; =&gt; $exception-&gt;getCode(),\n                &#039;reason&#039; =&gt; $exception-&gt;getMessage()\n            ]);\n        }\n\n        return $response;\n    }\n}<\/pre>\n\n\n\n<p>We will get response mentioned below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"592\" height=\"314\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236.png\" alt=\"Response for Magento 2 Guzzle Request\" class=\"wp-image-390755\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236.png 592w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236-300x159.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236-250x133.png 250w\" sizes=\"(max-width: 592px) 100vw, 592px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Please refer to the blog for reference: <a href=\"https:\/\/devdocs.magento.com\/guides\/v2.3\/ext-best-practices\/tutorials\/create-integration-with-api.html\">click here<\/a><br>That&#8217;s all for this blog.<br>Happy coding \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we will discuss how we use the Guzzle in Magento 2. Let&#8217;s get started What is Guzzle in Magento 2 Guzzle is a PHP HTTP client that makes it easy to create some integrations with some web services. Its implementation code is more simpler, cleaner, and readable, in comparison with cURL. GuzzleHttp <a href=\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":105,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9121],"tags":[7446,7445],"class_list":["post-141148","post","type-post","status-publish","format-standard","hentry","category-magento-2","tag-async-curl","tag-guzzle"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to use Guzzle in Magento 2 - Webkul Blog<\/title>\n<meta name=\"description\" content=\"In this blog, we will discuss how we use the Guzzle in Magento 2. In this blog we will explain with code that how we create guzzle request.\" \/>\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-use-guzzle-in-magento2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use Guzzle in Magento 2 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"In this blog, we will discuss how we use the Guzzle in Magento 2. In this blog we will explain with code that how we create guzzle request.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/\" \/>\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=\"2018-09-03T05:17:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-12T10:06:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236.png\" \/>\n<meta name=\"author\" content=\"Ankita Singh\" \/>\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=\"Ankita Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 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-use-guzzle-in-magento2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/\"},\"author\":{\"name\":\"Ankita Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/75ca402e5347b60b1f59c92817945a16\"},\"headline\":\"How to use Guzzle in Magento 2\",\"datePublished\":\"2018-09-03T05:17:18+00:00\",\"dateModified\":\"2023-07-12T10:06:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/\"},\"wordCount\":216,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236.png\",\"keywords\":[\"async curl\",\"guzzle\"],\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/\",\"name\":\"How to use Guzzle in Magento 2 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236.png\",\"datePublished\":\"2018-09-03T05:17:18+00:00\",\"dateModified\":\"2023-07-12T10:06:49+00:00\",\"description\":\"In this blog, we will discuss how we use the Guzzle in Magento 2. In this blog we will explain with code that how we create guzzle request.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236.png\",\"width\":592,\"height\":314,\"caption\":\"Selection_1236\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to use Guzzle in Magento 2\"}]},{\"@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\/75ca402e5347b60b1f59c92817945a16\",\"name\":\"Ankita Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4204fab045bd10e8b24b349d88fe38c0213ba6ce1590943e19b084030f631cc6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4204fab045bd10e8b24b349d88fe38c0213ba6ce1590943e19b084030f631cc6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Ankita Singh\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/ankita-singh843\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use Guzzle in Magento 2 - Webkul Blog","description":"In this blog, we will discuss how we use the Guzzle in Magento 2. In this blog we will explain with code that how we create guzzle request.","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-use-guzzle-in-magento2\/","og_locale":"en_US","og_type":"article","og_title":"How to use Guzzle in Magento 2 - Webkul Blog","og_description":"In this blog, we will discuss how we use the Guzzle in Magento 2. In this blog we will explain with code that how we create guzzle request.","og_url":"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2018-09-03T05:17:18+00:00","article_modified_time":"2023-07-12T10:06:49+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236.png","type":"","width":"","height":""}],"author":"Ankita Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Ankita Singh","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/"},"author":{"name":"Ankita Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/75ca402e5347b60b1f59c92817945a16"},"headline":"How to use Guzzle in Magento 2","datePublished":"2018-09-03T05:17:18+00:00","dateModified":"2023-07-12T10:06:49+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/"},"wordCount":216,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236.png","keywords":["async curl","guzzle"],"articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/","url":"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/","name":"How to use Guzzle in Magento 2 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236.png","datePublished":"2018-09-03T05:17:18+00:00","dateModified":"2023-07-12T10:06:49+00:00","description":"In this blog, we will discuss how we use the Guzzle in Magento 2. In this blog we will explain with code that how we create guzzle request.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_1236.png","width":592,"height":314,"caption":"Selection_1236"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-use-guzzle-in-magento2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to use Guzzle in Magento 2"}]},{"@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\/75ca402e5347b60b1f59c92817945a16","name":"Ankita Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4204fab045bd10e8b24b349d88fe38c0213ba6ce1590943e19b084030f631cc6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4204fab045bd10e8b24b349d88fe38c0213ba6ce1590943e19b084030f631cc6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Ankita Singh"},"url":"https:\/\/webkul.com\/blog\/author\/ankita-singh843\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/141148","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\/105"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=141148"}],"version-history":[{"count":25,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/141148\/revisions"}],"predecessor-version":[{"id":390779,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/141148\/revisions\/390779"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=141148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=141148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=141148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}