Spotify.NET/assets/js/13.1731261a.js

1 line
16 KiB
JavaScript
Raw Normal View History

2019-09-04 17:46:50 +01:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{194:function(t,a,s){"use strict";s.r(a);var e=s(0),n=Object(e.a)({},function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"browse"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#browse","aria-hidden":"true"}},[t._v("#")]),t._v(" Browse")]),t._v(" "),s("h2",{attrs:{id:"getfeaturedplaylists"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getfeaturedplaylists","aria-hidden":"true"}},[t._v("#")]),t._v(" GetFeaturedPlaylists")]),t._v(" "),s("blockquote",[s("p",[t._v("Get a list of Spotify featured playlists (shown, for example, on a Spotify players “Browse” tab).")])]),t._v(" "),s("p",[s("strong",[t._v("Parameters")])]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Description")]),t._v(" "),s("th",[t._v("Example")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[t._v("[locale]")]),t._v(" "),s("td",[t._v("The desired language, consisting of a lowercase ISO 639 language code and an uppercase ISO 3166-1 alpha-2 country code, joined by an underscore.")]),t._v(" "),s("td",[s("code",[t._v('"de_DE" //Germany')])])]),t._v(" "),s("tr",[s("td",[t._v("[country]")]),t._v(" "),s("td",[t._v("A country: an ISO 3166-1 alpha-2 country code.")]),t._v(" "),s("td",[s("code",[t._v('"DE"')])])]),t._v(" "),s("tr",[s("td",[t._v("[timestamp]")]),t._v(" "),s("td",[t._v("A timestamp in ISO 8601 format")]),t._v(" "),s("td",[s("code",[t._v("DateTime.Now")])])]),t._v(" "),s("tr",[s("td",[t._v("[limit]")]),t._v(" "),s("td",[t._v("The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.")]),t._v(" "),s("td",[s("code",[t._v("20")])])]),t._v(" "),s("tr",[s("td",[t._v("[offset]")]),t._v(" "),s("td",[t._v("The index of the first item to return. Default: 0")]),t._v(" "),s("td",[s("code",[t._v("0")])])])])]),t._v(" "),s("p",[t._v("Returns a "),s("code",[t._v("FeaturedPlaylists")]),t._v(" object, which has 2 properties. "),s("code",[t._v("String Message")]),t._v(" and "),s("code",[t._v("Paging<SimplePlaylist> Playlists")])]),t._v(" "),s("p",[s("strong",[t._v("Usage")])]),t._v(" "),s("div",{staticClass:"language-csharp extra-class"},[s("pre",{pre:!0,attrs:{class:"language-csharp"}},[s("code",[s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("FeaturedPlaylists")]),t._v(" playlists "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" _spotify"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("GetFeaturedPlaylists")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nConsole"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("WriteLine")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("playlists"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("Message"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nplaylists"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("Playlists"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("Items"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("ForEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("playlist "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" Console"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("WriteLine")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("playlist"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("Name"),s("span",{pre:!0,attrs:{class:"token punctu