{"id":366,"date":"2020-12-14T15:48:32","date_gmt":"2020-12-14T14:48:32","guid":{"rendered":"https:\/\/transferttexei.wordpress.com\/2020\/12\/14\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/"},"modified":"2023-08-15T17:28:17","modified_gmt":"2023-08-15T15:28:17","slug":"day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar","status":"publish","type":"post","link":"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/","title":{"rendered":"Day 14: Scan a Barcode in a Lightning Web Component (Beta) #TexeiAdventCalendar"},"content":{"rendered":"<p>Hello everyone, until now, we have written 13 wonderful stories. The last one is <a href=\"https:\/\/blog.texei.com\/day-13-auto-add-fields-to-custom-report-types-beta-texeiadventcalendar-ee14e7149e8d\" target=\"_blank\" rel=\"noopener\">here<\/a>, I hope that you enjoyed it! Today, we will talk about how we can scan a Barcode in Lightning web component (LWC) by using our mobile phone.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-2692 size-full\" src=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2020\/12\/0_RPCogRFE4oFW2YBF.gif\" alt=\"\" width=\"240\" height=\"240\" \/><\/p>\n<p>Now, we have the possibility to scan a QR Code or UPC Symbol by using our mobile device\u2019s camera and mobile OS platform. When a barcode is successfully scanned, the data that was read from the barcode is returned to the Lightning web component that invoked it. And we don\u2019t need to have a network connection.<\/p>\n<p>So now, we will show you the steps to scan a BarCode in LWC, let\u2019s go.<\/p>\n<p>Firstly, you must import <strong>BarcodeScanner <\/strong>using the standard JavaScript import\u00a0:<\/p>\n<pre><code>import { getBarcodeScanner } from 'lightning\/mobileCapabilities';<\/code><\/pre>\n<p>after importing the BarCode Scanner API, you can now test the Availability of the API by using this function\u00a0:<\/p>\n<pre><code>handleBeginScanClick(event) {\r\n    const myScanner = getBarcodeScanner();\r\n    if(myScanner.<strong>isAvailable()<\/strong>) {\r\n<em>\/\/ Perform scanning operations<\/em>\r\n    }\r\n    else {\r\n<em>\/\/ Scanner not available<\/em>\r\n<em>\/\/ Not running on hardware with a scanner<\/em>\r\n<em>\/\/ Handle with message, error, beep, and so on<\/em>\r\n    }\r\n}<\/code><\/pre>\n<p>So now, we have the BarCode Scanner API available. We can now begin to scan a barCode by using the function beginCapture() :<\/p>\n<pre><code>const myScanner = getBarcodeScanner();\r\nconst scanningOptions = {\r\n    barcodeTypes: [\r\n<em>\/\/ Add expected barcode types here<\/em>\r\n        myScanner.<strong>barcodeTypes.QR<\/strong>\r\n    ]\r\n}\r\nmyScanner.<strong>beginCapture(scanningOptions)<\/strong>\r\n    .then((result) =&gt; {\r\n<em>\/\/ Do something with the result of the scan<\/em>\r\n        console.log(result);\r\n        this.scannedBarcode = result.value;\r\n    })\r\n    .catch((error) =&gt; {\r\n<em>\/\/ Handle cancellation and scanning errors here<\/em>\r\n        console.error(error);\r\n    })\r\n    .finally(() =&gt; {\r\n        myScanner.endCapture();\r\n    });<\/code><\/pre>\n<p>The function beginCapture() have a parametre: <code><strong>scanningOptions <\/strong><\/code>to select the type of the scan such as (QR,dataMatrix etc\u2026), you can see all the barCodes types <a href=\"https:\/\/developer.salesforce.com\/docs\/component-library\/documentation\/en\/lwc\/lwc.reference_lightning_barcodescanner_constants\" target=\"_blank\" rel=\"noopener\">here\u00a0<\/a>.<\/p>\n<p>When we scan successfully the barcode , the result is returned via a fulfilled promise. But if we have a failed result so we handle errors in the catch clause.<\/p>\n<p>The last clause , is finally when we end the scan barCode. So we can call the funtion <strong>endCapture() <\/strong>to handle final cleanup.<\/p>\n<figure><img decoding=\"async\" class=\"aligncenter wp-image-2693 size-full\" src=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2020\/12\/1_y3GCpwapzV1UcMqSHsI9cw.png\" alt=\"barcode in Lightning web components\" width=\"344\" height=\"503\" srcset=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2020\/12\/1_y3GCpwapzV1UcMqSHsI9cw.png 344w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2020\/12\/1_y3GCpwapzV1UcMqSHsI9cw-205x300.png 205w, https:\/\/texei.com\/dev\/wp-content\/uploads\/2020\/12\/1_y3GCpwapzV1UcMqSHsI9cw-200x292.png 200w\" sizes=\"(max-width: 344px) 100vw, 344px\" \/><\/figure>\n<p>So now ,you can scan easily any barcode in Lightning web components, it\u2019s amazing ;)<\/p>\n<p>Hope you had a good read! Want to learn more? Check out the new article written by Mouloud HABCHI about <a href=\"https:\/\/texei.com\/conseils\/salesforce-dynamic-forms-texeiadventcalendar\/\" target=\"_blank\" rel=\"noopener\">Salesforce dynamic forms<\/a>. Follow us on LinkedIn <a href=\"https:\/\/fr.linkedin.com\/company\/texei\" target=\"_blank\" rel=\"noopener\">here<\/a> and on Twitter <a href=\"https:\/\/twitter.com\/TexeiFrance?s=20\" target=\"_blank\" rel=\"noopener\">here<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello everyone, until now, we have written 13 wonderful stories. The last one is here, I hope that you enjoyed it! Today, we will talk about how we can scan a Barcode in Lightning web component (LWC) by using our mobile phone. Now, we have the possibility to scan a QR Code or UPC Symbol [&hellip;]<\/p>\n","protected":false},"author":29,"featured_media":5330,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[300],"tags":[],"class_list":["post-366","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-advices"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.4 (Yoast SEO v28.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Day 14: Scan a Barcode in a Lightning Web Component (Beta) #TexeiAdventCalendar - Texe\u00ef<\/title>\n<meta name=\"description\" content=\"Learn how to scan a barcode in Lightning web components (LWC) using your mobile phone&#039;s camera without the need for a network connection.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 14: Scan a Barcode in a Lightning Web Component (Beta) #TexeiAdventCalendar\" \/>\n<meta property=\"og:description\" content=\"Learn how to scan a barcode in Lightning web components (LWC) using your mobile phone&#039;s camera without the need for a network connection.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/\" \/>\n<meta property=\"og:site_name\" content=\"Texe\u00ef\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-14T14:48:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-15T15:28:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2020\/12\/Sans-titre-13.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Oussama Labaied\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\\\/\"},\"author\":{\"name\":\"Oussama Labaied\",\"@id\":\"https:\\\/\\\/texei.com\\\/#\\\/schema\\\/person\\\/76aebd0100ed96071e8527974dd8f31f\"},\"headline\":\"Day 14: Scan a Barcode in a Lightning Web Component (Beta) #TexeiAdventCalendar\",\"datePublished\":\"2020-12-14T14:48:32+00:00\",\"dateModified\":\"2023-08-15T15:28:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\\\/\"},\"wordCount\":302,\"publisher\":{\"@id\":\"https:\\\/\\\/texei.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Sans-titre-13.png\",\"articleSection\":[\"Advices\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\\\/\",\"url\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\\\/\",\"name\":\"Day 14: Scan a Barcode in a Lightning Web Component (Beta) #TexeiAdventCalendar - Texe\u00ef\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/texei.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Sans-titre-13.png\",\"datePublished\":\"2020-12-14T14:48:32+00:00\",\"dateModified\":\"2023-08-15T15:28:17+00:00\",\"description\":\"Learn how to scan a barcode in Lightning web components (LWC) using your mobile phone's camera without the need for a network connection.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\\\/#primaryimage\",\"url\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Sans-titre-13.png\",\"contentUrl\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/Sans-titre-13.png\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/texei.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Advices\",\"item\":\"https:\\\/\\\/texei.com\\\/en\\\/category\\\/advices\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Day 14: Scan a Barcode in a Lightning Web Component (Beta) #TexeiAdventCalendar\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/texei.com\\\/#website\",\"url\":\"https:\\\/\\\/texei.com\\\/\",\"name\":\"Texe\u00ef\",\"description\":\"Turn your IT into Business\",\"publisher\":{\"@id\":\"https:\\\/\\\/texei.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/texei.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/texei.com\\\/#organization\",\"name\":\"Texe\u00ef\",\"url\":\"https:\\\/\\\/texei.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/texei.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/logo-essai-1.jpg\",\"contentUrl\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/logo-essai-1.jpg\",\"width\":2560,\"height\":1102,\"caption\":\"Texe\u00ef\"},\"image\":{\"@id\":\"https:\\\/\\\/texei.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/company\\\/texei-expert-salesforce\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/texei.com\\\/#\\\/schema\\\/person\\\/76aebd0100ed96071e8527974dd8f31f\",\"name\":\"Oussama Labaied\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/avatar_user_29_1642694544-96x96.jpeg\",\"url\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/avatar_user_29_1642694544-96x96.jpeg\",\"contentUrl\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/avatar_user_29_1642694544-96x96.jpeg\",\"caption\":\"Oussama Labaied\"},\"url\":\"https:\\\/\\\/texei.com\\\/en\\\/author\\\/oussamalabaied\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Day 14: Scan a Barcode in a Lightning Web Component (Beta) #TexeiAdventCalendar - Texe\u00ef","description":"Learn how to scan a barcode in Lightning web components (LWC) using your mobile phone's camera without the need for a network connection.","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:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/","og_locale":"en_US","og_type":"article","og_title":"Day 14: Scan a Barcode in a Lightning Web Component (Beta) #TexeiAdventCalendar","og_description":"Learn how to scan a barcode in Lightning web components (LWC) using your mobile phone's camera without the need for a network connection.","og_url":"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/","og_site_name":"Texe\u00ef","article_published_time":"2020-12-14T14:48:32+00:00","article_modified_time":"2023-08-15T15:28:17+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2020\/12\/Sans-titre-13.png","type":"image\/png"}],"author":"Oussama Labaied","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/#article","isPartOf":{"@id":"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/"},"author":{"name":"Oussama Labaied","@id":"https:\/\/texei.com\/#\/schema\/person\/76aebd0100ed96071e8527974dd8f31f"},"headline":"Day 14: Scan a Barcode in a Lightning Web Component (Beta) #TexeiAdventCalendar","datePublished":"2020-12-14T14:48:32+00:00","dateModified":"2023-08-15T15:28:17+00:00","mainEntityOfPage":{"@id":"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/"},"wordCount":302,"publisher":{"@id":"https:\/\/texei.com\/#organization"},"image":{"@id":"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/#primaryimage"},"thumbnailUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2020\/12\/Sans-titre-13.png","articleSection":["Advices"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/","url":"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/","name":"Day 14: Scan a Barcode in a Lightning Web Component (Beta) #TexeiAdventCalendar - Texe\u00ef","isPartOf":{"@id":"https:\/\/texei.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/#primaryimage"},"image":{"@id":"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/#primaryimage"},"thumbnailUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2020\/12\/Sans-titre-13.png","datePublished":"2020-12-14T14:48:32+00:00","dateModified":"2023-08-15T15:28:17+00:00","description":"Learn how to scan a barcode in Lightning web components (LWC) using your mobile phone's camera without the need for a network connection.","breadcrumb":{"@id":"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/#primaryimage","url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2020\/12\/Sans-titre-13.png","contentUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2020\/12\/Sans-titre-13.png","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/texei.com\/en\/advices\/day-14-scan-a-barcode-in-a-lightning-web-component-beta-texeiadventcalendar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/texei.com\/"},{"@type":"ListItem","position":2,"name":"Advices","item":"https:\/\/texei.com\/en\/category\/advices\/"},{"@type":"ListItem","position":3,"name":"Day 14: Scan a Barcode in a Lightning Web Component (Beta) #TexeiAdventCalendar"}]},{"@type":"WebSite","@id":"https:\/\/texei.com\/#website","url":"https:\/\/texei.com\/","name":"Texe\u00ef","description":"Turn your IT into Business","publisher":{"@id":"https:\/\/texei.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/texei.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/texei.com\/#organization","name":"Texe\u00ef","url":"https:\/\/texei.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/texei.com\/#\/schema\/logo\/image\/","url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/03\/logo-essai-1.jpg","contentUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/03\/logo-essai-1.jpg","width":2560,"height":1102,"caption":"Texe\u00ef"},"image":{"@id":"https:\/\/texei.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/texei-expert-salesforce"]},{"@type":"Person","@id":"https:\/\/texei.com\/#\/schema\/person\/76aebd0100ed96071e8527974dd8f31f","name":"Oussama Labaied","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2022\/01\/avatar_user_29_1642694544-96x96.jpeg","url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2022\/01\/avatar_user_29_1642694544-96x96.jpeg","contentUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2022\/01\/avatar_user_29_1642694544-96x96.jpeg","caption":"Oussama Labaied"},"url":"https:\/\/texei.com\/en\/author\/oussamalabaied\/"}]}},"_links":{"self":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/posts\/366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/comments?post=366"}],"version-history":[{"count":0,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/posts\/366\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/media\/5330"}],"wp:attachment":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/media?parent=366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/categories?post=366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/tags?post=366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}