Home Back

Placesign Tags SDK

Placesign Tags SDK

Overview

Placesign Tags enables your location web pages with the Placesign Pulse verification signal, Placesign's Real-Time display and Placesign's extremely structured content.

Step 1: Placesign Studio

Design, create and manage your online presence using the Placesign Studio.

Step 2: Placesign Tags URL

Determine your Placesign Tags URL

URL Specification

http://content.placesign.com/v1/Places/0101{PlaceID}/Publish.Tags/{API-Key}

{PlaceID}

Your PlaceID is the numeric code at the end of your Placesign Page's URL.

{API-Key}

Contact [email protected] for your Placesign API key.

Example:

http://content.placesign.com/v1/Places/01011/Publish.Tags/013qU...WLnJN

Step 3: Service Side Include

Server side includes of the Placesign Tags is highly recommended to optimize the results when the search engine index bot crawls your page. The actual implementation is depended on your development and hosting environments. Below are some examples to assist in your development.

PHP

<?php
   $placesignTags = file_get_contents('http://content.placesign.com/v1/Places/01011/Publish.Tags/013qU...WLnJN');
   echo $placesignTags;
?>

ASP.NET

aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Sample.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <asp:Literal runat="server" id="LiteralPlacesignTags"></asp:Literal>
</head>
<body>
</body>
</html>

aspx.cs

using System;

namespace Sample
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
                return;

            System.Net.WebClient placesignContentServerClient = new System.Net.WebClient();
            System.IO.Stream response = placesignContentServerClient.OpenRead("http://content.placesign.com/v1/Places/01011/Publish.Tags/013qU...WLnJN");

            using (var reader = new System.IO.StreamReader(response, System.Text.Encoding.UTF8))
                LiteralPlacesignTags.Text = reader.ReadToEnd();

            response.Close();
        }
    }
}

Done:

That's it, your content is now managed and structured by the Placesign Studio and Placesign Tags are automatically included each and every time your location pages are rendered.