V1 Dynamic Site Creation (Event Based) (Deprecated)

Introduction

This document describes how you can create Hovr custom site from your website on demand. Using integration token you can create a site from your portal with minimum required data.

📘

Prerequisites

Before you can implement the easy on demand create site for your Hio Hovr integration, you need to request an integration token from your Hio Account manager. This token will be delivered to your development team in a secure manner.

The technical changes needed on your website/webapp are minimal but requires a web developer/engineer who can make changes to the backend and frontend of your website. This requires a moderate level of technical knowledge of your platform unlike the standard Hio Hovr setup that requires very basic understanding of your website and can be done by a non-technical person in most cases.

❗️

Adding to correct location

If your event uses different HTML files for each tab/ sub tab the snippet of code will need to be added to something that is used across all HTML files. An example of this would be a common footer html tag that all web pages use. If there is not a reusable component to each page then the widget will need to be added to each pages body html tag.

Client Steps

  1. Locate in your code where the event creation occurs for administrators. Provide them with the option to 'Add Hio' to their event.
  2. Each event should have a unique URL. Before making the API call to create site creation make sure that you have what that URL will be.
  3. Make the callout to Dynamic Site Creation endpoint from a backend method (Information about API is added below).
    • In order to use our API you must have an integration token. If you do not have one please reach out to your customer support representative.
    • We ask that this come from a backend method for a more secure API call.
  4. Consume JSON response to indicate that the site was successfully created for the event.
  5. Add the script below to the event's HTML inside the body HTML tag.
    • Please see How to Append Code Snippet to Child of Common HTML Tag for help appending the snippet.
    • This needs to be added to a common HTML tag like a header or footer that is used across the webpage. If there is no tag like this then the code snippet will need to be appended to each individual page.
    • This HTML tag will need to have a unique ID attribute in order to append the snippet

Example of Snippet of code to be added to HTML

<div id="hio-site-identifier" data-id="10"></div>
<script src="https://plugin-helper.hiosocial.com/plugin_loader.js"></script>

How to Append Code Snippet to Child of Common HTML Tag

//simulating already getting reponse from API call
let hovrSnippet = <div id="hio-site-identifier" data-id="10"></div>
<script src="https://plugin-helper.hiosocial.com/plugin_loader.js"></script>;
document.getElementById("myUniqueHeaderId").appendChild(hovrSnippet);

End Points

Production Environment:
https://prod-gcf.hiosocial.com/integration/site/create

Usage

Method:
POST

Header

FieldDescriptionRequired
AuthorizationIntegration Token(from HIO)Yes
Content-Typeapplication/jsonYes

Body(JSON)

FieldDescriptionDefaultRequired
nameString: Name of the siteYes
subheaderString: Site Header that appears on the hovr plugin.We're making websites social, check it out.No
integration_typeString Set values :
"any_website", “entire_website”, “specific_subdomain”,
"page_startswith", "specific_page"
(See Below for Additional Information)
N/AYes(if status is live)
integration_urlString Site URLN/AYes
conversion_urlString Site URLNo
primary_hex_colorString hex code for color#002B61No
secondary_hex_colorString hex code for color#002B61No
is_networking_enabledBoolean is network card enabledTrueNo
is_one_to_one_text
_chat_enabled
Boolean is one to one chat enabledTrueNo
is_open_channels_enabledBoolean is open chat enabledTrueNo
open_channels
_create_permission
String set values:
"creator", "anyone"
creatorNo
is_one_to_one_video
_chat_enabled
Boolean Enable one to one video chat(feature not available at this time)FalseNo
is_vip_table_video
_call_enabled
Boolean Enable vip table video chat(feature not available at this time)TrueNo
is_chat_profanity
_filter_enabled
BooleanTrueNo
number_of_channelsString set values:
"multiple_channels", "single_channel"
multiple_channelsNo
is_single_sign_onBooleanfalseNo
statusString set values:
"draft", "live", "unpublished"
N/AYes
card_configurationSee Below for Structure, this is an arrayDefault listed belowNo
channelsSee Below for StructureN/AYes
is_embeddedBooleanFalseNo

integration_type additional detail

OptionExplanation
Multiple websitesUse this option if you would like to use this configuration on multiple website
Entire websitesUse this option if you would like to use this configuration on your whole website
Specific subdomainUse this option if you would like to use this configuration on a subdomain and its extensions.
Pages start withUse this option if you would like to use this configuration that start with a specific pathway and its extensions
Specific PagesUse this option if you would like to use this configuration

card_configuration

FieldDescriptionDefaultRequired
custom_nameString Name of CardN/AYes
text_descriptionString About the cardN/AYes
card_IdentifierDecimal set values:
1 for Networking,
2 for Open Chat Channels,
3 for Connection,
4 for Direct Message,
5 for FAQs & Privacy
N/AYes
hex_primaryString hex color codeN/AYes
hex_secondaryString hex color codeN/AYes

card_configuration default

[
{
"custom_name": "Networking",
"text_description": "Build relationships with interesting people.",
"card_identifier": 1,
"hex_primary": "#002B61",
 "hex_secondary": "#c1c1c1"
},
{
"custom_name": "Open Chat Channels",
"text_description": "Engage in live chat conversations.",
"card_identifier": 2,
"hex_primary": "#002B61",
"hex_secondary": "#c1c1c1",
 },
 {
"custom_name": "Connections",
"text_description": "Easily follow up and build relationships.",
"card_identifier": 3,
"hex_primary": "#002B61",
"hex_secondary": "#c1c1c1",
},
{
"custom_name": "Direct Message",
"text_description": "Send and receive 11 chat messages.",
"card_identifier": 4,
"hex_primary": "#002B61",
"hex_secondary": "#c1c1c1",
 },
{
"custom_name": "FAQs & Privacy",
 "text_description": "View Hio privacy, data, and security information.",
"card_identifier": 5,
"hex_primary": "#002B61",
"hex_secondary": "#c1c1c1",
}
 ]

channels

FieldDescriptionDefaultRequired
titlestring name of channelN/AYes

Default Array

[
 {
	"title": "General Chat"
 },
 {
	"title": "Announcements"
 },
 {
	"title": "Intros"
 },
 {
 	"title": "Asks/offers"
 },
 {
	"title": "Random"
 }
]