Docstoc

Snap Shots™ Markup Language Technical Specification

Document Sample
Snap Shots™ Markup Language Technical Specification Powered By Docstoc
					Snap Shots™ Markup Language

   Technical Specification

         Version 1.0.6
                                 Snap Shots™ Markup Language



Table of Contents
1     Introduction to Snap Shots ..........................................................................3
    1.1    Snap Preview Anywhere vs. Snap Shots......................................................4
2     Activating Snap Shots ................................................................................6
    2.1    Automatic Snap Shots ..........................................................................6
    2.2    Markup Snap Shots ..............................................................................8
3     Snap Shots Markup Language Overview ...........................................................9
    3.1    Usage Example ..................................................................................9
    3.2    Markup Classes Summary..................................................................... 12
4     Snap Shots Markup Language Specification ..................................................... 13
    4.1    General Guidelines............................................................................ 13
    4.2    PreviewShots................................................................................... 15
    4.3    WikiShots ....................................................................................... 15
    4.4    MovieShots ..................................................................................... 16
    4.5    StockShots...................................................................................... 18
    4.6    VideoShots ..................................................................................... 19
    4.7    ProductShots: Amazon Product ............................................................. 20
    4.8    PhotoShots ..................................................................................... 21
    4.9    AudioShots: mp3 Audio....................................................................... 22
    4.10 CompanyNewsShots: Reuters................................................................ 25
    4.11 ProfileShots .................................................................................... 25
    4.12 RSS Shots ....................................................................................... 27
    4.13 URLShots ....................................................................................... 27
5     Tips and Tricks...................................................................................... 28
    5.1    How to Hide Enclosed Text .................................................................. 28
6     Questions, Feedback ............................................................................... 29
7     Appendix A: Revision History ..................................................................... 30




Printed 6/13/2007                 Perfect Market Technologies                      Page 2 of 22
                           Snap Shots™ Markup Language


1 Introduction to Snap Shots

Snap Shots™ is an open platform that intelligently brings the right content to the right
person, at the right place, at the right time, and formatted in a way that makes it most
useful and understandable--a radical departure from the traditional Internet model of
forcing users to browse website after website, manually trying to find what they’re looking
for.

For content owners, Snap Shots provides distribution across millions of websites large and
small. For website publishers, it provides a dramatically enhanced user experience as easily
as creating a link, with full customization options. And for end users, it provides quality,
relevant, easily-accessible information that’s organically part of their favorite websites.

Snap Shots is also highly customizable using the Snap Shots Markup Language, which allows
sites to personalize existing Shots or to trigger them from specific words using <span> or
<div> tags.

This whitepaper outlines the currently available Snap Shots, what URLs trigger them, what
markups can be applied to them, and how they can be applied to text. More Snap Shots are
being developed daily, so please check frequently with http://shots.snap.com for the latest
version.




Printed 6/13/2007           Perfect Market Technologies              Page 3 of 22
                           Snap Shots™ Markup Language



1.1 Snap Preview Anywhere vs. Snap Shots

Below is an example of the traditional preview of a web page (in this case, of an Amazon
product page):




And, below is the ProductShot™ for the same web page URL:




While the traditional preview (PreviewShot™, previously Snap Preview Anywhere) provides a
preview image of the linked Amazon page, the ProductShot offers summarized and useful
information of the actual product.


Printed 6/13/2007          Perfect Market Technologies              Page 4 of 22
                                Snap Shots™ Markup Language



2 Activating Snap Shots

There are essentially two ways to configure your site to activate Snap Shots: automatically
or by markup. Both methods require that you first register with Snap Shots and obtain the
HTML code snippet to be added to your web page.

For further details on Snap Shots registration, visit: http:/www.snap.com/about/shots.php.


2.1 Automatic Snap Shots

Snap Shots will automatically activate on any Snap-enabled link on a page that matches one
of the pre-determined patterns. Automatic Snap Shots behavior is configurable along with
other properties of the Snap preview bubble on Snap.com customization pages.

                    Content
Snap Shots                          URL Pattern Example
                    Provider
                                    en.wikipedia.org/wiki/Picasso
WikiShots™          Wikipedia
                                    fr.wikipedia.org/wiki/Picasso
                                    imdb.com/name/nm0000173
