MeeMix Dev Zone!

Lib.addLinkType

From MeeMixWiki

Contents

Overview

Associated a new content type ( link type ) to your library. Link type can be 'ringtone', 'video', 'event' etc.

MeeMix create indexes for each of you library link types. Thus you can search specific content later on. ( For example, give me similars tracks by Madonna which have ringtones).

See also Link page.

Request

Parameters:

Required Name Type Description
required partnerId string your assigned partner ID.
required partnerKey string your assigned 32-character partner key.
required libId string the ID you assigned to the library.
required linkType string the new content type you wish to create (e.g. ringtone, video, event, interview).

SOAP Request example:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:q0="http://ws.meemix.com/mxws/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance">
   <soapenv:Body>
       <q0:libAddLinkTypeRequest>
           <partnerId>..</partnerId>
           <partnerKey>..</partnerKey>
           <libId>1</libId>
           <linkType>ringtone</linkType>
       </q0:libAddLinkTypeRequest>
   </soapenv:Body>
</soapenv:Envelope>

In this example we created a new ringtone content type.

Response

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">    
   <soapenv:Body>        
       <ns3:libAddLinkTypeResponse xmlns:ns3="http://ws.meemix.com/mxws/">
           <success>true</success>
       </ns3:libAddLinkTypeResponse>
   </soapenv:Body>
</soapenv:Envelope>

Faults

Code Description
1 Invalid partner ID
2 Invalid partner key
18 Invalid library ID

For a full faults list and example of soapFault please visit the Faults page.