How do I delete Vid.lys via the PRO API?

If you wish to remove Vid.lys, you may do so via the Vid.ly PRO API. There are two ways you can achieve this, via BatchID or via Shortlink. 

To remove via shortlinks:

<?xml version="1.0"?>
<query>
    <action>DeleteMedia</action>
    <userid>[User_ID]</userid>
    <userkey>[User_Key]</userkey>
    <notify>[email_or_URL]</notify>
    <MediaShortLink>[MediaShortLink1]</MediaShortLink>
    <MediaShortLink>[MediaShortLink2]</MediaShortLink>
    <MediaShortLink>[MediaShortLink3]</MediaShortLink>
    <MediaShortLink>[MediaShortLink4]</MediaShortLink>
    <MediaShortLink>[MediaShortLink5]</MediaShortLink>
</query>

Now, let's try the same call, but we'll use the BatchID tag:

<?xml version="1.0"?>
<query>
    <action>DeleteMedia</action>
    <userid>[User_ID]</userid>
    <userkey>[User_Key]</userkey>
    <notify>[email_or_URL]</notify>
    <BatchID>[BatchID]</BatchID>
</query>

Where oh where do we find at BatchID you say? In your response XML from a batch submit, use the ID you receive in the callback as we see in this example in line 5.

<?xml version="1.0"?>
<Response>
    <Message>All medias have been added.</Message>
    <MessageCode>2.1</MessageCode>
    <BatchID>[unique_id]</BatchID>
    <Success>
        <MediaShortLink>
            <SourceFile>[SourceFile1]</SourceFile>
            <ShortLink>[Vid.ly_shortlink1]</ShortLink>
        </MediaShortLink>
        <MediaShortLink>
            <SourceFile>[SourceFile2]</SourceFile>
            <ShortLink>[Vid.ly_shortlink2]</ShortLink>
        </MediaShortLink>
    </Success>
</Response>
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 2.33 out of 5)
Loading...

edchelp