MovieShots™         IMDb
                                    imdb.com/title/tt0099685
                                    finance.yahoo.com/q?s=goog
                                    finance.google.com/finance?q=msft
                                    moneycentral.msn.com/detail/stock_quote?Symbol=YHOO
StockShots™
                                    money.cnn.com/quote/quote.html?symb=AAPL
                                    marketwatch.com/quotes/ORCL
                                    quote.morningstar.com/Quote/Quote.aspx?ticker=GOOG
                                    youtube.com/watch?v=wxyg3mhY9Q8
                    YouTube
                                    youtube.com/v/Xr8vUTm64h0
                    Google          video.google.com/videoplay?docid=1811233136844420765
                    Metacafe        www.metacafe.com/watch/477964/fast_ko
                    Revver          one.revver.com/watch/233084
VideoShots™
                                    s91.photobucket.com/albums/k281/darylwalk/?action=view
                    Photobucket
                                                                                 &current=ForTheBirds.flv
                    Xanga           video.xanga.com/dave/b2ce728634/video.html
                    Veoh            veoh.com/videos/v527461An2eSmdr
                    MySpace         vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=1194164636
                                    www.amazon.com/Dude-Wheres-Car-Ashton-
ProductShots™       Amazon          Kutcher/dp/B00003CXS7/ref=pd_bbs_sr_1/104-3861196-
                                    3404715?ie=UTF8&s=dvd&qid=1173904908&sr=8-1
                                    flickr.com/photos/kayo_iz-source/428191014
                    Flickr          flickr.com/photos/kayo_iz-source/sets/72057594100318097
                                    flickr.com/photos/kayo_iz-source/tags/glass
PhotoShots™                         i151.photobucket.com/albums/s150/forever-flying
                    Photobucket
                                    i151.photobucket.com/albums/s150/forever-flying/TURTLE.jpg
                    Picasa Web      picasaweb.google.com/p.sumegha/Kids/photo#5061510939589826658


Printed 6/13/2007               Perfect Market Technologies                   Page 5 of 22
                                Snap Shots™ Markup Language

                     Content
Snap Shots                          URL Pattern Example
                     Provider
AudioShots™                         wiredset.com/media/colin_macintyre/How-Bout-I-Love-You-More.mp3
CompanyNewsShots     Reuters        stocks.us.reuters.com/stocks/companyNews.asp?symbol=GM
ProfileShots™        MySpace        myspace.com/kailey05
RSS Shots™                          www.techcrunch.com

                         Table 1 - Automatic Snap Shots URL Pattern Examples

   Notes:
            •   “http://” has been omitted in the preceding table for clarity.
            •   Values illustrated in italics may vary.
            •   There may be additional parameters/values to the URL examples beyond as
                shown as required by the respective site.
            •   Amazon ProductShots: any of the following patterns contained in the URL will
                match:
                    i. /ASIN/{actual ASIN here}/
                   ii. /dp/{actual ASIN here}/
                  iii. /gp/product/{actual ASIN here}/
                  iv. /-/{actual ASIN here}/
                   v.    End of line will also work instead of trailing slash.
            •   PreviewShots will activate should the URL not match any of the pre-determined
                URL patterns.


2.2 Markup Snap Shots

A site publisher may choose to activate Snap Shots over page elements that are otherwise
not activating Automatic Snap Shots (generally, text that is not hyperlinked). Further, the
publisher may want to tune the behavior of Snap Shots. Activation and tuning are achieved
by applying additional HTML tags around the desired elements. These additional tags make
up the Snap Shots Markup Language.

Snap Shots activated by markup and those activated automatically may appear on the same
web page. Typically, markup specifications override the default behavior.

The Snap Shots Markup Language is described in details in the following sections.




Printed 6/13/2007               Perfect Market Technologies                 Page 6 of 22
                                  Snap Shots™ Markup Language



3 Snap Shots Markup Language Overview

The Snap Shots Markup Language allows a site publisher to designate text and other areas
within the site page to activate Snap Shots (and to customize their behavior in the future).
It was designed in the spirit of microformats1.

The general markup format is as follows:

          <span class="shot_type">
             <span class="shot_attribute1">
                text1
             </span>
             ...
             <span class="shot_attributeN">
                textN
             </span>
          </span>

where “text” identifies an object for which Snap Shots should activate.

Virtually any HTML element may be used in place of <span>. And special class tags are
added to specify the Snap Shots type and its attributes.


