Link Data Type

From MeeMixWiki

Jump to: navigation, search

Overview

The link data type represents associated track or artist information.

MeeMix servers create indexes for all the attached links; thus, in all the search operations you can specify a link type to search for (e.g., request a user's recommended ringtones only, videos only, events only, etc).

To create a link type use the lib.addLinkType function.

The following link types exists for MeeMix default library:

  • ringtone
  • video
  • live_video
  • wallpaper
  • event
  • documentries



The link data type has the following fields:

Name Type Description
linkType string The link type you created earlier using the lib.addLinkType function.
linksData array(LinkData). see Below.

The LinkData data type has the following fields:

Name Type Description
linkId string any unique id you give for this link.
linkCookie string any content you give for this link ( can be urls, cookies, any other information you wish to attach for you tracks/artists)


Example:

<link>
    <linkType>ringtone</linkType> 
    <linksData>
        <linkData>
            <linkId>1</linkId>
            <linkCookie>http://www.example.com/ringtone_url</linkCookie>
        </linkData>
    </linksData>     
 </link>
Personal tools
        © 2009 MeeMix ltd