Name

rd_deletepodcast — Rivendell Delete RSS item audio C Library Function

Synopsis

#include <rivwebcapi/rd_deletepodcast.h>
int RD_DeletePodcast(hostname[],  
 username[],  
 passwd[],  
 ticket[],  
 cast_id,  
 user_agent[]); 
const char hostname[];
const char username[];
const char passwd[];
const char ticket[];
const unsigned cast_id;
const char user_agent[];
 

Description

RD_DeletePodcast is the function to use to delete RSS item audio from audio store.

Table 1. RD_DeletePodcast function call fields

FIELD NAME FIELD TYPE MEANING REMARKS
hostname Character Array Name Of Rivendell DB Host Mandatory
username Character Array Rivendell User Name Mandatory When NO Ticket Provided
passwd Character Array Rivendell User Password Mandatory When NO Ticket Provided
ticket Character Array Rivendell Authentification Ticket Mandatory When NO User/Password Pair Provided.
cast_id unsigned integer Podcast ID Mandatory
user_agent Character Array User Agent Value put into HTTP request Optional (default is Rivendell-C-API/x.x.x)

RETURN VALUE

On success, zero is returned.

If a server error occurs a -1 is returned. If a client error occurs a specific error number is returned.

ERRORS

400 Missing Podcast ID

403 User Authentification Error.

404 Unauthorized or No Such Podcast

nnn Unknown Error Occurred.