3.1 Usage Example

Suppose you have weblog page with Snap Preview Anywhere enabled and created a blog post
as follows:



        Change the Game
        March 27th, 2007 by ewingren

        After less-than-stellar sales, rumors flew that GameCube would be Nintendo’s last console.
        The reports were wrong. Enter Nintendo Wii (pronounced “wee”). It lacks the processing
        power of Microsoft’s (MSFT) Xbox 360 and Sony’s PS3, but the streamlined, Net-enabled box
        has something they don’t: the best library of classic games (hello Mario, Samus, and Zelda)
        and the most user-friendly controller on the planet... if you can hold on to it, that is.



Now, you want to allow your readers to be able to view the current stock quote for Microsoft
Corporation.

1
    Microformats convention as defined on http://microformats.org.


Printed 6/13/2007                 Perfect Market Technologies                Page 7 of 22
                              Snap Shots™ Markup Language



Suppose that the original excerpted HTML code of the relevant blog post section is as
follows:

     ... the processing power of <b>Microsoft’s (MSFT)</b> Xbox 360 and
     Sony’s PS3...



Modify the HTML code to add the Snap_Shot_Stock markup, as shown below:

     ... the processing power of <b>Microsoft’s (
       <span class=”Snap_Shot_Stock”>
          MSFT
       </span>
     )</b> Xbox 360 and Sony’s PS3...



Upon publish of the modified page, the Snap Shots icon    will be displayed next to the text “MSFT”
(as shown in the below figure) and Snap StockShot on the ticker symbol MSFT is activated upon
moving the mouse over the icon.



     Change the Game
     March 27th, 2007 by ewingren

     After less-than-stellar sales, rumors flew that GameCube would be Nintendo’s last console.
     The reports were wrong. Enter Nintendo Wii (pronounced “wee”). It lacks the processing
     power of Microsoft’s (MSFT ) Xbox 360 and Sony’s PS3, but the streamlined, Net-enabled
     box has something they don’t: the best library of classic games (hello Mario, Samus, and
     Zelda) and the most user-friendly controller on the planet... if you can hold on to it, that is.




Printed 6/13/2007              Perfect Market Technologies                    Page 8 of 22
                           Snap Shots™ Markup Language


3.2 Markup Classes Summary

The following table summarizes the available markup classes and the Snap Shots that they
enable:

Snap Shots           Primary Class                               Enclosed Value
PreviewShots™        Snap_Shot_Preview                           URL

WikiShots™           Snap_Shot_Wikipedia                         Wikipedia title
                                                                 Movie title or
MovieShots™          Snap_Shot_Movie
                                                                 Person name
                     Snap_Shot_YouTubeVideo
                     Snap_Shot_GoogleVideo
                     Snap_Shot_MetacafeVideo
VideoShots™                                                      Video ID
                     Snap_Shot_RevverVideo
                     Snap_Shot_PhotobucketVideo
                     Snap_Shot_XangaVideo
StockShots™          Snap_Shot_Stock                             Stock ticker symbol
                     Snap_Shot_FlickrPhotoAlbum
PhotoShots™          Snap_Shot_PhotobucketPhotoAlbum             URL to photo page
                     Snap_Shot_PicasaWebPhotoAlbum
ProductShot™         Snap_Shot_AmazonProduct                     Amazon ASIN

AudioShots™          Snap_Shot_mp3Audio                          MP3 URL, Title/Artist/Album names
                     Snap_Shot_CompanyNews
CompanyNewsShots                                                 Stock ticker symbol
                     Snap_Shot_ReutersCompanyNews
URLShots™            Snap_Shot_URL                               URL

ProfileShots™        Snap_Shot_Profile                           URL

RSS Shots™           Snap_Shot_RSS                               URL


                                Table 2 - Markup Snap Shots Classes


More details on these markup classes are provided on the following section.




Printed 6/13/2007           Perfect Market Technologies                  Page 9 of 22
                              Snap Shots™ Markup Language



4 Snap Shots Markup Language Specification

4.1 General Guidelines

The following guidelines apply to all types of Snap Shots to be described in subsequent sections.

   •   Format:
          o Snap Shots markup class tags are case-insensitive. “Snap_Shot_Preview” will work as
             well as “snap_shot_preview”.
          o Virtually any HTML element may be used to apply these markups (not limited to
             <span> or <div>).
          o Use class attributes in the HTML element to specify Snap Shots types and attributes.
          o One or more class tags may be used to customize the Snap Shots behavior.
          o Nesting of multiple Snap Shots types is not supported.

   •   Enclosed Text:
          o Generally, for proper content matching, the text enclosed by the Snap Shots tags
              should be the exact identifier/name as used by the destination URL or content
              provider site (in spelling and case-sensitivity, use of double-quotes, use of underscores
              in multi-word phrases, etc).

               Examples:

                Text Type             Correct Text                Incorrect Text
                YouTube Video ID      HPPj6viIBmU                 hppj6viibmu
                                                                  the office pilot
                IMDv TV Show Title    "The Office" Pilot (2005)
                                                                  (2005)

               As we enhance the Snap Shots features, Snap will attempt to perform appropriate
               substitutions to make the markup experience simpler and overall content presentation
               better.

           o   Whenever a URL is specified, it typically needs to be preceded with “http://” or
               “https://” as appropriate.

   •   Trigger:
           o The triggering event is a mouse-hover over the Snap Shots icon          .




Printed 6/13/2007              Perfect Market Technologies                      Page 10 of 22
                                 Snap Shots™ Markup Language



4.2 PreviewShots

PreviewShots™ displays the screen capture of a web site or page as identified by the URL. This is the
former Snap Preview Anywhere feature.

Format:
      <span class="Snap_Shot_Preview">
         url
      </span>

Enclosed Text:
   • url is the fully-qualified URL2 of any accessible, renderable web page supported by Snap
       Shots.

Class Tag:
    • Snap_Shot_Preview: activates PreviewShot to display preview of url

Example:
      <span class="Snap_Shot_Preview">
         http://www.apple.com/iphone
      </span>



4.3 WikiShots

WikiShots™ displays a summary of the specified topic/article on Wikipedia.org.

Format 1:
      <span class="Snap_Shot_Wikipedia">
          title
      </span>

Format 2:
      <span class="Snap_Shot_Wikipedia">
          <span class="Snap_Shot_Attribute_Wikipedia_Edition">language<span>
          title
      </span>

Enclosed Text:
   • title is a Wikipedia topic/article title.
   • language is a two-letter language code.

Class Tags:
    • Snap_Shot_Wikipedia: activates WikiShot to display the Wikipedia.org content


2
    RFC 1738 Uniform Resource Locators (URL): http://www.w3.org/Addressing/rfc1738.txt


Printed 6/13/2007                 Perfect Market Technologies                  Page 11 of 22
                                  Snap Shots™ Markup Language

      •   Snap_Shot_ Attribute_Wikipedia_Edition: (optional) displays the Wikipedia.org content in the
          language specified by the two-letter prefix 3. If not specified, English (“en”) is assumed.

Example 1:
      <span class="Snap_Shot_Wikipedia">
           Amazon Rainforest
      </span>

Example 2:
      <span class="Snap_Shot_Wikipedia">
         <span class="Snap_Shot_Attribute_Wikipedia_Edition">es</span>
            Selva Amazónica
      </span>



4.4 MovieShots

MovieShots™ displays a summary of the IMDb.com information on the specified movie, television
show, actor/cast or other crew member name.

Format:
      <span class="class_tag">
         name
      </span>

Enclosed Text:
   • name is a name of a movie, cast/crew member or TV show. It is any entity in IMDb. Movie
       and TV show name can also be specified as “name (year)”.

Class Tags:
    • Any of these class tags activates the MovieShot for the corresponding movie title, person
       name, or TV show name:
            • Snap_Shot_Movie
            • Snap_Shot_Cast
            • Snap_Shot_Crew
            • Snap_Shot_TV
    • Snap_Shot_TV: Snap will attempt to wrap the supplied name in double-quotes (if absent)
       when looking up the television show at IMDb, to adhere to IMDb’s naming convention for
       television shows. Below are some examples:

            You supplied the name...             Snap looks up for...
            the office                           “the office”
            the office (2005)                    “the office” (2005)
            “the office” pilot                   “the office” pilot   (unchanged)
            the office pilot                     “the office pilot”


3
    List of languages in Wikipedia: http://meta.wikimedia.org/wiki/List_of_Wikipedias


