[gpodder] Access-Control-Allow-Origin header on gpodder.net?

  • From: Matěj Cepl <mcepl@xxxxxxxxxx>
  • To: gpodder@xxxxxxxxxxxxx
  • Date: Mon, 19 Aug 2013 11:49:31 +0200

Hi,

I would like to write a podcatcher for Firefox OS (i.e., HTML/JS/CSS)
using gpodder.net as a backend and service for parsing feeds (so that I
don't have to rewrite feedparser.py in JavaScript). Initial code of the
library for using gpodder.net API is on
https://gitorious.org/elasmotherium/jspomyclient (it is complete
non-functional mess ATM). However, I have two problems:

1) First of all, of course, same-origin policy prevents my application
from accessing gpodder.net server. Would it be possible to add CORS
headers to gpodder.net server? See
https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS for
more details, but generally just

Access-Control-Allow-Origin: *

would do the trick; I am not sure though, whether anything else than
star value is worthy. After all, other similar API sites (e.g.,
http://query.yahooapis.com/) use it as well.

2) I have to admit that I am lost in the documentation for the API.
Documentation would be much more easy to read, if there were some
examples of the common operations. E.g., could I get curl example of how
to get list of unread episodes for the particular podcast (or all new
episodes for the podcasts subscribed to the given device)?

BTW, would it be possible to add gpodder@xxxxxxxxxxxxx back to
http://dir.gmane.org/gmane.network.syndication.podcast.gpodder.devel ?
It seems there is still gpodder-devel@xxxxxxxxxxxxxxxx, which is dead,
isn't it? I much prefer reading email lists over at the comfort of my
newsreader.

Best, and thanks for all the fish!

Matěj

-- 
http://www.ceplovi.cz/matej/, Jabber: mcepl@xxxxxxxxxx
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC



Attachment: signature.asc
Description: OpenPGP digital signature

Other related posts: