Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base62ToHex ¶
func ConvertTo62 ¶
func GenerateDeviceId ¶
Types ¶
type APList ¶
type APList struct {
ApList []string `json:"ap_list"`
}
APList is the JSON structure corresponding to the output of the AP endpoint resolve API
type BlobInfo ¶
BlobInfo is the structure holding authentication blob data. The blob is an encoded/encrypted byte array (encoded as base64), holding the encryption keys, the deviceId, and the username.
func BlobFromFile ¶
BlobFromFile restores a Blob from the specified path
func NewBlobInfo ¶
func NewBlobInfo(blob64 string, client64 string, keys crypto.PrivateKeys, deviceId string, username string) (BlobInfo, error)
NewBlobInfo creates a new BlobInfo structure with the blob data filled in DecodedBlob field
func (*BlobInfo) MakeAuthBlob ¶
func (b *BlobInfo) MakeAuthBlob(deviceId string, client64 string, dhKeys crypto.PrivateKeys) (string, error)
MakeAuthBlob builds an encoded blob in order to authenticate against Spotify services
func (*BlobInfo) SaveToFile ¶
SaveToFile saves the current blob to the specified path
Click to show internal directories.
Click to hide internal directories.