Printed 6/13/2007                  Perfect Market Technologies                    Page 12 of 22
                             Snap Shots™ Markup Language

   •   Snap_Shot_Cast: specifies an actor/actress name.
   •   Snap_Shot_Crew: specifes the name of a person involved in the making of the movie or TV
       show; eg. director, producer, script writer.
   •   Although Snap_Shot_Cast and Snap_Shot_Crew may be used interchangeably to refer to a
       person with the same effect, we recommend their usage in the proper context.


Example 1:
      <span class="Snap_Shot_Movie">
           Men in Black
      </span>

Example 2:
      <span class="Snap_Shot_Cast">
           Leonardo DiCaprio
      </span>

Example 3:
      <span class="Snap_Shot_Crew">
           Martin Scorsese
      </span>

Example 4:
      <span class="Snap_Shot_TV">
           The Simpsons
      </span>



4.5 StockShots

StockShots™ displays a most recent stock quote (20-minute delay) and charts for the specified stock
ticker symbol.

Format:
      <span class="Snap_Shot_Stock">
         ticker
      </span>

Enclosed Text:
   • ticker is a stock ticker symbol

Class Tag:
    • Snap_Shot_Stock: activates WikiShot to display the stock quote for the ticker

Example:
      <span class="Snap_Shot_Stock">
         AMD
      </span>



Printed 6/13/2007             Perfect Market Technologies                 Page 13 of 22
                              Snap Shots™ Markup Language




4.6 VideoShots

VideoShots™ displays the interactive video player for videos from various video sites, ready to play
the specified video file. Currently, these video sites are supported: YouTube, Google Video,
Metacafe, Revver, Photobucket, Xanga, Veoh and MySpace.

Format:
      <span class="class_tag">
         VideoID
      </span>

Enclosed Text:
   • VideoID is the ID unique to the video, typically found in the page URL for the specific video.
       Note: for Photobucket Video, use the full page URL (see example below).

Class Tag:
    Each of the following tags activates VideoShots to display the Flash-based video player from the
    respective video site.
    • Snap_Shot_YouTubeVideo
    • Snap_Shot_GoogleVideo
    • Snap_Shot_MetacafeVideo
    • Snap_Shot_RevverVideo
    • Snap_Shot_PhotobucketVideo
    • Snap_Shot_XangaVideo
    • Snap_Shot_VeohVideo

Example 1:
      <span class="Snap_Shot_YouTubeVideo">
           HPPj6viIBmU
      </span>

Example 2:
      <span class="Snap_Shot_GoogleVideo">
           1811233136844420765
      </span>

Example 3:
      <span class="Snap_Shot_MetacafeVideo">
           477964/fast_ko
      </span>

Example 4:
      <span class="Snap_Shot_RevverVideo">
           233084
      </span>

Example 5:



Printed 6/13/2007              Perfect Market Technologies                 Page 14 of 22
                             Snap Shots™ Markup Language

       <span class="Snap_Shot_PhotobucketVideo">
          http://s91.photobucket.com/albums/k281/darylwalk/?action=view
       &current=ForTheBirds.flv
       </span>

Example 6:
      <span class="Snap_Shot_XangaVideo">
           dave/b2ce728634
      </span>

Example 7:
      <span class="Snap_Shot_VeohVideo">
           v527461An2eSmdr
      </span>



4.7 ProductShots: Amazon Product

ProductShots™ for Amazon displays a summarized product description and ratings for the
Amazon.com product identified by a product ID (ASIN).

Format:
      <span class="Snap_Shot_AmazonProduct">
         ASIN
      </span>

Enclosed Text:
   • ASIN is a product identifier on Amazon.com, as found on the Amazon.com product detail
       page under the ASIN section. (For books, the ASIN is typically the same as the ISBN.)

Class Tag:
    • Snap_Shot_AmazonProduct: activates ProductShot to display the Amazon product summary

Example:
      <span class="Snap_Shot_AmazonProduct">
         B000000W5N
      </span>



4.8 PhotoShots

PhotoShots™ displays one or more photos from a photo album site. Currently, these photo album
sites are supported: Flickr, Photobucket and Picasa Web.

Format:
      <span class="class_tag">
         url



Printed 6/13/2007            Perfect Market Technologies                Page 15 of 22
                             Snap Shots™ Markup Language

       </span>

Enclosed Text:
   • url is the URL of a specific photo on the photo album site

