{"id":17225,"date":"2015-02-17T18:32:26","date_gmt":"2015-02-17T13:02:26","guid":{"rendered":"https:\/\/2thenew.online\/blog\/?p=17225"},"modified":"2016-12-19T15:34:13","modified_gmt":"2016-12-19T10:04:13","slug":"integrating-pubnub-with-grails","status":"publish","type":"post","link":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/","title":{"rendered":"Integrating PubNub With Grails"},"content":{"rendered":"<p>PubNub is a real-time push service provider for different platform and by using PubNub with Grails we can create push notification system similar to <a href=\"https:\/\/www.facebook.com\/intelligrape.software\">Facebook<\/a>.<\/p>\n<p>My use case was that I needed to create a notification system where user should be notified for different activities which is required for the user to be known.<\/p>\n<p>A notification is about something being changed by someone and reported to the user. Here is a normalized schema. You need to notify certain users about changes. So it&#8217;s per-user notifications, which means that if\u00a0there were 100 users involved, then\u00a0100 notifications are generated.<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2015\/02\/notification.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17230\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/02\/notification.png\" alt=\"notification\" width=\"610\" height=\"137\" \/><\/a><\/p>\n<p>To get started with\u00a0PubNub first of all go to www.pubnub.com and create your account &amp; activate basic sandbox plan.<\/p>\n<p>Clone javase-sdk from\u00a0PubNub git repo <a href=\"https:\/\/github.com\/pubnub\/java.git\">https:\/\/github.com\/pubnub\/java.git<\/a> and put all downloaded JAR files into grails-app\u2019s lib directory.<\/p>\n<p>Initiating PubNub<\/p>\n<p>Put this code in any of .groovy file (Publisher.groovy) inside application.<\/p>\n<p>[java]Pubnub pubnub = new Pubnub(publishKey, subscribeKey)[\/java]<\/p>\n<p>publishKey:- Your\u00a0PubNub publisher key<\/p>\n<p>subscribeKey:- Your\u00a0PubNub subscriber key<\/p>\n<p>Publishing to PubNub<\/p>\n<p>Put this code also in the same groovy file in which\u00a0PubNub is initiated<\/p>\n<p>[java]pubnub.publish(channelName, message, callback)[\/java]<\/p>\n<p>channelName:- This is string value for the user for whom this notification is intended.<\/p>\n<p>Note:- Keep the\u00a0channel name unique and identifiable for the user because it is also used to subscribe for channel data.<\/p>\n<p>message:- This is a JSON Object which will be published to the user channel<\/p>\n<p>callback:- This is a function which handles the response from PubNub<\/p>\n<p>eg:-<\/p>\n<p>[java]<\/p>\n<p>Callback callback=new Callback() {<\/p>\n<p>@Override<\/p>\n<p>public void connectCallback(String channel, Object message) {<\/p>\n<p>println(message)<\/p>\n<p>}<\/p>\n<p>@Override<\/p>\n<p>public void disconnectCallback(String channel, Object message) {<\/p>\n<p>println(message)<\/p>\n<p>}<\/p>\n<p>public void reconnectCallback(String channel, Object message) {<\/p>\n<p>println(message)<\/p>\n<p>}<\/p>\n<p>@Override<\/p>\n<p>public void successCallback(String channel, Object message) {<\/p>\n<p>println(message)<\/p>\n<p>}<\/p>\n<p>@Override<\/p>\n<p>public void errorCallback(String channel, PubnubError error) {<\/p>\n<p>println(message)<\/p>\n<p>}<\/p>\n<p>}[\/java]<\/p>\n<p>Now it\u2019s time to receive the notifications published to user channel, for this we will require\u00a0PubNub javascript-sdk<\/p>\n<p>include &lt;script src=&#8221;<a href=\"http:\/\/cdn.pubnub.com\/pubnub-3.7.1.min.js\">http:\/\/cdn.pubnub.com\/pubnub-3.7.1.min.js<\/a>&#8220;&gt;&lt;\/script&gt; in your html<\/p>\n<p>initiate PubNub<\/p>\n<p>[java]<\/p>\n<p>&amp;lt;script&amp;gt;<\/p>\n<p>$(document).ready(function(){<\/p>\n<p>var pubnub = PUBNUB.init({<\/p>\n<p>publish_key: publishKey,<\/p>\n<p>subscribe_key: subscribeKey<\/p>\n<p>});<\/p>\n<p>pubnub.history({<\/p>\n<p>channel:channelName,<\/p>\n<p>count:50 \/\/by default it is 100<\/p>\n<p>callback:function(m){<\/p>\n<p>\/\/Here you can use Jquery to append content to web page<\/p>\n<p>console.log(m)<\/p>\n<p>}<\/p>\n<p>});<\/p>\n<p>pubnub.subscribe({<\/p>\n<p>channel:channelName,<\/p>\n<p>callback: function (m) {<\/p>\n<p>\/\/Here you can use Jquery to append content to web page<\/p>\n<p>console.log(m)<\/p>\n<p>}<\/p>\n<p>});<\/p>\n<p>}<\/p>\n<p>&amp;lt;\/script&amp;gt;[\/java]<\/p>\n<p>publishKey, subscribeKey and channel name should be same as used for publishing to the pubnub.<\/p>\n<p>pubnub.history() loads last 100 notification from user channel by default, the number\u00a0of notifications to be retrieved can be specified by using count key.<\/p>\n<p>pubnub.subscribe() keeps listening to the user channel for any new notification.<\/p>\n<p>Hope this was helpful and informative.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PubNub is a real-time push service provider for different platform and by using PubNub with Grails we can create push notification system similar to Facebook. My use case was that I needed to create a notification system where user should be notified for different activities which is required for the user to be known. A [&hellip;]<\/p>\n","protected":false},"author":98,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":2,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-17225","post","type-post","status-publish","format-standard","hentry","category-grails"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"PubNub is a real-time push service provider for different platform and by using PubNub with Grails we can create push notification system similar to Facebook. My use case was that I needed to create a notification system where user should be notified for different activities which is required for the user to be known. A\" \/>\n\t<meta name=\"robots\" content=\"nofollow, max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Sumant Thakur\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Integrating PubNub With Grails | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"PubNub is a real-time push service provider for different platform and by using PubNub with Grails we can create push notification system similar to Facebook. My use case was that I needed to create a notification system where user should be notified for different activities which is required for the user to be known. A\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Integrating PubNub With Grails | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"PubNub is a real-time push service provider for different platform and by using PubNub with Grails we can create push notification system similar to Facebook. My use case was that I needed to create a notification system where user should be notified for different activities which is required for the user to be known. A\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/integrating-pubnub-with-grails\\\/#article\",\"name\":\"Integrating PubNub With Grails | TO THE NEW Blog\",\"headline\":\"Integrating PubNub With Grails\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sumant-thakur\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2015\\\/02\\\/notification.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/integrating-pubnub-with-grails\\\/#articleImage\"},\"datePublished\":\"2015-02-17T18:32:26+05:30\",\"dateModified\":\"2016-12-19T15:34:13+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/integrating-pubnub-with-grails\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/integrating-pubnub-with-grails\\\/#webpage\"},\"articleSection\":\"Grails\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/integrating-pubnub-with-grails\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"position\":2,\"name\":\"Grails\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/integrating-pubnub-with-grails\\\/#listItem\",\"name\":\"Integrating PubNub With Grails\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/integrating-pubnub-with-grails\\\/#listItem\",\"position\":3,\"name\":\"Integrating PubNub With Grails\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sumant-thakur\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sumant-thakur\\\/\",\"name\":\"Sumant Thakur\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/integrating-pubnub-with-grails\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/33bbdfb84d98ffeff0439d606eca7b6e8068f920ae2f252da4f3458194003ab9?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Sumant Thakur\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/integrating-pubnub-with-grails\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/integrating-pubnub-with-grails\\\/\",\"name\":\"Integrating PubNub With Grails | TO THE NEW Blog\",\"description\":\"PubNub is a real-time push service provider for different platform and by using PubNub with Grails we can create push notification system similar to Facebook. My use case was that I needed to create a notification system where user should be notified for different activities which is required for the user to be known. A\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/integrating-pubnub-with-grails\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sumant-thakur\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sumant-thakur\\\/#author\"},\"datePublished\":\"2015-02-17T18:32:26+05:30\",\"dateModified\":\"2016-12-19T15:34:13+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Integrating PubNub With Grails | TO THE NEW Blog","description":"PubNub is a real-time push service provider for different platform and by using PubNub with Grails we can create push notification system similar to Facebook. My use case was that I needed to create a notification system where user should be notified for different activities which is required for the user to be known. A","canonical_url":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/","robots":"nofollow, max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/#article","name":"Integrating PubNub With Grails | TO THE NEW Blog","headline":"Integrating PubNub With Grails","author":{"@id":"https:\/\/2thenew.online\/blog\/author\/sumant-thakur\/#author"},"publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2015\/02\/notification.png","@id":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/#articleImage"},"datePublished":"2015-02-17T18:32:26+05:30","dateModified":"2016-12-19T15:34:13+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/#webpage"},"articleSection":"Grails"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.online\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/grails\/#listItem","name":"Grails"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/grails\/#listItem","position":2,"name":"Grails","item":"https:\/\/2thenew.online\/blog\/category\/grails\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/#listItem","name":"Integrating PubNub With Grails"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/#listItem","position":3,"name":"Integrating PubNub With Grails","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/grails\/#listItem","name":"Grails"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.online\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.online\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.online\/blog\/author\/sumant-thakur\/#author","url":"https:\/\/2thenew.online\/blog\/author\/sumant-thakur\/","name":"Sumant Thakur","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/33bbdfb84d98ffeff0439d606eca7b6e8068f920ae2f252da4f3458194003ab9?s=96&d=mm&r=g","width":96,"height":96,"caption":"Sumant Thakur"}},{"@type":"WebPage","@id":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/#webpage","url":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/","name":"Integrating PubNub With Grails | TO THE NEW Blog","description":"PubNub is a real-time push service provider for different platform and by using PubNub with Grails we can create push notification system similar to Facebook. My use case was that I needed to create a notification system where user should be notified for different activities which is required for the user to be known. A","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.online\/blog\/author\/sumant-thakur\/#author"},"creator":{"@id":"https:\/\/2thenew.online\/blog\/author\/sumant-thakur\/#author"},"datePublished":"2015-02-17T18:32:26+05:30","dateModified":"2016-12-19T15:34:13+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.online\/blog\/#website","url":"https:\/\/2thenew.online\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Integrating PubNub With Grails | TO THE NEW Blog","og:description":"PubNub is a real-time push service provider for different platform and by using PubNub with Grails we can create push notification system similar to Facebook. My use case was that I needed to create a notification system where user should be notified for different activities which is required for the user to be known. A","og:url":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/","og:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Integrating PubNub With Grails | TO THE NEW Blog","twitter:description":"PubNub is a real-time push service provider for different platform and by using PubNub with Grails we can create push notification system similar to Facebook. My use case was that I needed to create a notification system where user should be notified for different activities which is required for the user to be known. A","twitter:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"17225","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":false,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":true,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 17:20:04","updated":"2024-02-29 09:28:21","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\/category\/grails\/\" title=\"Grails\">Grails<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tIntegrating PubNub With Grails\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.online\/blog"},{"label":"Grails","link":"https:\/\/2thenew.online\/blog\/category\/grails\/"},{"label":"Integrating PubNub With Grails","link":"https:\/\/2thenew.online\/blog\/integrating-pubnub-with-grails\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/17225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/users\/98"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/comments?post=17225"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/17225\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/media?parent=17225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/categories?post=17225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/tags?post=17225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}