Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #158 from danbeam/master

Adding more Google+ API tables and simplifying and fixing existing ones
  • Loading branch information...
commit 5b81c273f08992aad745506c3c771e9c21d3ba8e 2 parents ae9c75d + cbb4078
@pjdonnelly pjdonnelly authored
View
4 google/google.plus.activities.list.xml
@@ -8,12 +8,12 @@
<bindings>
<select itemPath="json" produces="JSON">
<urls>
- <url>https://www.googleapis.com/plus/v1/people/{userId}/activities/{collection}?key={key}</url>
+ <url>https://www.googleapis.com/plus/v1/people/{userId}/activities/{collection}</url>
</urls>
<inputs>
<key id="userId" type="xs:string" paramType="path" required="true" />
<key id="collection" type="xs:string" paramType="path" default="public" />
- <key id="key" type="xs:string" paramType="path" required="true" />
+ <key id="key" type="xs:string" paramType="query" required="true" />
</inputs>
</select>
</bindings>
View
23 google/google.plus.activities.search.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Dan Beam</author>
+ <documentationURL>https://developers.google.com/+/api/latest/activities/search</documentationURL>
+ <sampleQuery>select * from {table} where key="my_api_key" and query="hacking"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json" produces="JSON">
+ <urls>
+ <url>https://www.googleapis.com/plus/v1/activities</url>
+ </urls>
+ <inputs>
+ <key id="query" type="xs:string" paramType="query" required="true" />
+ <key id="language" type="xs:string" paramType="query" />
+ <key id="maxResults" type="xs:number" paramType="query" />
+ <key id="orderBy" type="xs:string" paramType="query" />
+ <key id="pageToken" type="xs:string" paramType="query" />
+ <key id="key" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
6 google/google.plus.activities.xml
@@ -3,16 +3,16 @@
<meta>
<author>Dan Beam</author>
<documentationURL>http://developers.google.com/+/api/latest/activities/get</documentationURL>
- <sampleQuery>select * from {table} where key="my_api_key" and activityId in (select item.id from google.plus.activities.list where key="my_api_key" and userId="116115719351294422282")</sampleQuery>
+ <sampleQuery>select * from {table} where key="my_api_key" and activityId in (select items.id from google.plus.activities.list where key="my_api_key" and userId="116115719351294422282")</sampleQuery>
</meta>
<bindings>
<select itemPath="json" produces="JSON">
<urls>
- <url>https://www.googleapis.com/plus/v1/activities/{activityId}?key={key}</url>
+ <url>https://www.googleapis.com/plus/v1/activities/{activityId}</url>
</urls>
<inputs>
<key id="activityId" type="xs:string" paramType="path" required="true" />
- <key id="key" type="xs:string" paramType="path" required="true" />
+ <key id="key" type="xs:string" paramType="query" required="true" />
</inputs>
</select>
</bindings>
View
22 google/google.plus.comments.list.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Dan Beam</author>
+ <documentationURL>https://developers.google.com/+/api/latest/comments/list</documentationURL>
+ <sampleQuery>select * from {table} where key="my_api_key" and activityId in (select items.id from google.plus.activities.list where key="my_api_key" and userId="116115719351294422282")</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json" produces="JSON">
+ <urls>
+ <url>https://www.googleapis.com/plus/v1/activities/{activityId}/comments</url>
+ </urls>
+ <inputs>
+ <key id="activityId" type="xs:string" paramType="path" required="true" />
+ <key id="maxResults" type="xs:integer" paramType="query" />
+ <key id="pageToken" type="xs:string" paramType="query" />
+ <key id="sortOrder" type="xs:string" paramType="query" />
+ <key id="key" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
19 google/google.plus.comments.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Dan Beam</author>
+ <documentationURL>https://developers.google.com/+/api/latest/comments/get</documentationURL>
+ <sampleQuery>select * from {table} where key="my_api_key" and commentId="tCq-VDETC7V5gIjHYUoFRIaX6yVhkJzndpye_oQcVMxdiQaTE0O_7I4Z8gZDy8gkrEKXEVH7Ius"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json" produces="JSON">
+ <urls>
+ <url>https://www.googleapis.com/plus/v1/comments/{commentId}</url>
+ </urls>
+ <inputs>
+ <key id="commentId" type="xs:string" paramType="path" required="true" />
+ <key id="key" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
22 google/google.plus.people.listByActivity.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Dan Beam</author>
+ <documentationURL>https://developers.google.com/+/api/latest/people/listByActivity</documentationURL>
+ <sampleQuery>select * from {table} where key="my_key_id" and activityId="z12dcbkzdvnqv5fek23fdxtznyabhbjxt04" and collection="116115719351294422282"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json" produces="JSON">
+ <urls>
+ <url>https://www.googleapis.com/plus/v1/activities/{activityId}/people/{collection}</url>
+ </urls>
+ <inputs>
+ <key id="activityId" type="xs:string" paramType="path" required="true" />
+ <key id="collection" type="xs:string" paramType="path" required="true" />
+ <key id="maxResults" type="xs:integer" paramType="query" />
+ <key id="pageToken" type="xs:string" paramType="query" />
+ <key id="key" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
23 google/google.plus.people.search.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Dan Beam</author>
+ <documentationURL>https://developers.google.com/+/api/latest/people/search</documentationURL>
+ <sampleQuery>select * from {table} where key="my_api_key" and query="Ritchie"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="json" produces="JSON">
+ <urls>
+ <url>https://www.googleapis.com/plus/v1/people</url>
+ </urls>
+ <inputs>
+ <key id="query" type="xs:string" paramType="query" required="true" />
+ <key id="language" type="xs:string" paramType="query" />
+ <key id="maxResults" type="xs:integer" paramType="query" />
+ <key id="orderBy" type="xs:string" paramType="query" />
+ <key id="pageToken" type="xs:string" paramType="query" />
+ <key id="key" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
4 google/google.plus.people.xml
@@ -8,11 +8,11 @@
<bindings>
<select itemPath="json" produces="JSON">
<urls>
- <url>https://www.googleapis.com/plus/v1/people/{userId}?key={key}</url>
+ <url>https://www.googleapis.com/plus/v1/people/{userId}</url>
</urls>
<inputs>
<key id="userId" type="xs:string" paramType="path" required="true" />
- <key id="key" type="xs:string" paramType="path" required="true" />
+ <key id="key" type="xs:string" paramType="query" required="true" />
</inputs>
</select>
</bindings>
Please sign in to comment.
Something went wrong with that request. Please try again.