Class Tag:
    Each of the following tags activates PhotoShots to display photos from the respective photo
    album site.
    • Snap_Shot_FlickrPhotoAlbum
    • Snap_Shot_PhotobucketPhotoAlbum
    • Snap_Shot_PicasaWebPhotoAlbum

Example 1:
      <span class="Snap_Shot_FlickrPhotoAlbum">
           http://flickr.com/photos/kayo_iz-source/428191014
      </span>

Example 2:
      <span class="Snap_Shot_PhotobucketPhotoAlbum">
           http://i151.photobucket.com/albums/s150/forever-flying/TURTLE.jpg
      </span>

Example 3:
      <span class="Snap_Shot_PicasaWebPhotoAlbum">
         http://picasaweb.google.com/p.sumegha/Kids/photo#5061510939589826658
      </span>



4.9 AudioShots: mp3 Audio

AudioShots™ for mp3 displays the interactive audio player, ready to play the specified mp3 audio
file. Based on the mp3 URL, Snap will attempt to locate the ID3 information for the artist, album
and track names. You may override any or all of these names with the appropriate attribute tags
shown below.

Format:
      <span class="Snap_Shot_mp3Audio">
         <span class="Snap_Shot_Attribute_Audio_URL">
            mp3 url
         </span>
         <span class="Snap_Shot_Attribute_Audio_Artist">
            artist name
         </span>
         <span class="Snap_Shot_Attribute_Audio_Album">
            album name
         </span>
         <span class="Snap_Shot_Attribute_Audio_Track">
            track title
         </span>


Printed 6/13/2007             Perfect Market Technologies                 Page 16 of 22
                            Snap Shots™ Markup Language

       </span>

Enclosed Text:
   • artist name (optional) is the name of the artist (singer, musician) for the audio piece
   • album name (optional) is the name of the album for the audio piece
   • track title (optional) is the track/title of the song or audio piece
   • mp3 url (mandatory) is the URL of the mp3 file for the audio piece

Class Tags:
    • Snap_Shot_mp3Audio: activates AudioShot to display the mp3 Flash player
    • Snap_Shot_ Attribute_mp3Audio_URL: (mandatory) specifies the URL of the mp3 file for the
       audio piece
    • Snap_Shot_Attribute_mp3Audio_Artist: (optional) specifies the name of the artist (singer,
       musician) for the audio piece
    • Snap_Shot_ Attribute_mp3Audio_Album: (optional) specifies the name of the album for the
       audio piece
    • Snap_Shot_ Attribute_mp3Audio_Track: (optional) specifies the title of the song or audio
       piece

Example 1:
      <span class="Snap_Shot_mp3Audio">
           <span class="Snap_Shot_Attribute_Audio_URL">
              http://wiredset.com/media/colin_macintyre/How-Bout-I-Love-You-
      More.mp3
           </span>
      </span>

Example 2:
      <span class="Snap_Shot_mp3Audio">
           <span class="Snap_Shot_Attribute_Audio_URL">
              http://wiredset.com/media/colin_macintyre/How-Bout-I-Love-You-
      More.mp3
           </span>
           <span class="Snap_Shot_Attribute_Audio_Artist">
              Mull Historical Society
           </span>
           <span class="Snap_Shot_Attribute_Audio_Album">
              This Is Hope
           </span>
           <span class="Snap_Shot_Attribute_Audio_Track">
              How ‘Bout I Love You More
           </span>
      </span>




Printed 6/13/2007            Perfect Market Technologies               Page 17 of 22
                             Snap Shots™ Markup Language




4.10 CompanyNewsShots: Reuters

