Skip to content
deby edited this page Jan 13, 2017 · 4 revisions

School Idol API - Users endpoint

Objects

Name Type Example / Note
username String "db0"
date_joined Date yyyy-MM-dd'T'HH:mm:ss.SSZ "2015-02-05T05:16:54.953324Z"
website_url URL "http://schoolido.lu/user/db0/"
accounts null / Account object To get the full accounts objects, use the parameter expand_accounts (much slower)
preferences null / Preferences objects To get the full preferences object, use the parameter expand_preferences (much slower)
links null / Array of Link object To get the full links objects, use the parameter expand_links (much slower)
is_following null / Boolean To know if the authenticated user follows this user or not, use the parameter expand_is_following (much slower)
Preferences object
Name Type Example
color Attribute choices "Smile"
description String "I own a website called [School Idol 友達](http://schoolido.lu/) and I love onigiris.
html_description String "<p>I own a website called <a href="http://schoolido.lu/">School Idol 友達</a> and I love onigiris.</p>"
best_girl String "Kousaka Honoka"
location String "San Francisco, CA"
latitude Float 37.7792768
longitude Float -122.4192704
private Boolean false
status Status choices "LOVER"
avatar URL "http://www.gravatar.com/avatar/8e731f8661ed8a4549e5445ccffe388a?s=200&d=http%3A%2F%2Fschoolido.lu%2Favatar%2Ftwitter%2Fdbschoolidol"
birthdate Date yyyy-MM-dd "1991-05-30"
default_tab Tab choices "all"
Link object
Name Type Example
type Link type choices "twitter"
value String "dbschoolidol"
relevance Link relevance choices 1
icon URL "http://i.schoolido.lu/static/twitter.png"
url URL "http://twitter.com/dbschoolidol"
Choices
  • status (in preferences): THANKS, SUPPORTER, LOVER, AMBASSADOR, PRODUCER, DEVOTEE
  • default_tab: following, all
  • links relevance: null (unspecified), 0 (Never), 1 (Sometimes), 2 (Often), 3 (Every single day)

Methods

Get the list of users

GET http://schoolido.lu/api/users/
Response

Paginated array of User object

Optional parameters for filtering
Name Value Note
search Free search term, break terms with spaces. Will search through usernames, preferences description, preferences location, links and accounts nickname
email Exact value
preferences__status Exact value
preferences__best_girl Exact value
preferences__color Exact value
preferences__location Exact value
preferences__private True or False
liked_activity Int ID of an activity
followed_by Username
following Username
Optional parameters to get more data
Name Note
expand_accounts Will return the full Account objects in the accounts field. Much slower.
expand_preferences Will return the full Preferences object in the preferences field. Much slower.
expand_links Will return the full array of Link objects in the links field. Much slower.
expand_is_following Use this to know whether or not the authenticated user follows the user.

Get a user by username

GET http://schoolido.lu/api/users/{username}/
Response

User object

Parameters

See Get the list of users.

Authenticated methods

See also: Authentication

Get the authenticated user

GET http://schoolido.lu/api/users/me/
Response

User object

Parameters

See Get the list of users.

Follow a user

POST http://schoolido.lu/api/users/{username}/follow/
Response
{"follow": "followed"}
Parameters

No parameter.

Unfollow a user

DELETE http://schoolido.lu/api/users/{username}/follow/
Response
{"follow": "unfollowed"}
Parameters

No parameter.

school idol tomodachi

List of features

School Idol Tomodachi Cards

School Idol Tomodachi Profile

School Idol Tomodachi Activities

School Idol Tomodachi Events

School Idol Festival, the game

Help us!

Developers

Clone this wiki locally