Difference between revisions of "GET /user/details"

From SoFurry
Jump to: navigation, search
Line 36: Line 36:
 
=== Example Result ===
 
=== Example Result ===
 
<syntaxhighlight lang="json" line>
 
<syntaxhighlight lang="json" line>
{
+
{
  "success": "true",
+
  "success": "true",
  "data": {
+
  "data": {
    "id": "379876",
+
    "id": "379876",
    "username": "TerraBAS",
+
    "username": "TerraBAS",
    "useralias": "terrabas",
+
    "useralias": "terrabas",
    "description": "<nowiki><span style=\"color:rgb(89,89,89);\"><strong>Hey there, welcome <span class=\"sac\">to</span></strong><strong> my page!</strong><br style=\"color:rgb(0,0,0);font-family:Arial, serif;line-height:16.7999992370605px;\" />My name is TerraBAS, but I'm mostly called Terra.<br /><br style=\"color:rgb(0,0,0);font-family:Arial, serif;line-height:16.7999992370605px;\" />I'm an Austrian, playful husky that is unbelievably fluffy :3<br /><br style=\"color:rgb(0,0,0);font-family:Arial, serif;line-height:16.7999992370605px;\" />Things I love to do:<br style=\"color:rgb(0,0,0);font-family:Arial, serif;line-height:16.7999992370605px;\" />Hangin' out with friends, some sports (like cycling), programming (especially C# and Java), producing music, drawing, and much more...<br /><br style=\"color:rgb(0,0,0);font-family:Arial, serif;line-height:16.7999992370605px;\" />If you want to know more about me, just send me a PM or add me on Skype, I don't bite ;P<br /><br /><br style=\"color:rgb(0,0,0);font-family:Arial, serif;line-height:16.7999992370605px;\" />Also, I'm the programmer of the SoFurry Android app, so if you have any questions or feedback, you can tell me.<br /></span><br />",</nowiki>
+
    "description": "<span style=\"color:rgb(89,89,89);\"><strong>Hey there, welcome <span class=\"sac\">to</span></strong><strong> my page!</strong><br style=\"color:rgb(0,0,0);font-family:Arial, serif;line-height:16.7999992370605px;\" />My name is TerraBAS, but I'm mostly called Terra.<br /><br style=\"color:rgb(0,0,0);font-family:Arial, serif;line-height:16.7999992370605px;\" />I'm an Austrian, playful husky that is unbelievably fluffy :3<br /><br style=\"color:rgb(0,0,0);font-family:Arial, serif;line-height:16.7999992370605px;\" />Things I love to do:<br style=\"color:rgb(0,0,0);font-family:Arial, serif;line-height:16.7999992370605px;\" />Hangin' out with friends, some sports (like cycling), programming (especially C# and Java), producing music, drawing, and much more...<br /><br style=\"color:rgb(0,0,0);font-family:Arial, serif;line-height:16.7999992370605px;\" />If you want to know more about me, just send me a PM or add me on Skype, I don't bite ;P<br /><br /><br style=\"color:rgb(0,0,0);font-family:Arial, serif;line-height:16.7999992370605px;\" />Also, I'm the programmer of the SoFurry Android app, so if you have any questions or feedback, you can tell me.<br /></span><br />",
    "species": "Husky",
+
    "species": "Husky",
    "mateshipstatus": "5",
+
    "mateshipstatus": "5",
    "gender": "1",
+
    "gender": "1",
    "sexualorientation": "3",
+
    "sexualorientation": "3",
    "country": "Austria",<nowiki>
+
    "country": "Austria",
 
     "bannerURL": "https://www.sofurryfiles.com/std/banner?user=379876",
 
     "bannerURL": "https://www.sofurryfiles.com/std/banner?user=379876",
     "avatarURL": "https://www.sofurryfiles.com/std/avatar?user=379876&character=0&clevel=0",</nowiki>
+
     "avatarURL": "https://www.sofurryfiles.com/std/avatar?user=379876&character=0&clevel=0",
    "profileViewCount": "502",
+
    "profileViewCount": "502",
    "submissionCount": "1",
+
    "submissionCount": "1",
    "submissionViewCount": "26",
+
    "submissionViewCount": "26",
    "commentCount": "1",
+
    "commentCount": "1",
    "commentPostedCount": "4",
+
    "commentPostedCount": "4",
    "iswatched": false,
+
    "iswatched": false,
    "loves": "",
+
    "loves": "",
    "likes": "",
+
    "likes": "",
    "tolerates": "",
+
    "tolerates": "",
    "hates": "",
+
    "hates": "",
    "groups": [
+
    "groups": [
      {
+
      {
        "groupName": "Canine Furries",
+
        "groupName": "Canine Furries",
        "groupID": "91",
+
        "groupID": "91",
        "userlevel": "0"
+
        "userlevel": "0"
      },
+
      },
      {
+
      {
        "groupName": "Austrian Furs / Austrofurs",
+
        "groupName": "Austrian Furs / Austrofurs",
        "groupID": "116",
+
        "groupID": "116",
        "userlevel": "0"
+
        "userlevel": "0"
      },
+
      },
      {
+
      {
        "groupName": "Squeaky Clean Club",
+
        "groupName": "Squeaky Clean Club",
        "groupID": "182",
+
        "groupID": "182",
        "userlevel": "0"
+
        "userlevel": "0"
      },
+
      },
      {
+
      {
        "groupName": "SoFurry Ambassadors",
+
        "groupName": "SoFurry Ambassadors",
        "groupID": "3009",
+
        "groupID": "3009",
        "userlevel": "0"
+
        "userlevel": "0"
      },
+
      },
        ...
+
        ...
    ],
+
    ],
    "friends": [
+
    "friends": [
      {
+
      {
        "username": "Toumal",
+
        "username": "Toumal",
        "id": "13",
+
        "id": "13",
        "friendlevel": "2"
+
        "friendlevel": "2"
      },
+
      },
      {
+
      {
        "username": "Raul",
+
        "username": "Raul",
        "id": "1748",
+
        "id": "1748",
        "friendlevel": "2"
+
        "friendlevel": "2"
      },
+
      },
      {
+
      {
        "username": "Goddy",
+
        "username": "Goddy",
        "id": "5661",
+
        "id": "5661",
        "friendlevel": "2"
+
        "friendlevel": "2"
      },
+
      },
        ...
+
        ...
    ],
+
    ],
    "characters": []
+
    "characters": []
  }
+
}
}  
+
}  
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
 +
<source lang="python">
 +
def quickSort(arr):
 +
    less = []
 +
    pivotList = []
 +
    more = []
 +
    if len(arr) <= 1:
 +
        return arr
 +
    else:
 +
      pass
 +
</source>
 +
 
[[Category:REST API calls]]
 
[[Category:REST API calls]]

Revision as of 21:12, 28 November 2015

NOTE: This is only an example!

Returns details about a specific user.

Resource URL

https://api.sofurry.com/v3/user/details

<html><a href="test">test</a> </html>

Parameters

userID The ID of the user for whom to return results for.

If none supplied, the authenticated user's ID will be used.

Example Values: 12345

adult If the description should be the adult or clean one

Example Values: true


Example Request

GET
https://api.sofurry.com/v3/user/details?userID=379876&adult=false

Example Result

<syntaxhighlight lang="json" line> {

 "success": "true",
 "data": {
   "id": "379876",
   "username": "TerraBAS",
   "useralias": "terrabas",
   "description": "Hey there, welcome to my page!
My name is TerraBAS, but I'm mostly called Terra.

I'm an Austrian, playful husky that is unbelievably fluffy :3

Things I love to do:
Hangin' out with friends, some sports (like cycling), programming (especially C# and Java), producing music, drawing, and much more...

If you want to know more about me, just send me a PM or add me on Skype, I don't bite ;P


Also, I'm the programmer of the SoFurry Android app, so if you have any questions or feedback, you can tell me.

", "species": "Husky", "mateshipstatus": "5", "gender": "1", "sexualorientation": "3", "country": "Austria", "bannerURL": "https://www.sofurryfiles.com/std/banner?user=379876", "avatarURL": "https://www.sofurryfiles.com/std/avatar?user=379876&character=0&clevel=0", "profileViewCount": "502", "submissionCount": "1", "submissionViewCount": "26", "commentCount": "1", "commentPostedCount": "4", "iswatched": false, "loves": "", "likes": "", "tolerates": "", "hates": "", "groups": [ { "groupName": "Canine Furries", "groupID": "91", "userlevel": "0" }, { "groupName": "Austrian Furs / Austrofurs", "groupID": "116", "userlevel": "0" }, { "groupName": "Squeaky Clean Club", "groupID": "182", "userlevel": "0" }, { "groupName": "SoFurry Ambassadors", "groupID": "3009", "userlevel": "0" }, ... ], "friends": [ { "username": "Toumal", "id": "13", "friendlevel": "2" }, { "username": "Raul", "id": "1748", "friendlevel": "2" }, { "username": "Goddy", "id": "5661", "friendlevel": "2" }, ... ], "characters": [] }

} </syntaxhighlight>


<source lang="python"> def quickSort(arr):

   less = []
   pivotList = []
   more = []
   if len(arr) <= 1:
       return arr
   else:
      pass

</source>