Register Member

Registers a new member. Will return an error if the request data is not valid or the member already exists, based on email address uniqueness.

Upon a successful registration, the API will send email notifications to the Member and Administrator according to settings configured within Harvest Media.

Default file format can be set using the <fileformat> property. Please use the trackformat identifier which can be located in Filefomats.  You can also define a file format for each type (wav, mp3, aiff) in the <filefomats> element, however do not attempt to add more than one <memberfileformat> for each type.

  

Request:

POST /registermember/{serviceToken}

Parameter Type Status
serviceToken String Mandatory
Request Body XML Mandatory

Request body:

<requestmember>

      <memberaccount>
      <firstname>XX</firstname>
      <lastname>XX</lastname>
      <email>XX</email>
      <company></company>
      <address1></ address1>
      <address2></ address2>
      <suburb></suburb>
      <state></state>
      <postcode></postcode>
      <country></country>
      <phone></phone>
      <username>XX</username>
      <password>XX</password>
      <termsaccept>true</termsaccept>
      <subscribe>true</subscribe>
      <fileformat>0cd0dbbf8c4d6621</fileformat>
      <searchformat>Track</searchformat>
      <searchsort>Fav/New/Alph</searchsort>
      </memberaccount>
      <nomemberemail>false</nomemberemail>

</requestmember>

Successful Response:

<responsemember>

      <member ID=”59785555555123”>
      <firstname>XX</firstname>
      <lastname>XX</lastname>
      <email>XX</email>
      <company></company>
      <position />
     
<address1></ address1>
      <address2></ address2>
      <suburb></suburb>
      <state></state>
      <postcode></postcode>
      <country></country>
      <phone></phone>
      <username>XX</username>
      <termsaccept>true</termsaccept>
      <subscribe>true</subscribe>
      <fileformat>0cd0dbbbbbbbb621</fileformat>
      <sampleenabled>True</sampleenabled>
     
<downloadenabled>True</downloadenabled>
      <downloadsremaining>10</downloadsremaining>
      <status>active</status>
      <hasprofileimages>false</hasprofileimages>
      <regionid>0cd0dbbbbbbbb621</regionid>
      <passwordtype>
cleartext</passwordtype>
     
<fileformats>
              <memberfileformat id="0cd0dbbbbbbbb621" />      
            <memberfileformat id="eeeedbbbbbbbb621" /> 
     
<fileformats/>

<asseturl
trackstream=”http://cf.harvestmedia.net/assets/samples/6168b92550081d3640b49e9476c6093de35899ef/{id}”                    albummontagestream=”http://cf.harvestmedia.net/assets/samples/montage/6168b92550081d3640b49e9476c6093de35899ef /{id}”
profileimage="http://cf.harvestmedia.net/assets/memberprofile/460b9834aec47a75fee7c18083e5ca34ea4c8f9a/2f26efe987588cb2/{width}/{height}"
/>
</member >

</responsemember>

 

Error Response:

<responsemember>
<error>
<code>5</code>
<description>Invalid Token</description>
</error>
</responsemember>

 

 
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.