Documentation ¶
Index ¶
Constants ¶
View Source
const ( APIBaseURL = "https://plex.tv/api" APIBaseURLv2 = APIBaseURL + "/v2" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) AttachServer ¶
func (*App) AttachUser ¶
func (*App) GeneratePin ¶
type Error ¶
type Library ¶
type Library struct { AllowSync bool `json:"-" ` Art string `json:"-" ` Composite string `json:"-" ` Filters bool `json:"-" ` Refreshing bool `json:"-" ` Thumb string `json:"-" ` Key int `json:"key,string" ` Type string `json:"type" ` Title string `json:"title" ` Agent string `json:"agent" ` Scanner string `json:"scanner" ` Language string `json:"-" ` UUID string `json:"uuid" ` UpdatedAt int `json:"-" ` CreatedAt int `json:"-" ` ScannedAt int `json:"-" ` Content bool `json:"-" ` Directory bool `json:"-" ` ContentChangedAt int `json:"-" ` Hidden int `json:"-" ` Location []LibraryLocation `json:"-" ` // contains filtered or unexported fields }
type LibraryLocation ¶
type PinData ¶
type PinData struct { Errors []Error `json:"errors"` ID int `json:"id"` Code string `json:"code"` Product string `json:"product"` Trusted bool `json:"trusted"` ClientIdentifier string `json:"clientIdentifier"` Location Location `json:"location"` ExpiresIn int `json:"expiresIn"` CreatedAt time.Time `json:"createdAt"` ExpiresAt time.Time `json:"expiresAt"` AuthToken string `json:"authToken"` NewRegistration bool `json:"newRegistration"` // contains filtered or unexported fields }
Pin Endpoint
type Profile ¶
type Profile struct { AutoSelectAudio bool `json:"autoSelectAudio"` DefaultAudioLanguage string `json:"defaultAudioLanguage"` DefaultSubtitleLanguage string `json:"defaultSubtitleLanguage"` AutoSelectSubtitle int `json:"autoSelectSubtitle"` DefaultSubtitleAccessibility int `json:"defaultSubtitleAccessibility"` DefaultSubtitleForced int `json:"defaultSubtitleForced"` }
type Series ¶
type Series struct { RatingKey int `json:"ratingKey,string" ` Key string `json:"key" ` SkipChildren bool `json:"skipChildren,omitempty" ` GUID string `json:"guid" ` Studio string `json:"studio" ` Type string `json:"type" ` Title string `json:"title" ` ContentRating string `json:"contentRating,omitempty" ` Summary string `json:"summary" ` Index int `json:"index" ` Rating float64 `json:"rating,omitempty" ` ViewCount int `json:"viewCount,omitempty" ` LastViewedAt int `json:"lastViewedAt,omitempty" ` Year int `json:"year" ` Thumb string `json:"thumb" ` Art string `json:"art" ` Banner string `json:"banner" ` Theme string `json:"theme,omitempty" ` Duration int `json:"duration" ` OriginallyAvailableAt string `json:"originallyAvailableAt" ` LeafCount int `json:"leafCount" ` ViewedLeafCount int `json:"viewedLeafCount" ` ChildCount int `json:"childCount" ` AddedAt int `json:"addedAt" ` UpdatedAt int `json:"updatedAt" ` Genre []Metadata `json:"Genre" ` Role []Metadata `json:"Role,omitempty" ` TitleSort string `json:"titleSort,omitempty" ` Collection []Metadata `json:"Collection,omitempty" ` // contains filtered or unexported fields }
type Server ¶
type Server struct { XMLName xml.Name `xml:"Server" json:"-"` AccessToken string `xml:"accessToken,attr"` Address string `xml:"address,attr"` CreatedAt UnixTimestamp `xml:"createdAt,attr" json:"-"` Host string `xml:"host,attr"` LocalAddresses string `xml:"localAddresses,attr"` MachineIdentifier string `xml:"machineIdentifier,attr"` Name string `xml:"name,attr"` Owned bool `xml:"owned,attr"` Port int `xml:"port,attr"` Scheme string `xml:"scheme,attr"` Synced bool `xml:"synced,attr"` UpdatedAt UnixTimestamp `xml:"updatedAt,attr" json:"-"` Version string `xml:"version,attr"` OwnerId int `xml:"ownerId,attr"` // contains filtered or unexported fields }
type Subscription ¶
type User ¶
type User struct { ID int `json:"id" ` UUID string `json:"uuid" ` Username string `json:"username" ` Title string `json:"title" ` Email string `json:"email" ` Locale string `json:"locale" ` Confirmed bool `json:"confirmed" ` EmailOnlyAuth bool `json:"emailOnlyAuth" ` HasPassword bool `json:"hasPassword" ` Protected bool `json:"protected" ` Thumb string `json:"thumb" ` AuthToken string `json:"authToken"` MailingListStatus string `json:"mailingListStatus" ` MailingListActive bool `json:"mailingListActive" ` ScrobbleTypes string `json:"scrobbleTypes" ` Country string `json:"country" ` Pin string `json:"pin"` Subscription Subscription `json:"subscription" ` SubscriptionDescription string `json:"subscriptionDescription" ` Restricted bool `json:"restricted" ` Anonymous interface{} `json:"anonymous" ` Home bool `json:"home" ` Guest bool `json:"guest" ` HomeSize int `json:"homeSize" ` HomeAdmin bool `json:"homeAdmin" ` MaxHomeSize int `json:"maxHomeSize" ` CertificateVersion int `json:"certificateVersion" ` RememberExpiresAt int `json:"rememberExpiresAt" ` Profile Profile `json:"profile" ` Entitlements []string `json:"entitlements" ` Roles []string `json:"roles" ` Services []Services `json:"services" ` AdsConsent interface{} `json:"adsConsent" ` AdsConsentSetAt interface{} `json:"adsConsentSetAt" ` AdsConsentReminderAt interface{} `json:"adsConsentReminderAt" ` ExperimentalFeatures bool `json:"experimentalFeatures" ` TwoFactorEnabled bool `json:"twoFactorEnabled" ` BackupCodesCreated bool `json:"backupCodesCreated"` // contains filtered or unexported fields }
User endpoint
Click to show internal directories.
Click to hide internal directories.