Knowledge Base: users.following.index

users.following.index

Method Type: GET
Required Parameters: username
Optional Parameters: page

Displays 30 of the users the username is following in chronological order.

Required Parameters

username:   The username you wish to look up. [string]

Optional Parameters

page:       Returns the next 30 users. [int]

Usage

// To retrieve all public collections.
http://api.emberapp.com/users/view/{username}/following/index

// To user the pagination.
https://api.emberapp.com/users/view/{username}/following/index?page={page}

// Example
https://api.emberapp.com/users/view/ac94/following/index?page=2

Response

Each user is returned in an array with the following parameters.

user:

username:       Users username and unique identifier. [string]
fullname:       Users fullname. [string]
bio:            Users bio. [string]
url:            Users homepage. [string]
total_images:   Total images the user has uploaded to Ember. [int]
total_followers:Total followers the user has.
total_following:Total users the current user is following.
avatar:         Array containing the medium avatar information. [array]

avatar:

size:           Size flag of the image (s, m, l). [string]
width:          Width in px of the avatar image. [int]
height:         Height in px of the avatar image. [int]
filesize:       Size in bytes of the avatar file. [int]
src:            Url to the image file for the avatar. [string]

Example XML Response

<?xml version="1.0"?>
<response>
    <status code="0">OK</status>
    <api>api.users.following.index</api>
    <following>
        <following>
            <username>ac94</username>
            <fullname>Aron Carroll</fullname>
            <bio/>
            <url/>
            <total_images>86</total_images>
            <total_followers>7</total_followers>
            <total_following>7</total_following>
            <avatar>
                <size>m</size>
                <width>128</width>
                <height>128</height>
                <filesize>20683</filesize>
                <src>http://local.emberapp.com:8888/ac94/avatars/m.png</src>
            </avatar>
        </following>
        <following>
            <username>nik</username>
            <fullname>Ninja Nik</fullname>
            <bio>I work here.</bio>
            <url>http://twitter.com/nikf</url>
            <total_images>263</total_images>
            <total_followers>33</total_followers>
            <total_following>20</total_following>
            <avatar>
                <size>m</size>
                <width>100</width>
                <height>100</height>
                <filesize>10035</filesize>
                <src>http://local.emberapp.com:8888/nik/avatars/m.png</src>
            </avatar>
        </following>
    </following>
</response>