-
Notifications
You must be signed in to change notification settings - Fork 28
API Users
deby edited this page Jan 13, 2017
·
4 revisions
See also: Full API Documentation
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) |
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" |
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" |
-
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)
GET http://schoolido.lu/api/users/
Paginated array of User object
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 |
- Ordering by any field is possible.
- Ordering by
random
is possible. - Learn more about ordering
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 http://schoolido.lu/api/users/{username}/
See also: Authentication
GET http://schoolido.lu/api/users/me/
POST http://schoolido.lu/api/users/{username}/follow/
{"follow": "followed"}
No parameter.
DELETE http://schoolido.lu/api/users/{username}/follow/
{"follow": "unfollowed"}
No parameter.
- How to add an account to your profile?
- What's the difference between the deck, the album and the present box?
- How to add cards?
- How to edit a card?
- How to delete a card?
- Why my cards are not automatically imported?
- What if I play multiple versions of the game?
- How to add your location on the map?
- How to recover your password or username?
- How to delete an account?
- How to recover your comments on your profile page when you changed your username?
- How to change your avatar?
- How to check that you entered all your cards?
- How to get a verified account?
- Can someone steal my game account using the information on my profile page?
- I saved my transfer code on School Idol Tomodachi but I can't find it anymore?
- Can I delete my entire profile?
- What should I do if I see an activity that I don't like?
- How to post an activity?
- How to add a picture to your activity?
- Markdown
- How to recover my lost account?
- How to get promo cards?
- How to generate a transfer code?
- How to enter a transfer code?
- How to take screenshots?
- How to install Japanese apps?
- How to contact KLab?
- Do you speak another language? Translate the website
- Are you a graphic designer or an artist? Submit your artwork
- Extra time to spare? Join the staff team! (Community Managers, Moderators, Verifications, Japanese speakers, Database maintainers, and more)
- Want to help us pay for the servers that host the site? Donate