cbc

package
v1.52.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: OSL-3.0 Imports: 7 Imported by: 0

README

CBC

Web client

The web client will not allow you to create an account:

Accounts cannot be created outside of Canada.

https://gem.cbc.ca/join-now

Android client

Android client allows you to create an account with no problems.

https://play.google.com/store/apps/details?id=ca.cbc.android.cbctv

Install system certificate. Random IPV4:

GET /media/validation/v2?appCode=gem&idMedia=929078&manifestType=mobile&output=json&tech=hls HTTP/1.1
Host: services.radio-canada.ca
X-Forwarded-For: 99.246.97.250
x-claims-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJIYXNIRCI6IkZhbHNlIiwiV...

How to get media ID?

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevel format.LogLevel

Functions

This section is empty.

Types

type Asset

type Asset struct {
	ID          string
	PlaySession struct {
		MediaID string
		URL     string
	}
}

func NewAsset

func NewAsset(addr string) (*Asset, error)

func (Asset) Media

func (a Asset) Media() (*http.Response, error)

type Login

type Login struct {
	Access_Token string
	Expires_In   string
}

func NewLogin

func NewLogin(email, password string) (*Login, error)

func (Login) WebToken

func (l Login) WebToken() (*WebToken, error)

type OverTheTop

type OverTheTop struct {
	AccessToken string
}

func (OverTheTop) Profile

func (o OverTheTop) Profile() (*Profile, error)

type Profile

type Profile struct {
	Tier        string
	ClaimsToken string
}

type WebToken

type WebToken struct {
	Signature string
}

func (WebToken) OverTheTop

func (w WebToken) OverTheTop() (*OverTheTop, error)

Jump to

Keyboard shortcuts

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