packages feed

apis 0.0.0 → 0.0.1

raw patch · 34 files changed

+2231/−10 lines, 34 filesdep −http-conduit

Dependencies removed: http-conduit

Files

apis.cabal view
@@ -1,5 +1,5 @@ name:              apis-version:           0.0.0+version:           0.0.1 synopsis:          A Template Haskell library for generating type safe API calls description:       A library that uses Open Data Tables and JSON Schemas to                    generate Haskell types and API calls.@@ -16,6 +16,36 @@                     apis/krisinformation/krisinformation.feed.xml                     apis/smhi/smhi.pmp.json                     apis/smhi/smhi.pmp.xml+                    apis/dropbox/dropbox.files.json+                    apis/dropbox/dropbox.files.xml+                    apis/dropbox/dropbox.files.put.json+                    apis/dropbox/dropbox.files.put.xml+                    apis/dropbox/dropbox.metadata.json+                    apis/dropbox/dropbox.metadata.xml+                    apis/facebook/facebook.graph.user.feed.json+                    apis/facebook/facebook.graph.user.feed.xml+                    apis/facebook/facebook.graph.user.feed.post.json+                    apis/facebook/facebook.graph.user.feed.post.xml+                    apis/facebook/facebook.graph.user.friendlists.json+                    apis/facebook/facebook.graph.user.friendlists.xml+                    apis/facebook/facebook.graph.user.friends.json+                    apis/facebook/facebook.graph.user.friends.xml+                    apis/facebook/facebook.graph.user.inbox.json+                    apis/facebook/facebook.graph.user.inbox.xml+                    apis/facebook/facebook.graph.user.links.json+                    apis/facebook/facebook.graph.user.links.xml+                    apis/facebook/facebook.graph.user.photos.json+                    apis/facebook/facebook.graph.user.photos.xml+                    apis/facebook/facebook.graph.user.photosuploaded.json+                    apis/facebook/facebook.graph.user.photosuploaded.xml+                    apis/facebook/facebook.graph.user.pokes.json+                    apis/facebook/facebook.graph.user.pokes.xml+                    apis/facebook/facebook.graph.user.posts.json+                    apis/facebook/facebook.graph.user.posts.xml+                    apis/facebook/facebook.graph.user.statuses.json+                    apis/facebook/facebook.graph.user.statuses.xml+                    apis/facebook/facebook.graph.user.tagged.json+                    apis/facebook/facebook.graph.user.tagged.xml                     LICENSE  source-repository head@@ -28,6 +58,8 @@     hs-source-dirs: src/      exposed-modules: Control.Monad.Trans.API+                     Data.JSON.Void+                     Data.JSON.Schema                      Data.Settings.YQL                      Data.State.YQL                      TH.API@@ -37,9 +69,7 @@                      TH.YQL                      TH.YQLs -    other-modules: Data.JSON.Void-                   Data.JSON.Schema-                   Data.TH.API+    other-modules: Data.TH.API                    Data.TH.Convert                    Data.TH.FFI                    Data.TH.Object@@ -61,7 +91,6 @@                  , filemanip            == 0.3.*                  , filepath             == 1.3.*                  , hslogger             == 1.2.*-                 , http-conduit         == 2.1.*                  , hxt                  == 9.3.*                  , mtl                  == 2.2.*                  , opendatatable        == 0.0.*
+ apis/dropbox/dropbox.files.json view
@@ -0,0 +1,11 @@+{+  "type": "object",+  "properties": {+    "content": {+      "type": "string"+    }+  },+  "required": [+    "content"+  ]+}
+ apis/dropbox/dropbox.files.put.json view
@@ -0,0 +1,55 @@+{+  "type": "object",+  "properties": {+    "revision": {+      "type": "number"+    },+    "bytes": {+      "type": "number"+    },+    "thumb_exists": {+      "type": "boolean"+    },+    "rev": {+      "type": "string"+    },+    "modified": {+      "type": "string"+    },+    "mime_type": {+      "type": "string"+    },+    "path": {+      "type": "string"+    },+    "is_dir": {+      "type": "boolean"+    },+    "size": {+      "type": "string"+    },+    "root": {+      "type": "string"+    },+    "client_mtime": {+      "type": "string"+    },+    "icon": {+      "type": "string"+    }+  },+  "required": [+    "revision",+    "bytes",+    "thumb_exists",+    "rev",+    "modified",+    "mime_type",+    "path",+    "is_dir",+    "size",+    "root",+    "client_mtime",+    "icon"+  ]+}
+ apis/dropbox/dropbox.files.put.xml view
@@ -0,0 +1,38 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://www.dropbox.com/developers/core/docs+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://api-content.dropbox.com/1/files_put/{root}/{path}+        </url>+      </urls>+      <inputs>+        <key id="root" paramType="path" required="true" default="auto" type="xs:string"/>+        <key id="path" paramType="path" required="true" type="xs:string"/>+        <key id="param" paramType="query" required="false" type="xs:string"/>+        <key id="content" paramType="variable" required="true" type="xs:string"/>+        <key id="access_token" paramType="variable" required="true" type="xs:string"/>+      </inputs>+      <execute><![CDATA[+      try {+      response.object =+      y.rest(request.url)+      .header('Authorization', 'Bearer ' + access_token)+      .post(content).response;+      } catch(err) {+      response.object = {'result':'failure', 'error': err};+      }+      ]]>+      </execute>+    </select>+  </bindings>+</table>
+ apis/dropbox/dropbox.files.xml view
@@ -0,0 +1,38 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://www.dropbox.com/developers/core/docs+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://api-content.dropbox.com/1/files/{root}/{path}+        </url>+      </urls>+      <inputs>+        <key id="root" paramType="path" required="true" default="auto" type="xs:string"/>+        <key id="path" paramType="path" required="true" type="xs:string"/>+        <key id="rev" paramType="query" required="false" type="xs:number"/>+        <key id="access_token" paramType="variable" required="true" type="xs:string"/>+      </inputs>+      <execute><![CDATA[+      try {+      response.object = {};+      response.object.content =+      y.rest(request.url)+      .header('Authorization', 'Bearer ' + access_token)+      .get().response;+      } catch(err) {+      response.object = { 'result':'failure', 'error': err };+      }+      ]]>+      </execute>+    </select>+  </bindings>+</table>
+ apis/dropbox/dropbox.metadata.json view
@@ -0,0 +1,108 @@+{+  "type": "object",+  "properties": {+    "size": {+      "type": "string"+    },+    "bytes": {+      "type": "number"+    },+    "path": {+      "type": "string"+    },+    "is_dir": {+      "type": "boolean"+    },+    "is_deleted": {+      "type": "boolean"+    },+    "rev": {+      "type": "string"+    },+    "hash": {+      "type": "string"+    },+    "thumb_exists": {+      "type": "boolean"+    },+    "icon": {+      "type": "string"+    },+    "modified": {+      "type": "string"+    },+    "client_mtime": {+      "type": "string"+    },+    "root": {+      "type": "string"+    },+    "contents": {+      "type": "array",+      "items": {+        "type": "object",+        "properties": {+          "rev": {+            "type": "string"+          },+          "thumb_exists": {+            "type": "boolean"+          },+          "path": {+            "type": "string"+          },+          "is_dir": {+            "type": "boolean"+          },+          "client_mtime": {+            "type": "string"+          },+          "icon": {+            "type": "string"+          },+          "bytes": {+            "type": "number"+          },+          "modified": {+            "type": "string"+          },+          "size": {+            "type": "string"+          },+          "root": {+            "type": "string"+          },+          "mime_type": {+            "type": "string"+          },+          "revision": {+            "type": "number"+          }+        },+        "required": [+          "rev",+          "thumb_exists",+          "path",+          "is_dir",+          "icon",+          "bytes",+          "modified",+          "size",+          "root",+          "revision"+        ]+      }+    }+  },+  "required": [+    "hash",+    "thumb_exists",+    "bytes",+    "path",+    "is_dir",+    "icon",+    "root",+    "contents",+    "size"+  ]+}
+ apis/dropbox/dropbox.metadata.xml view
@@ -0,0 +1,43 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://www.dropbox.com/developers/core/docs+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://api.dropbox.com/1/metadata/{root}/{path}+        </url>+      </urls>+      <inputs>+        <key id="path" paramType="path" required="true" default="auto" type="xs:string"/>+        <key id="root" paramType="path" required="false" default="dropbox" type="xs:string"/>+        <key id="file_limit" paramType="query" required="false" type="xs:number"/>+        <key id="hash" paramType="query" required="false" type="xs:string"/>+        <key id="list" paramType="query" required="false" type="xs:boolean"/>+        <key id="include_deleted" paramType="query" required="false" type="xs:bool"/>+        <key id="rev" paramType="query" required="false" type="xs:number"/>+        <key id="locale" paramType="query" required="false" type="xs:string"/>+        <key id="include_media_info" paramType="query" required="false" type="xs:boolean"/>+        <key id="access_token" paramType="variable" required="true" type="xs:string"/>+      </inputs>+      <execute><![CDATA[+      try {+      response.object =+      y.rest(request.url)+      .header('Authorization', 'Bearer ' + access_token)+      .get().response;+      } catch(err) {+      response.object = { 'result':'failure', 'error': err };+      }+      ]]>+      </execute>+    </select>+  </bindings>+</table>
+ apis/facebook/facebook.graph.user.feed.json view
@@ -0,0 +1,168 @@+{+  "type": "object",+  "properties": {+    "data": {+      "type": "array",+      "items": {+        "type": "object",+        "properties": {+          "id": {+            "type": "string"+          },+          "actions": {+            "type": "array",+            "items": {+              "type": "object",+              "properties": {+                "name": {+                  "type": "string"+                },+                "link": {+                  "type": "string"+                }+              },+              "required": [+                "name",+                "link"+              ]+            }+          },+          "application": {+            "type": "object",+            "properties": {+              "name": {+                "type": "string"+              },+              "id": {+                "type": "string"+              }+            },+            "required": [+              "name",+              "id"+            ]+          },+          "caption": {+            "type": "string"+          },+          "created_time": {+            "type": "string"+          },+          "description": {+            "type": "string"+          },+          "from": {+            "type": "object",+            "properties": {+              "id": {+                "type": "string"+              },+              "name": {+                "type": "string"+              }+            },+            "required": [+              "id",+              "name"+            ]+          },+          "icon": {+            "type": "string"+          },+          "is_hidden": {+            "type": "boolean"+          },+          "link": {+            "type": "string"+          },+          "message": {+            "type": "string"+          },+          "name": {+            "type": "string"+          },+          "object_id": {+            "type": "string"+          },+          "picture": {+            "type": "string"+          },+          "privacy": {+            "type": "object",+            "properties": {+              "description": {+                "type": "string"+              },+              "value": {+                "type": "string"+              },+              "friends": {+                "type": "string"+              },+              "networks": {+                "type": "string"+              },+              "allow": {+                "type": "string"+              },+              "deny": {+                "type": "string"+              }+            },+            "required": [+              "description",+              "value",+              "friends",+              "networks",+              "allow",+              "deny"+            ]+          },+          "source": {+            "type": "string"+          },+          "status_type": {+            "type": "string"+          },+          "type": {+            "type": "string"+          },+          "updated_time": {+            "type": "string"+          }+        },+        "required": [+          "id",+          "from",+          "message",+          "actions",+          "privacy",+          "type",+          "status_type",+          "application",+          "created_time",+          "updated_time"+        ]+      }+    },+    "paging": {+      "type": "object",+      "properties": {+        "previous": {+          "type": "string"+        },+        "next": {+          "type": "string"+        }+      },+      "required": [+        "previous",+        "next"+      ]+    }+  },+  "required": [+    "data",+    "paging"+  ]+}
+ apis/facebook/facebook.graph.user.feed.post.json view
@@ -0,0 +1,11 @@+{+  "type": "object",+  "properties": {+    "id": {+      "type": "string"+    }+  },+  "required": [+    "id"+  ]+}
+ apis/facebook/facebook.graph.user.feed.post.xml view
@@ -0,0 +1,50 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://developers.facebook.com/docs/graph-api/reference/v2.2/user/feed+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://graph.facebook.com/v2.2/{user_id}/feed+        </url>+      </urls>+      <inputs>+        <key id="user_id" paramType="path" required="true" type="xs:string"/>+        <key id="access_token" paramType="query" required="true" type="xs:string"/>+        <key id="message" paramType="variable" required="false" type="xs:string"/>+        <key id="link" paramType="variable" required="false" type="xs:string"/>+        <key id="actions" paramType="variable" required="false" type="xs:string"/>+        <key id="place" paramType="variable" required="false" type="xs:string"/>+        <key id="tags" paramType="variable" required="false" type="xs:string"/>+        <key id="privacy" paramType="variable" required="false" type="xs:string"/>+        <key id="object_attachment" paramType="variable" required="false" type="xs:string"/>+      </inputs>+      <execute><![CDATA[+      var data =+      { message: message,+      link: link,+      actions: actions,+      place: place,+      tags: tags,+      privacy: privacy,+      object_attachment: object_attachment };+      try {+      response.object =+      y.rest(request.url)+      .contentType('application/x-www-form-urlencoded; charset=UTF8')+      .post(request.querystring(data)).response;+      } catch(err) {+      response.object = {'result':'failure', 'error': err};+      }+      ]]>+      </execute>+    </select>+  </bindings>+</table>
+ apis/facebook/facebook.graph.user.feed.xml view
@@ -0,0 +1,24 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://developers.facebook.com/docs/graph-api/reference/v2.2/user/feed+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://graph.facebook.com/v2.2/{user_id}/feed+        </url>+      </urls>+      <inputs>+        <key id="user_id" paramType="path" required="true" type="xs:string"/>+        <key id="access_token" paramType="query" required="true" type="xs:string"/>+      </inputs>+    </select>+  </bindings>+</table>
+ apis/facebook/facebook.graph.user.friendlists.json view
@@ -0,0 +1,42 @@+{+  "type": "object",+  "properties": {+    "data": {+      "type": "array",+      "items": {+        "type": "object",+        "properties": {+          "id": {+            "type": "string"+          },+          "name": {+            "type": "string"+          },+          "list_type": {+            "type": "string"+          }+        },+        "required": [+          "id",+          "name",+          "list_type"+        ]+      }+    },+    "paging": {+      "type": "object",+      "properties": {+        "next": {+          "type": "string"+        }+      },+      "required": [+        "next"+      ]+    }+  },+  "required": [+    "data",+    "paging"+  ]+}
+ apis/facebook/facebook.graph.user.friendlists.xml view
@@ -0,0 +1,24 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://developers.facebook.com/docs/graph-api/reference/v2.2/user/friendlists+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://graph.facebook.com/v2.2/{user_id}/friendlists+        </url>+      </urls>+      <inputs>+        <key id="user_id" paramType="path" required="true" type="xs:string"/>+        <key id="access_token" paramType="query" required="true" type="xs:string"/>+      </inputs>+    </select>+  </bindings>+</table>
+ apis/facebook/facebook.graph.user.friends.json view
@@ -0,0 +1,38 @@+{+  "type": "object",+  "properties": {+    "data": {+      "type": "array",+      "items": {+        "type": "object",+        "properties": {+          "name": {+            "type": "string"+          },+          "id": {+            "type": "string"+          }+        },+        "required": [+          "name",+          "id"+        ]+      }+    },+    "paging": {+      "type": "object",+      "properties": {+        "next": {+          "type": "string"+        }+      },+      "required": [+        "next"+      ]+    }+  },+  "required": [+    "data",+    "paging"+  ]+}
+ apis/facebook/facebook.graph.user.friends.xml view
@@ -0,0 +1,24 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://developers.facebook.com/docs/graph-api/reference/v2.2/user/friends+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://graph.facebook.com/v2.2/{user_id}/friends+        </url>+      </urls>+      <inputs>+        <key id="user_id" paramType="path" required="true" type="xs:string"/>+        <key id="access_token" paramType="query" required="true" type="xs:string"/>+      </inputs>+    </select>+  </bindings>+</table>
+ apis/facebook/facebook.graph.user.inbox.json view
@@ -0,0 +1,141 @@+{+  "type": "object",+  "properties": {+    "data": {+      "type": "array",+      "items": {+        "type": "object",+        "properties": {+          "id": {+            "type": "string"+          },+          "comments": {+            "type": "object",+            "properties": {+              "data": {+                "type": "array",+                "items": {+                  "type": "object",+                  "properties": {+                    "id": {+                      "type": "string"+                    },+                    "from": {+                      "type": "object",+                      "properties": {+                        "id": {+                          "type": "string"+                        },+                        "name": {+                          "type": "string"+                        }+                      },+                      "required": [+                        "id",+                        "name"+                      ]+                    },+                    "message": {+                      "type": "string"+                    },+                    "created_time": {+                      "type": "string"+                    }+                  },+                  "required": [+                    "id",+                    "from",+                    "message",+                    "created_time"+                  ]+                }+              },+              "paging": {+                "type": "object",+                "properties": {+                  "previous": {+                    "type": "string"+                  },+                  "next": {+                    "type": "string"+                  }+                },+                "required": [+                  "previous",+                  "next"+                ]+              }+            },+            "required": [+              "data",+              "paging"+            ]+          },+          "to": {+            "type": "object",+            "properties": {+              "data": {+                "type": "array",+                "items": {+                  "type": "object",+                  "properties": {+                    "id": {+                      "type": "string"+                    },+                    "name": {+                      "type": "string"+                    }+                  },+                  "required": [+                    "id",+                    "name"+                  ]+                }+              }+            },+            "required": [+              "data"+            ]+          },+          "unread": {+            "type": "number"+          },+          "unseen": {+            "type": "number"+          },+          "updated_time": {+            "type": "string"+          }+        },+        "required": [+          "id",+          "to",+          "updated_time",+          "unread",+          "unseen",+          "comments"+        ]+      }+    },+    "paging": {+      "type": "object",+      "properties": {+        "previous": {+          "type": "string"+        },+        "next": {+          "type": "string"+        }+      },+      "required": [+        "previous",+        "next"+      ]+    }+  },+  "required": [+    "data",+    "paging",+    "summary"+  ]+}
+ apis/facebook/facebook.graph.user.inbox.xml view
@@ -0,0 +1,24 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://developers.facebook.com/docs/graph-api/reference/v2.2/user/inbox+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://graph.facebook.com/v2.2/{user_id}/inbox+        </url>+      </urls>+      <inputs>+        <key id="user_id" paramType="path" required="true" type="xs:string"/>+        <key id="access_token" paramType="query" required="true" type="xs:string"/>+      </inputs>+    </select>+  </bindings>+</table>
+ apis/facebook/facebook.graph.user.links.json view
@@ -0,0 +1,168 @@+{+  "type": "object",+  "properties": {+    "data": {+      "type": "array",+      "items": {+        "type": "object",+        "properties": {+          "id": {+            "type": "string"+          },+          "actions": {+            "type": "array",+            "items": {+              "type": "object",+              "properties": {+                "name": {+                  "type": "string"+                },+                "link": {+                  "type": "string"+                }+              },+              "required": [+                "name",+                "link"+              ]+            }+          },+          "application": {+            "type": "object",+            "properties": {+              "name": {+                "type": "string"+              },+              "id": {+                "type": "string"+              }+            },+            "required": [+              "name",+              "id"+            ]+          },+          "caption": {+            "type": "string"+          },+          "created_time": {+            "type": "string"+          },+          "description": {+            "type": "string"+          },+          "from": {+            "type": "object",+            "properties": {+              "id": {+                "type": "string"+              },+              "name": {+                "type": "string"+              }+            },+            "required": [+              "id",+              "name"+            ]+          },+          "icon": {+            "type": "string"+          },+          "is_hidden": {+            "type": "boolean"+          },+          "link": {+            "type": "string"+          },+          "message": {+            "type": "string"+          },+          "name": {+            "type": "string"+          },+          "object_id": {+            "type": "string"+          },+          "picture": {+            "type": "string"+          },+          "privacy": {+            "type": "object",+            "properties": {+              "description": {+                "type": "string"+              },+              "value": {+                "type": "string"+              },+              "friends": {+                "type": "string"+              },+              "networks": {+                "type": "string"+              },+              "allow": {+                "type": "string"+              },+              "deny": {+                "type": "string"+              }+            },+            "required": [+              "description",+              "value",+              "friends",+              "networks",+              "allow",+              "deny"+            ]+          },+          "source": {+            "type": "string"+          },+          "status_type": {+            "type": "string"+          },+          "type": {+            "type": "string"+          },+          "updated_time": {+            "type": "string"+          }+        },+        "required": [+          "id",+          "from",+          "message",+          "actions",+          "privacy",+          "type",+          "status_type",+          "application",+          "created_time",+          "updated_time"+        ]+      }+    },+    "paging": {+      "type": "object",+      "properties": {+        "previous": {+          "type": "string"+        },+        "next": {+          "type": "string"+        }+      },+      "required": [+        "previous",+        "next"+      ]+    }+  },+  "required": [+    "data",+    "paging"+  ]+}
+ apis/facebook/facebook.graph.user.links.xml view
@@ -0,0 +1,24 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://developers.facebook.com/docs/graph-api/reference/v2.2/user/feed+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://graph.facebook.com/v2.2/{user_id}/links+        </url>+      </urls>+      <inputs>+        <key id="user_id" paramType="path" required="true" type="xs:string"/>+        <key id="access_token" paramType="query" required="true" type="xs:string"/>+      </inputs>+    </select>+  </bindings>+</table>
+ apis/facebook/facebook.graph.user.photos.json view
@@ -0,0 +1,220 @@+{+  "type": "object",+  "properties": {+    "data": {+      "type": "array",+      "items": {+        "type": "object",+        "properties": {+          "id": {+            "type": "string"+          },+          "backdated_time": {+            "type": "string"+          },+          "backdated_time_granularity": {+            "type": "string"+          },+          "created_time": {+            "type": "string"+          },+          "from": {+            "type": "object",+            "properties": {+              "id": {+                "type": "string"+              },+              "name": {+                "type": "string"+              }+            },+            "required": [+              "id",+              "name"+            ]+          },+          "height": {+            "type": "number"+          },+          "icon": {+            "type": "string"+          },+          "images": {+            "type": "array",+            "items": {+              "type": "object",+              "properties": {+                "height": {+                  "type": "number"+                },+                "source": {+                  "type": "string"+                },+                "width": {+                  "type": "number"+                }+              },+              "required": [+                "height",+                "source",+                "width"+              ]+            }+          },+          "link": {+            "type": "string"+          },+          "name": {+            "type": "string"+          },+          "picture": {+            "type": "string"+          },+          "place": {+            "type": "object",+            "properties": {+              "id": {+                "type": "string"+              },+              "name": {+                "type": "string"+              },+              "location": {+                "type": "object",+                "properties": {+                  "latitude": {+                    "type": "number"+                  },+                  "longitude": {+                    "type": "number"+                  }+                },+                "required": [+                  "latitude",+                  "longitude"+                ]+              }+            },+            "required": [+              "id",+              "name",+              "location"+            ]+          },+          "source": {+            "type": "string"+          },+          "updated_time": {+            "type": "string"+          },+          "width": {+            "type": "number"+          },+          "tags": {+            "type": "object",+            "properties": {+              "data": {+                "type": "array",+                "items": {+                  "type": "object",+                  "properties": {+                    "id": {+                      "type": "string"+                    },+                    "name": {+                      "type": "string"+                    },+                    "created_time": {+                      "type": "string"+                    },+                    "x": {+                      "type": "number"+                    },+                    "y": {+                      "type": "number"+                    }+                  },+                  "required": [+                    "id",+                    "name",+                    "created_time",+                    "x",+                    "y"+                  ]+                }+              },+              "paging": {+                "type": "object",+                "properties": {+                  "cursors": {+                    "type": "object",+                    "properties": {+                      "before": {+                        "type": "string"+                      },+                      "after": {+                        "type": "string"+                      }+                    },+                    "required": [+                      "before",+                      "after"+                    ]+                  }+                },+                "required": [+                  "cursors"+                ]+              }+            },+            "required": [+              "data",+              "paging"+            ]+          }+        },+        "required": [+          "id",+          "created_time",+          "from",+          "height",+          "icon",+          "images",+          "link",+          "picture",+          "source",+          "updated_time",+          "width",+          "tags"+        ]+      }+    },+    "paging": {+      "type": "object",+      "properties": {+        "cursors": {+          "type": "object",+          "properties": {+            "before": {+              "type": "string"+            },+            "after": {+              "type": "string"+            }+          },+          "required": [+            "before",+            "after"+          ]+        }+      },+      "required": [+        "cursors"+      ]+    }+  },+  "required": [+    "data",+    "paging"+  ]+}
+ apis/facebook/facebook.graph.user.photos.xml view
@@ -0,0 +1,24 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://developers.facebook.com/docs/graph-api/reference/v2.2/user/photos+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://graph.facebook.com/v2.2/{user_id}/photos+        </url>+      </urls>+      <inputs>+        <key id="user_id" paramType="path" required="true" type="xs:string"/>+        <key id="access_token" paramType="query" required="true" type="xs:string"/>+      </inputs>+    </select>+  </bindings>+</table>
+ apis/facebook/facebook.graph.user.photosuploaded.json view
@@ -0,0 +1,220 @@+{+  "type": "object",+  "properties": {+    "data": {+      "type": "array",+      "items": {+        "type": "object",+        "properties": {+          "id": {+            "type": "string"+          },+          "backdated_time": {+            "type": "string"+          },+          "backdated_time_granularity": {+            "type": "string"+          },+          "created_time": {+            "type": "string"+          },+          "from": {+            "type": "object",+            "properties": {+              "id": {+                "type": "string"+              },+              "name": {+                "type": "string"+              }+            },+            "required": [+              "id",+              "name"+            ]+          },+          "height": {+            "type": "number"+          },+          "icon": {+            "type": "string"+          },+          "images": {+            "type": "array",+            "items": {+              "type": "object",+              "properties": {+                "height": {+                  "type": "number"+                },+                "source": {+                  "type": "string"+                },+                "width": {+                  "type": "number"+                }+              },+              "required": [+                "height",+                "source",+                "width"+              ]+            }+          },+          "link": {+            "type": "string"+          },+          "name": {+            "type": "string"+          },+          "picture": {+            "type": "string"+          },+          "place": {+            "type": "object",+            "properties": {+              "id": {+                "type": "string"+              },+              "name": {+                "type": "string"+              },+              "location": {+                "type": "object",+                "properties": {+                  "latitude": {+                    "type": "number"+                  },+                  "longitude": {+                    "type": "number"+                  }+                },+                "required": [+                  "latitude",+                  "longitude"+                ]+              }+            },+            "required": [+              "id",+              "name",+              "location"+            ]+          },+          "source": {+            "type": "string"+          },+          "updated_time": {+            "type": "string"+          },+          "width": {+            "type": "number"+          },+          "tags": {+            "type": "object",+            "properties": {+              "data": {+                "type": "array",+                "items": {+                  "type": "object",+                  "properties": {+                    "id": {+                      "type": "string"+                    },+                    "name": {+                      "type": "string"+                    },+                    "created_time": {+                      "type": "string"+                    },+                    "x": {+                      "type": "number"+                    },+                    "y": {+                      "type": "number"+                    }+                  },+                  "required": [+                    "id",+                    "name",+                    "created_time",+                    "x",+                    "y"+                  ]+                }+              },+              "paging": {+                "type": "object",+                "properties": {+                  "cursors": {+                    "type": "object",+                    "properties": {+                      "before": {+                        "type": "string"+                      },+                      "after": {+                        "type": "string"+                      }+                    },+                    "required": [+                      "before",+                      "after"+                    ]+                  }+                },+                "required": [+                  "cursors"+                ]+              }+            },+            "required": [+              "data",+              "paging"+            ]+          }+        },+        "required": [+          "id",+          "created_time",+          "from",+          "height",+          "icon",+          "images",+          "link",+          "picture",+          "source",+          "updated_time",+          "width",+          "tags"+        ]+      }+    },+    "paging": {+      "type": "object",+      "properties": {+        "cursors": {+          "type": "object",+          "properties": {+            "before": {+              "type": "string"+            },+            "after": {+              "type": "string"+            }+          },+          "required": [+            "before",+            "after"+          ]+        }+      },+      "required": [+        "cursors"+      ]+    }+  },+  "required": [+    "data",+    "paging"+  ]+}
+ apis/facebook/facebook.graph.user.photosuploaded.xml view
@@ -0,0 +1,27 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://developers.facebook.com/docs/graph-api/reference/user/photos/uploaded+    </documentationURL>+    <sampleQuery>+      SELECT * FROM {table} WHERE user_id="me" AND access_token="CAAFUtF57FWIBABsDzU4Te7HDwHZBxZCB2gKYlVZAfg3qFaYxqHCq7E2YygHDOqZC3wrYDciK0tdDI1kgECAlblWFHZBjbG3qaNWj8MZAXPfnkInwvIPMmikuOOJrXoClqqcWDZAL7WWpoShEGc0JChHXao2FBsGmhsmOnycnNBomZAm3Hnzq8X1qXpR6A6ll3loWp51YXJ3VvAZDZD"+    </sampleQuery>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://graph.facebook.com/{user_id}/photos/uploaded+        </url>+      </urls>+      <inputs>+        <key id="user_id" paramType="path" required="true" type="xs:string"/>+        <key id="access_token" paramType="query" required="true" type="xs:string"/>+      </inputs>+    </select>+  </bindings>+</table>
+ apis/facebook/facebook.graph.user.pokes.json view
@@ -0,0 +1,70 @@+{+  "type": "object",+  "properties": {+    "data": {+      "type": "array",+      "items": {+        "type": "object",+        "properties": {+          "to": {+            "type": "object",+            "properties": {+              "id": {+                "type": "string"+              },+              "name": {+                "type": "string"+              }+            },+            "required": [+              "id",+              "name"+            ]+          },+          "from": {+            "type": "object",+            "properties": {+              "id": {+                "type": "string"+              },+              "name": {+                "type": "string"+              }+            },+            "required": [+              "id",+              "name"+            ]+          },+          "created_time": {+            "type": "string"+          }+        },+        "required": [+          "to",+          "from",+          "created_time"+        ]+      }+    },+    "paging": {+      "type": "object",+      "properties": {+        "previous": {+          "type": "string"+        },+        "next": {+          "type": "string"+        }+      },+      "required": [+        "previous",+        "next"+      ]+    }+  },+  "required": [+    "data",+    "paging"+  ]+}
+ apis/facebook/facebook.graph.user.pokes.xml view
@@ -0,0 +1,24 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://developers.facebook.com/docs/graph-api/v2.2/reference/user/pokes+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://graph.facebook.com/v2.2/{user_id}/pokes+        </url>+      </urls>+      <inputs>+        <key id="user_id" paramType="path" required="true" type="xs:string"/>+        <key id="access_token" paramType="query" required="true" type="xs:string"/>+      </inputs>+    </select>+  </bindings>+</table>
+ apis/facebook/facebook.graph.user.posts.json view
@@ -0,0 +1,168 @@+{+  "type": "object",+  "properties": {+    "data": {+      "type": "array",+      "items": {+        "type": "object",+        "properties": {+          "id": {+            "type": "string"+          },+          "actions": {+            "type": "array",+            "items": {+              "type": "object",+              "properties": {+                "name": {+                  "type": "string"+                },+                "link": {+                  "type": "string"+                }+              },+              "required": [+                "name",+                "link"+              ]+            }+          },+          "application": {+            "type": "object",+            "properties": {+              "name": {+                "type": "string"+              },+              "id": {+                "type": "string"+              }+            },+            "required": [+              "name",+              "id"+            ]+          },+          "caption": {+            "type": "string"+          },+          "created_time": {+            "type": "string"+          },+          "description": {+            "type": "string"+          },+          "from": {+            "type": "object",+            "properties": {+              "id": {+                "type": "string"+              },+              "name": {+                "type": "string"+              }+            },+            "required": [+              "id",+              "name"+            ]+          },+          "icon": {+            "type": "string"+          },+          "is_hidden": {+            "type": "boolean"+          },+          "link": {+            "type": "string"+          },+          "message": {+            "type": "string"+          },+          "name": {+            "type": "string"+          },+          "object_id": {+            "type": "string"+          },+          "picture": {+            "type": "string"+          },+          "privacy": {+            "type": "object",+            "properties": {+              "description": {+                "type": "string"+              },+              "value": {+                "type": "string"+              },+              "friends": {+                "type": "string"+              },+              "networks": {+                "type": "string"+              },+              "allow": {+                "type": "string"+              },+              "deny": {+                "type": "string"+              }+            },+            "required": [+              "description",+              "value",+              "friends",+              "networks",+              "allow",+              "deny"+            ]+          },+          "source": {+            "type": "string"+          },+          "status_type": {+            "type": "string"+          },+          "type": {+            "type": "string"+          },+          "updated_time": {+            "type": "string"+          }+        },+        "required": [+          "id",+          "from",+          "message",+          "actions",+          "privacy",+          "type",+          "status_type",+          "application",+          "created_time",+          "updated_time"+        ]+      }+    },+    "paging": {+      "type": "object",+      "properties": {+        "previous": {+          "type": "string"+        },+        "next": {+          "type": "string"+        }+      },+      "required": [+        "previous",+        "next"+      ]+    }+  },+  "required": [+    "data",+    "paging"+  ]+}
+ apis/facebook/facebook.graph.user.posts.xml view
@@ -0,0 +1,24 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://developers.facebook.com/docs/graph-api/reference/v2.2/user/feed+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://graph.facebook.com/v2.2/{user_id}/posts+        </url>+      </urls>+      <inputs>+        <key id="user_id" paramType="path" required="true" type="xs:string"/>+        <key id="access_token" paramType="query" required="true" type="xs:string"/>+      </inputs>+    </select>+  </bindings>+</table>
+ apis/facebook/facebook.graph.user.statuses.json view
@@ -0,0 +1,168 @@+{+  "type": "object",+  "properties": {+    "data": {+      "type": "array",+      "items": {+        "type": "object",+        "properties": {+          "id": {+            "type": "string"+          },+          "actions": {+            "type": "array",+            "items": {+              "type": "object",+              "properties": {+                "name": {+                  "type": "string"+                },+                "link": {+                  "type": "string"+                }+              },+              "required": [+                "name",+                "link"+              ]+            }+          },+          "application": {+            "type": "object",+            "properties": {+              "name": {+                "type": "string"+              },+              "id": {+                "type": "string"+              }+            },+            "required": [+              "name",+              "id"+            ]+          },+          "caption": {+            "type": "string"+          },+          "created_time": {+            "type": "string"+          },+          "description": {+            "type": "string"+          },+          "from": {+            "type": "object",+            "properties": {+              "id": {+                "type": "string"+              },+              "name": {+                "type": "string"+              }+            },+            "required": [+              "id",+              "name"+            ]+          },+          "icon": {+            "type": "string"+          },+          "is_hidden": {+            "type": "boolean"+          },+          "link": {+            "type": "string"+          },+          "message": {+            "type": "string"+          },+          "name": {+            "type": "string"+          },+          "object_id": {+            "type": "string"+          },+          "picture": {+            "type": "string"+          },+          "privacy": {+            "type": "object",+            "properties": {+              "description": {+                "type": "string"+              },+              "value": {+                "type": "string"+              },+              "friends": {+                "type": "string"+              },+              "networks": {+                "type": "string"+              },+              "allow": {+                "type": "string"+              },+              "deny": {+                "type": "string"+              }+            },+            "required": [+              "description",+              "value",+              "friends",+              "networks",+              "allow",+              "deny"+            ]+          },+          "source": {+            "type": "string"+          },+          "status_type": {+            "type": "string"+          },+          "type": {+            "type": "string"+          },+          "updated_time": {+            "type": "string"+          }+        },+        "required": [+          "id",+          "from",+          "message",+          "actions",+          "privacy",+          "type",+          "status_type",+          "application",+          "created_time",+          "updated_time"+        ]+      }+    },+    "paging": {+      "type": "object",+      "properties": {+        "previous": {+          "type": "string"+        },+        "next": {+          "type": "string"+        }+      },+      "required": [+        "previous",+        "next"+      ]+    }+  },+  "required": [+    "data",+    "paging"+  ]+}
+ apis/facebook/facebook.graph.user.statuses.xml view
@@ -0,0 +1,24 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://developers.facebook.com/docs/graph-api/reference/2.2/user/feed+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://graph.facebook.com/v2.2/{user_id}/statuses+        </url>+      </urls>+      <inputs>+        <key id="user_id" paramType="path" required="true" type="xs:string"/>+        <key id="access_token" paramType="query" required="true" type="xs:string"/>+      </inputs>+    </select>+  </bindings>+</table>
+ apis/facebook/facebook.graph.user.tagged.json view
@@ -0,0 +1,168 @@+{+  "type": "object",+  "properties": {+    "data": {+      "type": "array",+      "items": {+        "type": "object",+        "properties": {+          "id": {+            "type": "string"+          },+          "actions": {+            "type": "array",+            "items": {+              "type": "object",+              "properties": {+                "name": {+                  "type": "string"+                },+                "link": {+                  "type": "string"+                }+              },+              "required": [+                "name",+                "link"+              ]+            }+          },+          "application": {+            "type": "object",+            "properties": {+              "name": {+                "type": "string"+              },+              "id": {+                "type": "string"+              }+            },+            "required": [+              "name",+              "id"+            ]+          },+          "caption": {+            "type": "string"+          },+          "created_time": {+            "type": "string"+          },+          "description": {+            "type": "string"+          },+          "from": {+            "type": "object",+            "properties": {+              "id": {+                "type": "string"+              },+              "name": {+                "type": "string"+              }+            },+            "required": [+              "id",+              "name"+            ]+          },+          "icon": {+            "type": "string"+          },+          "is_hidden": {+            "type": "boolean"+          },+          "link": {+            "type": "string"+          },+          "message": {+            "type": "string"+          },+          "name": {+            "type": "string"+          },+          "object_id": {+            "type": "string"+          },+          "picture": {+            "type": "string"+          },+          "privacy": {+            "type": "object",+            "properties": {+              "description": {+                "type": "string"+              },+              "value": {+                "type": "string"+              },+              "friends": {+                "type": "string"+              },+              "networks": {+                "type": "string"+              },+              "allow": {+                "type": "string"+              },+              "deny": {+                "type": "string"+              }+            },+            "required": [+              "description",+              "value",+              "friends",+              "networks",+              "allow",+              "deny"+            ]+          },+          "source": {+            "type": "string"+          },+          "status_type": {+            "type": "string"+          },+          "type": {+            "type": "string"+          },+          "updated_time": {+            "type": "string"+          }+        },+        "required": [+          "id",+          "from",+          "message",+          "actions",+          "privacy",+          "type",+          "status_type",+          "application",+          "created_time",+          "updated_time"+        ]+      }+    },+    "paging": {+      "type": "object",+      "properties": {+        "previous": {+          "type": "string"+        },+        "next": {+          "type": "string"+        }+      },+      "required": [+        "previous",+        "next"+      ]+    }+  },+  "required": [+    "data",+    "paging"+  ]+}
+ apis/facebook/facebook.graph.user.tagged.xml view
@@ -0,0 +1,24 @@+<?xml version="1.0" encoding="utf-8"?>+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">+  <meta>+    <author>+      Fabian Bergmark+    </author>+    <documentationURL>+      https://developers.facebook.com/docs/graph-api/reference/v2.2/user/feed+    </documentationURL>+  </meta>+  <bindings>+    <select produces="JSON">+      <urls>+        <url>+          https://graph.facebook.com/v2.2/{user_id}/tagged+        </url>+      </urls>+      <inputs>+        <key id="user_id" paramType="path" required="true" type="xs:string"/>+        <key id="access_token" paramType="query" required="true" type="xs:string"/>+      </inputs>+    </select>+  </bindings>+</table>
apis/smhi/smhi.pmp.xml view
@@ -2,7 +2,9 @@ <table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">   <meta>     <author>Fabian Bergmark</author>-    <documentationURL>http://www.smhi.se/klimatdata/Oppna-data/Meteorologiska-data/api-for-vaderprognosdata-1.34233</documentationURL>+    <documentationURL>+      http://www.smhi.se/klimatdata/Oppna-data/Meteorologiska-data/api-for-vaderprognosdata-1.34233+    </documentationURL>     <sampleQuery>select * from {table} where lat="58.59" and lon="16.18"</sampleQuery>   </meta>   <bindings>
src/Control/Monad/Trans/API.hs view
@@ -1,5 +1,6 @@ module Control.Monad.Trans.API-       ( APIT+       ( module Control.Monad.State.Strict+       , APIT        , runAPIT ) where  import Control.Monad.State.Strict
src/Data/State/YQL.hs view
@@ -1,7 +1,4 @@ module Data.State.YQL        ( YQLState(..) ) where -import Network.HTTP.Conduit- class YQLState a where-  yqlStateGetHttpManager :: a -> Manager