Knowledge Base: users.followers.index

users.followers.index

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

Displays 30 of the user’s followers 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}/followers/index

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

// Example
https://api.emberapp.com/users/view/ac94/followers/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.followers.index</api>
    <followers>
        <follower>
            <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>
        </follower>
        <follower>
            <username>danny</username>
            <fullname>Danny Greg</fullname>
            <bio>Code cocoa by day for Realmac Software, play guitar at night, for Silent Disguise.</bio>
            <url>http://dannygreg.com</url>
            <total_images>46</total_images>
            <total_followers>38</total_followers>
            <total_following>11</total_following>
            <avatar>
                <size>m</size>
                <width>100</width>
                <height>100</height>
                <filesize>21350</filesize>
                <src>http://local.emberapp.com:8888/danny/avatars/m.png</src>
            </avatar>
        </follower>
    </followers>
</response>