Skip to content

Commit

Permalink
Updated mixi tables.
Browse files Browse the repository at this point in the history
  • Loading branch information
okuryu committed Mar 14, 2011
1 parent 879976a commit 8db2bde
Show file tree
Hide file tree
Showing 9 changed files with 255 additions and 0 deletions.
20 changes: 20 additions & 0 deletions mixi/mixi.groups.xml
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
<meta>
<author>Ryuichi Okumura</author>
<documentationURL>http://developer.mixi.co.jp/connect/mixi_graph_api/mixi_io_spec_top/groups-api</documentationURL>
</meta>
<bindings>
<select itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/groups/{user_id}</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="user_id" type="xs:string" paramType="path" required="true" />
<key id="startIndex" type="xs:string" paramType="query" />
<key id="count" type="xs:string" paramType="query" />
</inputs>
</select>
</bindings>
</table>
3 changes: 3 additions & 0 deletions mixi/mixi.people.xml
Expand Up @@ -13,6 +13,9 @@
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="user_id" type="xs:string" paramType="path" required="true" />
<key id="group_id" type="xs:string" paramType="path" required="true" />
<key id="sortBy" type="xs:string" paramType="query" />
<key id="sortOrder" type="xs:string" paramType="query" />
<key id="fields" type="xs:string" paramType="query" />
<key id="startIndex" type="xs:string" paramType="query" />
<key id="count" type="xs:string" paramType="query" />
</inputs>
Expand Down
21 changes: 21 additions & 0 deletions mixi/mixi.peoplelookup.xml
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
<meta>
<author>Ryuichi Okumura</author>
<documentationURL>http://developer.mixi.co.jp/connect/mixi_graph_api/mixi_io_spec_top/people-lookup-api</documentationURL>
</meta>
<bindings>
<select itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/search/people</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="q" type="xs:string" paramType="query" required="true" />
<key id="fields" type="xs:string" paramType="query" />
<key id="startIndex" type="xs:string" paramType="query" />
<key id="count" type="xs:string" paramType="query" />
</inputs>
</select>
</bindings>
</table>
24 changes: 24 additions & 0 deletions mixi/mixi.updates.xml
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
<meta>
<author>Ryuichi Okumura</author>
<documentationURL>http://developer.mixi.co.jp/connect/mixi_graph_api/mixi_io_spec_top/updates-api</documentationURL>
</meta>
<bindings>
<select itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/updates/{user_id}/{group_id}</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="user_id" type="xs:string" paramType="path" required="true" />
<key id="group_id" type="xs:string" paramType="path" required="true" />
<key id="fields" type="xs:string" paramType="query" />
<key id="count" type="xs:string" paramType="query" />
<key id="updatedSince" type="xs:string" paramType="query" />
<key id="device" type="xs:string" paramType="query" />
<key id="startIndex" type="xs:string" paramType="query" />
</inputs>
</select>
</bindings>
</table>
46 changes: 46 additions & 0 deletions mixi/mixi.voice.favorites.xml
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
<meta>
<author>Ryuichi Okumura</author>
<documentationURL>http://developer.mixi.co.jp/connect/mixi_graph_api/mixi_io_spec_top/voice-api</documentationURL>
</meta>
<bindings>
<select itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/voice/favorites/{post_id}</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="post_id" type="xs:string" paramType="path" required="true" />
<key id="trim_user" type="xs:string" paramType="query" />
<key id="count" type="xs:string" paramType="query" />
<key id="startIndex" type="xs:string" paramType="query" />
</inputs>
</select>
<insert itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/voice/favorites/{post_id}</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="post_id" type="xs:string" paramType="path" required="true" />
</inputs>
<execute><![CDATA[
response.object = request.post().response;
]]></execute>
</insert>
<delete itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/voice/favorites/{post_id}/{user_id}</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="post_id" type="xs:string" paramType="path" required="true" />
<key id="user_id" type="xs:string" paramType="path" required="true" />
</inputs>
<execute><![CDATA[
response.object = request.del().response;
]]></execute>
</delete>
</bindings>
</table>
48 changes: 48 additions & 0 deletions mixi/mixi.voice.replies.xml
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
<meta>
<author>Ryuichi Okumura</author>
<documentationURL>http://developer.mixi.co.jp/connect/mixi_graph_api/mixi_io_spec_top/voice-api</documentationURL>
</meta>
<bindings>
<select itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/voice/replies/{post_id}</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="post_id" type="xs:string" paramType="path" required="true" />
<key id="trim_user" type="xs:string" paramType="query" />
<key id="count" type="xs:string" paramType="query" />
<key id="startIndex" type="xs:string" paramType="query" />
</inputs>
</select>
<insert itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/voice/replies/{post_id}</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="post_id" type="xs:string" paramType="path" required="true" />
<key id="text" type="xs:string" paramType="variable" required="true" />
</inputs>
<execute><![CDATA[
var request = request.contentType("application/x-www-form-urlencoded");
response.object = request.post("text=" + encodeURIComponent(text)).response;
]]></execute>
</insert>
<delete itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/voice/statuses/{post_id}/{comment_id}</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="post_id" type="xs:string" paramType="path" required="true" />
<key id="comment_id" type="xs:string" paramType="path" required="true" />
</inputs>
<execute><![CDATA[
response.object = request.del().response;
]]></execute>
</delete>
</bindings>
</table>
23 changes: 23 additions & 0 deletions mixi/mixi.voice.statuses.friendstimeline.xml
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
<meta>
<author>Ryuichi Okumura</author>
<documentationURL>http://developer.mixi.co.jp/connect/mixi_graph_api/mixi_io_spec_top/voice-api</documentationURL>
</meta>
<bindings>
<select itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/voice/statuses/friends_timeline/{group_id}</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="group_id" type="xs:string" paramType="path" required="true" />
<key id="since_id" type="xs:string" paramType="query" />
<key id="trim_user" type="xs:string" paramType="query" />
<key id="attach_photo" type="xs:string" paramType="query" />
<key id="count" type="xs:string" paramType="query" />
<key id="startIndex" type="xs:string" paramType="query" />
</inputs>
</select>
</bindings>
</table>
23 changes: 23 additions & 0 deletions mixi/mixi.voice.statuses.usertimeline.xml
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
<meta>
<author>Ryuichi Okumura</author>
<documentationURL>http://developer.mixi.co.jp/connect/mixi_graph_api/mixi_io_spec_top/voice-api</documentationURL>
</meta>
<bindings>
<select itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/voice/statuses/{user_id}/user_timeline</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="user_id" type="xs:string" paramType="path" required="true" />
<key id="since_id" type="xs:string" paramType="query" />
<key id="trim_user" type="xs:string" paramType="query" />
<key id="attach_photo" type="xs:string" paramType="query" />
<key id="count" type="xs:string" paramType="query" />
<key id="startIndex" type="xs:string" paramType="query" />
</inputs>
</select>
</bindings>
</table>
47 changes: 47 additions & 0 deletions mixi/mixi.voice.statuses.xml
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
<meta>
<author>Ryuichi Okumura</author>
<documentationURL>http://developer.mixi.co.jp/connect/mixi_graph_api/mixi_io_spec_top/voice-api</documentationURL>
</meta>
<bindings>
<select itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/voice/statuses/{post_id}</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="post_id" type="xs:string" paramType="path" required="true" />
<key id="trim_user" type="xs:string" paramType="query" />
<key id="attach_photo" type="xs:string" paramType="query" />
<key id="count" type="xs:string" paramType="query" />
<key id="startIndex" type="xs:string" paramType="query" />
</inputs>
</select>
<insert itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/voice/statuses</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="status" type="xs:string" paramType="variable" required="true" />
</inputs>
<execute><![CDATA[
var request = request.contentType("application/x-www-form-urlencoded");
response.object = request.post("status=" + encodeURIComponent(status)).response;
]]></execute>
</insert>
<delete itemPath="" produces="JSON">
<urls>
<url>http://api.mixi-platform.com/2/voice/statuses/{post_id}</url>
</urls>
<inputs>
<key id="oauth_token" type="xs:string" paramType="query" required="true" />
<key id="post_id" type="xs:string" paramType="path" required="true" />
</inputs>
<execute><![CDATA[
response.object = request.del().response;
]]></execute>
</delete>
</bindings>
</table>

0 comments on commit 8db2bde

Please sign in to comment.