CompanyNewsShots displays links to news and other information relating to a company, with the
content provided by Reuters (http://www.reuters.com).

Format:
      <span class="Snap_Shot_CompanyNews">
         ticker
      </span>

Enclosed Text:
   • ticker is stock ticker symbol of the company

Class Tags:
    • Snap_Shot_CompanyNews: activates CompanyNewsShots.
    • Snap_Shot_ReutersCompanyNews: this tag may be used instead, currently for the same effect
       and content.

Example:
      <span class="Snap_Shot_CompanyNews">
         GM
      </span>



4.11 ProfileShots

ProfileShots™ displays the profile information of users on social network sites. Currently,
MySpace is supported, with more sites to come.

Format:
      <span class="Snap_Shot_Profile">
         url
      </span>

Enclosed Text:
   • url is a fully-qualified URL of the user’s page on a social network site.

Class Tag:
    • Snap_Shot_Profile: activates the ProfileShot for the specified URL.

Example:
      <span class="Snap_Shot_Profile">
         http://myspace.com/kailey05
      </span>




Printed 6/13/2007             Perfect Market Technologies                   Page 18 of 22
                              Snap Shots™ Markup Language




4.12 RSS Shots

RSS Shots™ displays the top entries from the RSS feed available from the site/page URL.

Format:
      <span class="Snap_Shot_RSS">
         url
      </span>

Enclosed Text:
   • url is a fully-qualified URL of the site or permalink URL of the page having an RSS feed
       specified in a <LINK> tag.

Class Tag:
    • Snap_Shot_URL: activates the RSS Shot for the specified URL.

Example 1:
      <span class="Snap_Shot_RSS">
           http://www.techcrunch.com
      </span>

Example 2:
      <span class="Snap_Shot_RSS">
           http://www.techcrunch.com/2007/06/13/apple-to-integrate-itunes-
      into-bebo/
      </span>



4.13 URLShots

URLShots™ is a special Snap Shots type to trigger Shots automatically with just the specification of a
URL. Any of the other Shots may trigger as a result (WikiShots, VideoShots, etc.) depending on the
patterns matched (as described in section 2.1 Automatic Snap Shots).

Although Automatic Snap Shots are typically effective without additional markup, this markup allows
for enabling of Snap Shots on select parts of the web page without enabling Snap Shots for all links
on the page.

Format:
      <span class="Snap_Shot_URL">
         url
      </span>

Enclosed Text:
   • url is a fully-qualified URL of the desired object to display



Printed 6/13/2007              Perfect Market Technologies                  Page 19 of 22
                            Snap Shots™ Markup Language

Class Tag:
    • Snap_Shot_URL: activates any of the appropriate Snap Shots type based on pre-determined
       patterns contained in the URL

Example:
      <span class="Snap_Shot_URL">
         http://finance.yahoo.com/q?s=YHOO
      </span>




5 Tips and Tricks
5.1 How to Hide Enclosed Text

There are occasions where you’d like to hide from the display the text required for Snap
Shots markup. Below is a sample case.

HTML code:

       Apple’s new iPhone
       <span class="Snap_Shot_Preview">
        http://www.apple.com/iphone</span>
        is the coolest gadget of late.

Displayed page:

       Apple’s new iPhone www.apple.com/iphone        is the coolest gadget of late.



Add a ‘style=”display:none”’ to the code, as follows:

       Apple’s new iPhone
       <span class="Snap_Shot_Preview" style=”display:none”>
        http://www.apple.com/iphone</span>
        is the coolest gadget of late.


       Apple’s new iPhone   is the coolest gadget of late.




Printed 6/13/2007            Perfect Market Technologies                   Page 20 of 22
                          Snap Shots™ Markup Language


6 Questions, Feedback

For any questions you may have on this document or Snap Shots in general, please contact
Snap Customer Service at http://www.snap.com/about/feedbk.php or email
shotscustomerservice@snap.com. We welcome and appreciate your feedback.




Printed 6/13/2007          Perfect Market Technologies            Page 21 of 22
                               Snap Shots™ Markup Language



7 Appendix A: Revision History

This section summarizes the revisions of this document.

Date                Revision      Changes
                                  Added:
June 14, 2007       1.0.6         - MySpace VideoShot
                                  - RSS Shot
                                  Added:
June 7, 2007        1.0.5
                                  - MySpace ProfileShot
                                  Added:
May 31, 2007        1.0.4
                                  - Veoh support in VideoShots
                                  Added:
May 17, 2007        1.0.3         - Xanga support in VideoShots
                                  - Automatic trigger example for Photobucket PhotoShots to an album
                                  Added:
                                  - Picasa Web support in PhotoShots
May 10, 2007        1.0.2
                                  - Photobucket support in VideoShots
                                  - Expand Flickr PhotoShot to Tags and Sets
                                  Added:
                                  - Google Video, Metacafe, Revver (VideoShots)
May 1, 2007         1.0.1
                                  - Wikipedia Editions
                                  - Photobucket PhotoShots
April 13, 2007      1.0           Created




Printed 6/13/2007              Perfect Market Technologies                   Page 22 of 22

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:37
posted:6/15/2010
language:English
pages:22