From Mashape Community API
Jump to: navigation, search
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<api xmlns="http://mashape.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mashape.com http://www.mashape.com/schema/mashape-4.0.xsd">
    <authentication type="OAuth2">
        <description></description>
        <configuration value="https://graph.facebook.com/oauth/access_token" name="accessTokenUrl"/>
        <configuration value="https://www.facebook.com/dialog/oauth" name="authorizationUrl"/>
        <configuration value="3" name="leg"/>
        <configuration value="client_credentials" name="grantType"/>
        <configuration value="" name="accessTokenName"/>
    </authentication>
    <endpoint name="Friends" group="" http="GET">
        <route>/me/friends</route>
        <description></description>
        <parameters/>
        <response type="Friends Response"/>
    </endpoint>
    <endpoint name="Me" group="" http="GET">
        <route>/me</route>
        <description></description>
        <parameters/>
        <response type="string"/>
    </endpoint>
    <endpoint name="fql" group="" http="GET">
        <route>/fql</route>
        <description></description>
        <parameters>
            <parameter type="string" optional="false" name="q">
                <description>FQL query. See docs in http://developers.facebook.com/docs/reference/fql/</description>
                <example>select uid, message from status where uid in (select uid2 from friend where uid1=me())</example>
            </parameter>
        </parameters>
        <response type="string"/>
    </endpoint>
    <model name="Friends Response">
        <description></description>
        <example>{
  "data": [
    {
      "name": "Me",
      "id": "010101"
    },
    {
      "name": "Myself",
      "id": "90909090"
    },
    {
      "name": "I",
      "id": "23409023"
    }
  ],
  "paging": {
    "next": "https://graph.facebook.com/517622003/friends?access_token=AAAEA17cEoZBsBAFrR89NKUFhUR7rmSrTdNZA1quZAZA6z9SxHGBs0ZAFzkLk3ZCKBvYVtJimKKNnec2nZCBieB0Ve6cERllhuJ8yqR1ggN0OgZDZD&limit=5000&offset=5000&__after_id=100004559743373"
  }
}</example>
        <fields/>
    </model>
    <model name="Me Response">
        <description></description>
        <example>{
  "id": "517622003",
  "name": "Chris Ismael",
  "first_name": "Chris",
  "last_name": "Ismael",
  "link": "http://www.facebook.com/chris.ismael",
  "username": "chris.ismael",
  "gender": "male",
  "relationship_status": "Married",
  "significant_other": {
    "name": "Hazel Luzentales-Ismael",
    "id": "544048827"
  },
  "timezone": 8,
  "locale": "en_US",
  "verified": true,
  "updated_time": "2012-11-19T03:57:37+0000"
}</example>
        <fields/>
    </model>
</api>