lbry

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthToken string

Functions

func VideoStatusUpdate

func VideoStatusUpdate(ytchannelID, ytVideoID, lbryClaimName, lbryClaimID, status string, publishedAt time.Time, size int) error

Types

type UserMeResponse

type UserMeResponse struct {
	Success bool        `json:"success"`
	Error   interface{} `json:"error"`
	Data    struct {
		ID                  int         `json:"id"`
		Language            string      `json:"language"`
		GivenName           string      `json:"given_name"`
		FamilyName          interface{} `json:"family_name"`
		CreatedAt           time.Time   `json:"created_at"`
		UpdatedAt           time.Time   `json:"updated_at"`
		InvitedByID         int         `json:"invited_by_id"`
		InvitedAt           time.Time   `json:"invited_at"`
		InvitesRemaining    int         `json:"invites_remaining"`
		InviteRewardClaimed bool        `json:"invite_reward_claimed"`
		IsEmailEnabled      bool        `json:"is_email_enabled"`
		PublishID           int         `json:"publish_id"`
		Country             interface{} `json:"country"`
		YoutubeChannels     []struct {
			YtChannelName    string      `json:"yt_channel_name"`
			LbryChannelName  string      `json:"lbry_channel_name"`
			ChannelClaimID   string      `json:"channel_claim_id"`
			SyncStatus       string      `json:"sync_status"`
			StatusToken      string      `json:"status_token"`
			Transferable     bool        `json:"transferable"`
			TransferState    string      `json:"transfer_state"`
			PublishToAddress interface{} `json:"publish_to_address"`
			PublicKey        string      `json:"public_key"`
		} `json:"youtube_channels"`
		PrimaryEmail       string        `json:"primary_email"`
		PasswordSet        bool          `json:"password_set"`
		LatestClaimedEmail interface{}   `json:"latest_claimed_email"`
		HasVerifiedEmail   bool          `json:"has_verified_email"`
		IsIdentityVerified bool          `json:"is_identity_verified"`
		IsRewardApproved   bool          `json:"is_reward_approved"`
		Groups             []interface{} `json:"groups"`
		DeviceTypes        []string      `json:"device_types"`
	} `json:"data"`
}

func GetUserInfo

func GetUserInfo() UserMeResponse

Jump to

Keyboard shortcuts

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