Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

finalizing presseportal.de (ch version could be integrated too)

  • Loading branch information...
commit e9f93f302fa35f0f34a27fdf5406e14a50a90a43 1 parent e250259
@spier spier authored
View
2  alltables_forked.env
@@ -650,6 +650,8 @@ USE 'https://raw.github.com/spier/yql-tables/presseportal/powerhousemuseum/phm.m
USE 'https://raw.github.com/spier/yql-tables/presseportal/powerhousemuseum/phm.subject.xml' AS phm.subject;
USE 'https://raw.github.com/spier/yql-tables/presseportal/powerhousemuseum/phm.theme.xml' AS phm.theme;
USE 'https://raw.github.com/spier/yql-tables/presseportal/presseportal/presseportal.info.xml' AS presseportal.info;
+USE 'https://raw.github.com/spier/yql-tables/presseportal/presseportal/presseportal.ir.xml' AS presseportal.ir;
+USE 'https://raw.github.com/spier/yql-tables/presseportal/presseportal/presseportal.publicservice.xml' AS presseportal.publicservice;
USE 'https://raw.github.com/spier/yql-tables/presseportal/presseportal/presseportal.search.xml' AS presseportal.search;
USE 'https://raw.github.com/spier/yql-tables/presseportal/presseportal/presseportal.stories.xml' AS presseportal.stories;
USE 'https://raw.github.com/spier/yql-tables/presseportal/prlog/prlog.categories.xml' AS prlog.categories;
View
6 presseportal/presseportal.info.xml
@@ -2,11 +2,11 @@
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Sebastian Spier (http://twitter.com/#!/sebastianspier/)</author>
- <description>presseportal.de - </description>
- <documentationURL></documentationURL>
+ <description>presseportal.de - Detailed information about a company, public service office, or media attachment.</description>
+ <documentationURL>http://api.presseportal.de/doc/</documentationURL>
<sampleQuery>SELECT * FROM {table} WHERE company="67633"</sampleQuery>
<sampleQuery>SELECT * FROM {table} WHERE office="70238"</sampleQuery>
- <sampleQuery>SELECT * FROM {table} WHERE attachment="70238"</sampleQuery>
+ <sampleQuery>SELECT * FROM {table} WHERE attachment="203045"</sampleQuery>
</meta>
<bindings>
View
61 presseportal/presseportal.ir.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Sebastian Spier (http://twitter.com/#!/sebastianspier/)</author>
+ <description>presseportal.de - Investor Relations News (general or for a given company)</description>
+ <documentationURL>http://api.presseportal.de/doc/</documentationURL>
+ <sampleQuery>SELECT * FROM {table} WHERE list="easy_dd"</sampleQuery>
+ <sampleQuery>SELECT * FROM {table} WHERE list="easy_dd" AND company="6343"</sampleQuery>
+ </meta>
+ <bindings>
+ <!--
+ /ir/company/id/list
+ -->
+ <select itemPath="json.content.story" produces="JSON">
+ <urls>
+ <url env="all">http://api.presseportal.de/api/ir/company/{company}/{list}</url>
+ </urls>
+ <paging model="offset">
+ <start id="start" default="0" />
+ <pagesize id="limit" max="100" />
+ <total default="20" />
+ </paging>
+ <inputs>
+ <key id="api_key" type="xs:string" paramType="query" required="true"/>
+ <key id="format" type="xs:string" paramType="query" default="json" const="true"/>
+
+ <key id="media" type="xs:string" paramType="path" description="requested media type. See http://api.presseportal.de/doc/value/media"/>
+ <key id="teaser" type="xs:string" paramType="query" description="stories with teaser instead of fulltext"/>
+ <key id="lang" type="xs:string" paramType="query" description="language of the stories ( only in ch )"/>
+
+ <key id="list" type="xs:string" paramType="path" required="true" description="investor relations news type. http://api.presseportal.de/doc/value/ir_type"/>
+ <key id="company" type="xs:string" paramType="path" required="true" description="id of the company"/>
+ </inputs>
+ </select>
+
+ <!--
+ /ir/list
+ -->
+ <select itemPath="json.content.story" produces="JSON">
+ <urls>
+ <url env="all">http://api.presseportal.de/api/ir/{list}</url>
+ </urls>
+ <paging model="offset">
+ <start id="start" default="0" />
+ <pagesize id="limit" max="100" />
+ <total default="20" />
+ </paging>
+ <inputs>
+ <key id="api_key" type="xs:string" paramType="query" required="true"/>
+ <key id="format" type="xs:string" paramType="query" default="json" const="true"/>
+
+ <key id="teaser" type="xs:string" paramType="query" description="stories with teaser instead of fulltext"/>
+ <key id="lang" type="xs:string" paramType="query" description="language of the stories ( only in ch )"/>
+
+ <key id="list" type="xs:string" paramType="path" required="true" description="investor relations news type. http://api.presseportal.de/doc/value/ir_type"/>
+ </inputs>
+ </select>
+
+
+ </bindings>
+</table>
View
81 presseportal/presseportal.publicservice.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Sebastian Spier (http://twitter.com/#!/sebastianspier/)</author>
+ <description>presseportal.de - Public service news</description>
+ <documentationURL>http://api.presseportal.de/doc/</documentationURL>
+ <sampleQuery>SELECT * FROM {table}</sampleQuery>
+ <sampleQuery>SELECT * FROM {table} WHERE region="nrw"</sampleQuery>
+ <sampleQuery>SELECT * FROM {table} WHERE region="nrw" AND media="image"</sampleQuery>
+ <sampleQuery>SELECT * FROM {table} WHERE office="11187"</sampleQuery>
+ </meta>
+ <bindings>
+ <!--
+ /article/publicservice/region/code [/media]
+ -->
+ <select itemPath="json.content.story" produces="JSON">
+ <urls>
+ <url env="all">http://api.presseportal.de/api/article/publicservice/region/{region}/{media}</url>
+ </urls>
+ <paging model="offset">
+ <start id="start" default="0" />
+ <pagesize id="limit" max="50" />
+ <total default="20" />
+ </paging>
+ <inputs>
+ <key id="api_key" type="xs:string" paramType="query" required="true"/>
+ <key id="format" type="xs:string" paramType="query" default="json" const="true"/>
+
+ <key id="media" type="xs:string" paramType="path" description="requested media type (only image or document). See http://api.presseportal.de/doc/value/media"/>
+ <key id="teaser" type="xs:string" paramType="query" description="stories with teaser instead of fulltext"/>
+
+ <key id="region" type="xs:string" paramType="path" required="true" description="region code. http://api.presseportal.de/doc/value/region"/>
+ </inputs>
+ </select>
+
+ <!--
+ /article/publicservice/office/id [/media]
+ -->
+ <select itemPath="json.content.story" produces="JSON">
+ <urls>
+ <url env="all">http://api.presseportal.de/api/article/publicservice/office/{office}/{media}</url>
+ </urls>
+ <paging model="offset">
+ <start id="start" default="0" />
+ <pagesize id="limit" max="50" />
+ <total default="20" />
+ </paging>
+ <inputs>
+ <key id="api_key" type="xs:string" paramType="query" required="true"/>
+ <key id="format" type="xs:string" paramType="query" default="json" const="true"/>
+
+ <key id="media" type="xs:string" paramType="path" description="requested media type (only image or document). See http://api.presseportal.de/doc/value/media"/>
+ <key id="teaser" type="xs:string" paramType="query" description="stories with teaser instead of fulltext"/>
+
+ <key id="office" type="xs:string" paramType="path" required="true" description="id of the public service office"/>
+ </inputs>
+ </select>
+
+ <!--
+ /article/publicservice [/media]
+ -->
+ <select itemPath="json.content.story" produces="JSON">
+ <urls>
+ <url env="all">http://api.presseportal.de/api/article/publicservice/{media}</url>
+ </urls>
+ <paging model="offset">
+ <start id="start" default="0" />
+ <pagesize id="limit" max="50" />
+ <total default="20" />
+ </paging>
+ <inputs>
+ <key id="api_key" type="xs:string" paramType="query" required="true"/>
+ <key id="format" type="xs:string" paramType="query" default="json" const="true"/>
+
+ <key id="media" type="xs:string" paramType="path" description="requested media type (only image or document). See http://api.presseportal.de/doc/value/media"/>
+ <key id="teaser" type="xs:string" paramType="query" description="stories with teaser instead of fulltext"/>
+ </inputs>
+ </select>
+
+ </bindings>
+</table>
View
4 presseportal/presseportal.search.xml
@@ -18,7 +18,7 @@
</urls>
<paging model="offset">
<start id="start" default="0" />
- <pagesize id="limit" max="100" />
+ <pagesize id="limit" max="50" />
<total default="20" />
</paging>
<inputs>
@@ -38,7 +38,7 @@
</urls>
<paging model="offset">
<start id="start" default="0" />
- <pagesize id="limit" max="100" />
+ <pagesize id="limit" max="50" />
<total default="20" />
</paging>
<inputs>
View
10 presseportal/presseportal.stories.xml
@@ -21,7 +21,7 @@
</urls>
<paging model="offset">
<start id="start" default="0" />
- <pagesize id="limit" max="100" />
+ <pagesize id="limit" max="50" />
<total default="20" />
</paging>
<inputs>
@@ -45,7 +45,7 @@
</urls>
<paging model="offset">
<start id="start" default="0" />
- <pagesize id="limit" max="100" />
+ <pagesize id="limit" max="50" />
<total default="20" />
</paging>
<inputs>
@@ -69,7 +69,7 @@
</urls>
<paging model="offset">
<start id="start" default="0" />
- <pagesize id="limit" max="100" />
+ <pagesize id="limit" max="50" />
<total default="20" />
</paging>
<inputs>
@@ -93,7 +93,7 @@
</urls>
<paging model="offset">
<start id="start" default="0" />
- <pagesize id="limit" max="100" />
+ <pagesize id="limit" max="50" />
<total default="20" />
</paging>
<inputs>
@@ -117,7 +117,7 @@
</urls>
<paging model="offset">
<start id="start" default="0" />
- <pagesize id="limit" max="100" />
+ <pagesize id="limit" max="50" />
<total default="20" />
</paging>
<inputs>

0 comments on commit e9f93f3

Please sign in to comment.
Something went wrong with that request. Please try again.