{"id":9316,"date":"2021-01-25T13:09:19","date_gmt":"2021-01-25T13:09:19","guid":{"rendered":"https:\/\/www.rumbletalk.com\/blog\/?post_type=epkb_post_type_1&#038;p=9316"},"modified":"2024-10-22T06:01:29","modified_gmt":"2024-10-22T06:01:29","slug":"web-service-getting-a-rooms-direct-link","status":"publish","type":"epkb_post_type_1","link":"https:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/","title":{"rendered":"Web Service: Getting a Room\u2019s Direct Link"},"content":{"rendered":"\n<p>This short post explains how to utilize <strong>RumbleTalk\u2019s Web Service<\/strong> to get your room\u2019s current server.<br><br>Chats are associated with a specific server. Normally, server numbers are constant but in some cases, servers are being changed (attach, upgrade, beta, new features, etc).<\/p>\n\n\n\n<p>We use the publicly available path:<\/p>\n\n\n\n<p>https:\/\/rumbletalk.com\/client\/service.php<\/p>\n\n\n\n<p>Then, append to it the <strong>?hash=<\/strong> parameter with the room\u2019s public id (AKA the chat\u2019s hash) , e.g., <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/rumbletalk.com\/client\/service.php?hash=B4akfG9R\" target=\"_blank\">https:\/\/rumbletalk.com\/client\/service.php?hash=B4akfG9R<\/a><br><\/p>\n\n\n\n<p>The web service has an open CORS policy and can be accessed directly from the browser.<\/p>\n\n\n\n<p>The response will be a JSON of the following structure:<\/p>\n\n\n\n<p class=\"has-very-light-gray-background-color has-background\">{<br>  &#8220;status&#8221;: boolean,<br>  &#8220;address&#8221;: string<br>}<\/p>\n\n\n\n<p>Where \u201cstatus\u201d is <strong>true<\/strong> if the room has an assigned server; i.e. the room exists.<\/p>\n\n\n\n<p>Also, the address will be the assigned server\u2019s domain; e.g., &#8220;service9.rumbletalk.net&#8221;<br><\/p>\n\n\n\n<p>Using the result, you can then display the room in, e.g., an iframe built in PHP like so:<\/p>\n\n\n\n<p class=\"has-very-light-gray-background-color has-background\">&lt;?php<br>$hash = &#8216;YOUR_HASH_HERE&#8217;;<br>$response = file_get_contents(&#8220;https:\/\/rumbletalk.com\/client\/service.php?hash=<strong>{$hash}<\/strong>&#8220;);<br>$response = json_decode($response, true);<br>?&gt;<br>&lt;iframe src=&#8221;https:\/\/&lt;?= $response[&#8216;address&#8217;] ?&gt;\/&lt;?= $hash ?&gt;\/&#8221;&gt;&lt;\/iframe&gt;<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web Service: Getting a Room\u2019s Direct Link &#8211; online group chat for web site<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"epkb_post_type_1_category":[339],"epkb_post_type_1_tag":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.10 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Web Service: Getting a Room\u2019s Direct Link - Online Group Chat Room Plugin for Websites and Live events<\/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:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Web Service: Getting a Room\u2019s Direct Link - Online Group Chat Room Plugin for Websites and Live events\" \/>\n<meta property=\"og:description\" content=\"Web Service: Getting a Room\u2019s Direct Link - online group chat for web site\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/\" \/>\n<meta property=\"og:site_name\" content=\"Online Group Chat Room Plugin for Websites and Live events\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/rumbletalk\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-22T06:01:29+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@rumbletalk\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/\",\"url\":\"https:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/\",\"name\":\"Web Service: Getting a Room\u2019s Direct Link - Online Group Chat Room Plugin for Websites and Live events\",\"isPartOf\":{\"@id\":\"https:\/\/rumbletalk.com\/blog\/#website\"},\"datePublished\":\"2021-01-25T13:09:19+00:00\",\"dateModified\":\"2024-10-22T06:01:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/rumbletalk.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web Service: Getting a Room\u2019s Direct Link\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/rumbletalk.com\/blog\/#website\",\"url\":\"https:\/\/rumbletalk.com\/blog\/\",\"name\":\"Online Group Chat Plugin for Websites and Event\",\"description\":\"Embed a social group chat for communities and events. Grow your online audience with the next evolution of HTML chat room. Attach files, Mobile, Audio and Video calls.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/rumbletalk.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/rumbletalk.com\/blog\/#\/schema\/person\/53a763b494aec8f004846c17ae8d90c3\",\"name\":\"Mary Alice\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/rumbletalk.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/96b1fbff01b496d6a7d82bba8a4738f7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/96b1fbff01b496d6a7d82bba8a4738f7?s=96&d=mm&r=g\",\"caption\":\"Mary Alice\"},\"url\":\"https:\/\/rumbletalk.com\/blog\/index.php\/author\/mary-alice\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Web Service: Getting a Room\u2019s Direct Link - Online Group Chat Room Plugin for Websites and Live events","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:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/","og_locale":"en_US","og_type":"article","og_title":"Web Service: Getting a Room\u2019s Direct Link - Online Group Chat Room Plugin for Websites and Live events","og_description":"Web Service: Getting a Room\u2019s Direct Link - online group chat for web site","og_url":"https:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/","og_site_name":"Online Group Chat Room Plugin for Websites and Live events","article_publisher":"https:\/\/www.facebook.com\/rumbletalk","article_modified_time":"2024-10-22T06:01:29+00:00","twitter_card":"summary_large_image","twitter_site":"@rumbletalk","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/","url":"https:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/","name":"Web Service: Getting a Room\u2019s Direct Link - Online Group Chat Room Plugin for Websites and Live events","isPartOf":{"@id":"https:\/\/rumbletalk.com\/blog\/#website"},"datePublished":"2021-01-25T13:09:19+00:00","dateModified":"2024-10-22T06:01:29+00:00","breadcrumb":{"@id":"https:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/rumbletalk.com\/blog\/index.php\/knowledge-base\/web-service-getting-a-rooms-direct-link\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rumbletalk.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Web Service: Getting a Room\u2019s Direct Link"}]},{"@type":"WebSite","@id":"https:\/\/rumbletalk.com\/blog\/#website","url":"https:\/\/rumbletalk.com\/blog\/","name":"Online Group Chat Plugin for Websites and Event","description":"Embed a social group chat for communities and events. Grow your online audience with the next evolution of HTML chat room. Attach files, Mobile, Audio and Video calls.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rumbletalk.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/rumbletalk.com\/blog\/#\/schema\/person\/53a763b494aec8f004846c17ae8d90c3","name":"Mary Alice","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rumbletalk.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/96b1fbff01b496d6a7d82bba8a4738f7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/96b1fbff01b496d6a7d82bba8a4738f7?s=96&d=mm&r=g","caption":"Mary Alice"},"url":"https:\/\/rumbletalk.com\/blog\/index.php\/author\/mary-alice\/"}]}},"_links":{"self":[{"href":"https:\/\/rumbletalk.com\/blog\/index.php\/wp-json\/wp\/v2\/epkb_post_type_1\/9316"}],"collection":[{"href":"https:\/\/rumbletalk.com\/blog\/index.php\/wp-json\/wp\/v2\/epkb_post_type_1"}],"about":[{"href":"https:\/\/rumbletalk.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/epkb_post_type_1"}],"author":[{"embeddable":true,"href":"https:\/\/rumbletalk.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/rumbletalk.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=9316"}],"version-history":[{"count":11,"href":"https:\/\/rumbletalk.com\/blog\/index.php\/wp-json\/wp\/v2\/epkb_post_type_1\/9316\/revisions"}],"predecessor-version":[{"id":16239,"href":"https:\/\/rumbletalk.com\/blog\/index.php\/wp-json\/wp\/v2\/epkb_post_type_1\/9316\/revisions\/16239"}],"wp:attachment":[{"href":"https:\/\/rumbletalk.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=9316"}],"wp:term":[{"taxonomy":"epkb_post_type_1_category","embeddable":true,"href":"https:\/\/rumbletalk.com\/blog\/index.php\/wp-json\/wp\/v2\/epkb_post_type_1_category?post=9316"},{"taxonomy":"epkb_post_type_1_tag","embeddable":true,"href":"https:\/\/rumbletalk.com\/blog\/index.php\/wp-json\/wp\/v2\/epkb_post_type_1_tag?post=9316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}