Difference between revisions of "GET /user/details"

From SoFurry
Jump to: navigation, search
(Created page with "Category:REST API calls")
 
m
 
(9 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:REST API calls]]
+
{| style="width: 100%; background: #FF6600; margin: 1.2em 0 6px 0; border: 1px solid #ddd;"
 +
| style="width: 100%; color: #000;" |
 +
{| style="width: 100%; border: none; background: none;margin: 0.7em 0 0 0;"
 +
| style="width: 100%; text-align: center; white-space: nowrap; color: #000;" |
 +
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 ===
 +
'''Bold''' parameters are mandatory
 +
 
 +
{| cellspacing="0" border="1" cellpadding="10"
 +
|-
 +
!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>
 +
{
 +
  "userID":"379876",
 +
  "username":"TerraBAS",
 +
  "alias":"terrabas",
 +
  "type":"Snuggbud, Chocolate bro, Artist, Ultra-Admin, Site Developer",
 +
  "species":"Husky",
 +
  "gender":"1",
 +
  "orientation":"3",
 +
  "mateshipStatus":"5",
 +
  "country":"Austria",
 +
  "city":"",
 +
  "registrationDate":"23 Feb 2015",
 +
  "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 \/>",
 +
  "adultdescription":"",
 +
  "iswatched":false,
 +
  "usericon":"http:\/\/www.sofurrybeta.com\/std\/avatar?user=379876&character=0&clevel=2",
 +
  "profilebanner":"http:\/\/www.sofurrybeta.com\/std\/banner?user=379876",
 +
  "loves":"",
 +
  "likes":"",
 +
  "tolerates":"",
 +
  "hates":"",
 +
  "stats":{
 +
      "profileViewCount":"583",
 +
      "submissionCount":"1",
 +
      "submissionViewCount":"26",
 +
      "commentCount":"3",
 +
      "commentPostedCount":"6"
 +
  }
 +
}
 +
</syntaxhighlight>
 +
 
 +
 
 +
<source lang="python">
 +
def quickSort(arr):
 +
    less = []
 +
    pivotList = []
 +
    more = []
 +
    if len(arr) <= 1:
 +
        return arr
 +
    else:
 +
      pass
 +
</source>
 +
 
 +
[[Category:Developers]]

Latest revision as of 04:46, 29 August 2017

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

Bold parameters are mandatory

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> {

  "userID":"379876",
  "username":"TerraBAS",
  "alias":"terrabas",
  "type":"Snuggbud, Chocolate bro, Artist, Ultra-Admin, Site Developer",
  "species":"Husky",
  "gender":"1",
  "orientation":"3",
  "mateshipStatus":"5",
  "country":"Austria",
  "city":"",
  "registrationDate":"23 Feb 2015",
  "description":"Hey there, welcome to<\/span><\/strong> my page!<\/strong>
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.
<\/span>
", "adultdescription":"", "iswatched":false, "usericon":"http:\/\/www.sofurrybeta.com\/std\/avatar?user=379876&character=0&clevel=2", "profilebanner":"http:\/\/www.sofurrybeta.com\/std\/banner?user=379876", "loves":"", "likes":"", "tolerates":"", "hates":"", "stats":{ "profileViewCount":"583", "submissionCount":"1", "submissionViewCount":"26", "commentCount":"3", "commentPostedCount":"6" }

} </syntaxhighlight>


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

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

</source>