123456789101112131415161718 |
- package amo
- import "surdeus.su/core/ss/urlenc"
- import "surdeus.su/core/amo/users"
- import "fmt"
- func (client *Client) GetUser(
- userId int,
- opts ...urlenc.Builder,
- ) (*users.User, error) {
- user := new(users.User)
- err := client.API.Get(fmt.Sprintf(
- "/api/v4/users/%d?%s",
- userId,
- urlenc.Join(opts...).Encode(),
- ), user)
- return user, err
- }
|