user

package
v0.0.0-...-379ef8e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2016 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Deals with services related to users.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentId

func GetCurrentId(client *Client) (id int32, err error)

GetCurrentId returns the id of the user currently logged in.

This function requires the client to be logged in.

func GetIdFromName

func GetIdFromName(client *Client, name string) (id int32, err error)

GetIdFromName returns a user id from a user name.

func GetNameFromId

func GetNameFromId(client *Client, id int32) (name string, err error)

GetNameFromId returns a user name from a user id.

Types

type Info

type Info struct {
	UserID                  int32
	UserName                string
	RobuxBalance            int64
	TicketsBalance          int64
	ThumbnailUrl            string
	IsAnyBuildersClubMember bool
}

Info contains information about the current user.

func GetInfo

func GetInfo(client *Client) (info Info, err error)

GetInfo returns information about the current user.

This function requires the client to be logged in.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL