class Courbe::Users

Defined in:

api/users.cr

Class Method Summary

Class Method Detail

def self.clips(instance_url : String, userId : String, limit = 10) #

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.


[View source]
def self.followers(instance_url : String, userId : String, limit = 10) #

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.


[View source]
def self.following(instance_url : String, userId : String, limit = 10) #

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.


[View source]
def self.notes(instance_url : String, userId : String, limit = 10) #

[View source]
def self.users(instance_url : String, limit = 10, offset = 0, sort = "+follower", state = "all", origin = "local") #

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.


[View source]