Advertisement
Guest User

Untitled

a guest
May 27th, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. List Profiles
  2. Lists profiles sorted by score
  3.  
  4. URL:
  5.  
  6. /profiles
  7. Headers:
  8.  
  9. x-access-token: String
  10. Query String:
  11.  
  12. filter: String (multiple filter=value querystring can be provided)
  13. sort: String
  14. page: Int = 1
  15. pageSize: Int = 10
  16. Filters Values:
  17.  
  18. username(:string), gets slings by this user only
  19. Sort Values:
  20.  
  21. score (this is the default sort)
  22. Example URLs:
  23.  
  24. /profiles?filter=username(sharon)&sort=score
  25.  
  26. No search results.
  27. URL params Headers (1)
  28.  
  29.  
  30.  
  31.  
  32. Send Save Preview Pre-request script Tests Add to collection Reset
  33. BodyCookiesHeaders (7)Tests
  34. STATUS 200 OK
  35. TIME 127 ms
  36. Pretty Raw Preview JSON Copy
  37. {
  38. "data": [
  39. {
  40. "id": "gabe",
  41. "type": "profile",
  42. "attributes": {
  43. "progress": 2,
  44. "profilePic": "https://getslinger.s3-us-west-1.amazonaws.com/images/07800b0e373055cfeb930047cd0a633f5cba5e71.png",
  45. "email": "gebe1987@gmail.com",
  46. "followingCount": 0,
  47. "followerCount": 0,
  48. "slingCount": 0,
  49. "score": 59
  50. },
  51. "links": {
  52. "followers": {
  53. "linkage": {
  54. "id": "772aff6c-bdac-4f6d-a157-2856106d24ff",
  55. "type": "follow"
  56. }
  57. }
  58. }
  59. },
  60. {
  61. "id": "772aff6c-bdac-4f6d-a157-2856106d24ff",
  62. "type": "profile",
  63. "attributes": {
  64. "progress": 0,
  65. "followingCount": 1,
  66. "followerCount": 1,
  67. "slingCount": 0,
  68. "score": 0
  69. }
  70. }
  71. ],
  72. "included": [
  73. {
  74. "id": "772aff6c-bdac-4f6d-a157-2856106d24ff",
  75. "type": "follow",
  76. "attributes": {
  77. "username": "gabe",
  78. "followingUser": "772aff6c-bdac-4f6d-a157-2856106d24ff",
  79. "following": true
  80. }
  81. },
  82. {
  83. "id": "772aff6c-bdac-4f6d-a157-2856106d24ff",
  84. "type": "profile",
  85. "attributes": {
  86. "progress": 0,
  87. "followingCount": 1,
  88. "followerCount": 1,
  89. "slingCount": 0,
  90. "score": 0
  91. }
  92. }
  93. ]
  94. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement