Hosting Details/API
Easily syndicate your content
With Meedu.org you have two simple options for podcast page hosting: use
your personal subdomain, or host javascript inside your existing web page.
- Use the Meedu.org subdomain for your organization. If your school acronym is "DU" (Digital University), your subdomain site might be du.socrates.meedu.org. Point people to http://du.socrates.meedu.org, and they will get your subdomain, which you can customize easily by uploading a CSS file. Your users will visit meedu.org to access the podcasts. For an example of this kind of hosting, please visit Fullerton Community College.
- Embed a tiny snippet of JavaScript code into your site. Anyone accessing
this page will see all of your podcasts embedded into the page as it loads.
For example:
<script src="http://kusc.podasp.com/jsrich.html"></script>This will embed your podcasts into your web page. For a sample of this type of usage, visit KUSC. To see the actual javascript, click here.
We also provide access to a JavaScript object which you could use in concert with your user defined Javascript on your page to completely control display and output.
Upload either using web browser or command line script. For web browsers, We recommend Firefox but any modern web browser is supported: Safari, Internet Explorer, and Opera, among others.
This sample script could be used to upload files into Meedu.org. It requires the "curl" program, available here. This allows anyone to automate publishing with other production processes.
#!/bin/bash
if [ "$1" == "" ] || [ "$2" == "" ] || [ "$3" == "" ] || \
[ "$4" == "" ] ||[ "$5" == "" ]; then
echo "Usage: upload.sh <filename> <username> <password> <title> <description>"
echo "(enclose the arguments in quotes for multiple words)"
exit
fi
if curl -s -o /dev/null -c ./piab-cookies.tmp -k -d "user[login]=$2" -d \
"user[password]=$3" https://meedu.org/user/login; then
curl --progress-bar -o /dev/null -b ./piab-cookies.tmp \
-c ./piab-cookies.tmp -H Expect: -k -F "episode[title]=$4" \
-F "episode[description]=$5" -F "episode_mp3_file=\@$3" \
https://meedu.org/episode/create
rm ./piab-cookies.tmp
else
echo "Cannot login, error"
fi

