OpenGraphData

class yandex_music.playlist.open_graph_data.OpenGraphData

Класс, представляющий данные для Open Graph.

title

Заголовок.

Type:

str

description

Описание.

Type:

str

image

Изображение.

Type:

yandex_music.Cover

client

Клиент Yandex Music.

Type:

yandex_music.Client, optional

classmethod de_json(data, client)

Десериализация объекта.

Parameters:
  • data (dict) – Поля и значения десериализуемого объекта.

  • client (yandex_music.Client, optional) – Клиент Yandex Music.

Returns:

Данные для Open Graph.

Return type:

yandex_music.OpenGraphData