class Courbe::Users
- Courbe::Users
- Reference
- Object
Defined in:
api/users.crClass Method Summary
-
.clips(instance_url : String, userId : String, limit = 10)
Show all clips that a user owns.
-
.followers(instance_url : String, userId : String, limit = 10)
Return the followers of a given user.
-
.following(instance_url : String, userId : String, limit = 10)
Return the people that a user is following.
- .notes(instance_url : String, userId : String, limit = 10)
-
.users(instance_url : String, limit = 10, offset = 0, sort = "+follower", state = "all", origin = "local")
Return a list of users on the specified instance.
Class Method Detail
Show all clips that a user owns. NOTE: for userId, you'll
want to use something like 9p332xwemp, which sounds very
random (it is). Go to your Misskey/Sharkey instance, and enable
developer mode (Settings -> Other Settings -> Other). Once you've
done that, go to any profile and click the three dots on the top
right, and hit "Copy user ID" to get their userId.
Return the followers of a given user. Similarly to users/clips,
this requires the userId parameter. See the comment for that
if you're confused.
Return the people that a user is following. Similar to users/clips in
that it requires userId. See the comment for that if you're confused.
Return a list of users on the specified instance.
limit must be between 1 and 100.
offset can be used as a way of "pagination" through the userlist.
sort may be set to any of the following: +follower (default), -follower, +createdAt, -createdAt, +updatedAt, or -updatedAt.
origin specifies where the users are being derived from. The default is local, but it could also be set to remote, or combined for a mix of the two.