Name

rd_postpodcast — Rivendell Post RSS item audio Library Function

Synopsis

#include <rivwebcapi/rd_postpodcast.h>
int RD_PostPodcast(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_PostPodcast is the function to use to post RSS audio from the audio store to the remote RSS repository.

Table 1. RD_PostPodcast 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 Cast ID

403 User Authentification Error.

404 Unauthorized or No Such Podcast

nnn Unknown Error Occurred.