/*! For license information please see c4f5d8e4.de5d3f71.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{150:function(e,t,a){"use strict";a.r(t);var r=a(2),n=a(0),o=a.n(n),l=a(153),i=a.n(l),c=a(161),s=a(162),d=(a(163),a(160),a(155)),u=a(152),h=a(154),f=a(138),p=a.n(f);class m extends n.PureComponent{constructor(e){super(e),this.$=o.a.createRef(),this._=o.a.createRef()}render(){return o.a.createElement("span",{ref:this.$},o.a.createElement("a",{...this.props,ref:this._},this.props.children))}componentDidMount(){this.paint()}getSnapshotBeforeUpdate(){return this.reset(),null}componentDidUpdate(){this.paint()}componentWillUnmount(){this.reset()}paint(){const e=this.$.current.appendChild(document.createElement("span"));Promise.resolve().then(a.bind(null,182)).then(({render:t})=>{t(e.appendChild(this._.current),(function(t){try{e.parentNode.replaceChild(t,e)}catch(e){}}))})}reset(){this.$.current.replaceChild(this._.current,this.$.current.lastChild)}}var g=m,b=a(165);const v=[{title:o.a.createElement(o.a.Fragment,null,"Sane Defaults - Easy To Configure"),imageUrl:"img/undraw_preferences_uuo2.svg",description:()=>o.a.createElement(o.a.Fragment,null,o.a.createElement("code",null,"SpotifyAPI-NET")," allows you to quickly integrate with Spotify's Web API by supplying sane configuration defaults from the start. Later on, behaviour can be customized using extensive configuration possibilities.")},{title:o.a.createElement(o.a.Fragment,null,"All API Calls Integrated"),imageUrl:"img/undraw_project_completed_w0oq.svg",description:()=>o.a.createElement(o.a.Fragment,null,"The Spotify Web API consists of over 74 API calls. ",o.a.createElement("code",null,"SpotifyAPI-NET")," provides fully typed requests/responses for all of them.")},{title:o.a.createElement(o.a.Fragment,null,".NET Standard 2.X"),imageUrl:"img/undraw_Devices_e67q.svg",description:()=>o.a.createElement(o.a.Fragment,null,"With the support of .NET Standard 2.X, ",o.a.createElement("code",null,"SpotifyAPI-NET")," runs on many platforms, including .NET Core, UWP and Xamarin.Forms (Windows, Android, iOS and Mac)")},{title:o.a.createElement(o.a.Fragment,null,"Testable"),imageUrl:"img/undraw_QA_engineers_dg5p.svg",description:()=>o.a.createElement(o.a.Fragment,null,o.a.createElement("code",null,"SpotifyAPI-NET")," is built on a modular structure, which allows easy testing through mocks and stubs. Learn more by visiting the ",o.a.createElement(d.a,{to:Object(h.a)("docs/next/testing")},"Testing Guide"))}];function w({imageUrl:e,title:t,description:a}){const r=Object(h.a)(e);return o.a.createElement("div",{className:i()("col col--4",p.a.feature)},r&&o.a.createElement("div",{className:"text--center"},o.a.createElement("img",{className:p.a.featureImage,src:r,alt:t})),o.a.createElement("h3",null,t),o.a.createElement("p",null,a()))}t.default=function(){const e=Object(u.a)(),{siteConfig:t={}}=e;return o.a.createElement(c.a,{title:""+t.title,description:"Documentation for the C# .NET SpotifyAPI-NET Library"},o.a.createElement("header",{className:i()("hero hero--primary",p.a.heroBanner)},o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col col--5"},o.a.createElement("img",{src:"img/logo.svg",width:"120",height:"120"}),o.a.createElement("h1",{className:"hero__title"},t.title,o.a.createElement("span",{style:{marginLeft:"50px"}}),o.a.createElement(g,{href:"https://github.com/JohnnyCrazy/SpotifyAPI-NET","data-icon":"octicon-star","data-size":"large","data-show-count":"true","aria-label":"Star JohnnyCrazy/SpotifyAPI-NET on GitHub"},"Star"),o.a.createElement("br",null),o.a.createElement("a",{href:"https://www.nuget.org/packages/SpotifyAPI.Web/",rel:"noopener noreferrer"},o.a.createElement("img",{alt:"Nuget",src:"https://img.shields.io/nuget/v/SpotifyAPI.Web?label=SpotifyAPI.Web&style=flat-square"})," "),o.a.createElement("a",{href:"https://www.nuget.org/packages/SpotifyAPI.Web.Auth/",rel:"noopener noreferrer"},o.a.createElement("img",{alt:"Nuget",src:"https://img.shields.io/nuget/v/SpotifyAPI.Web.Auth?label=SpotifyAPI.Web.Auth&style=flat-square"}))),o.a.createElement("p",{className:"hero__subtitle"},t.tagline),o.a.createElement("div",{className:p.a.buttons},o.a.createElement(d.a,{className:i()("button button--outline button--secondary button--lg",p.a.getStarted),to:Object(h.a)("docs/next/introduction")},"Get Started"))),o.a.createElement("div",{className:i()("col col--7",p.a.exampleCode)},o.a.createElement(s.a,{metastring:"csharp",className:"csharp"},'var spotify = new SpotifyClient("YourAccessToken");\n\nvar me = await spotify.UserProfile.Current();\nConsole.WriteLine($"Hello there {me.DisplayName}");\n\nawait foreach(\n var playlist in spotify.Paginate(spotify.Playlists.CurrentUsers())\n)\n{\n Console.WriteLine(playlist.Name);\n}'))))),o.a.createElement("main",null,o.a.createElement("div",{className:"container"},o.a.createElement("h2",{style:{textAlign:"center",marginTop:"30px"}},"Try it out now"),o.a.createElement(b.a,null)),v&&v.length&&o.a.createElement("section",{className:p.a.features},o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"row"},v.map((e,t)=>o.a.createElement(w,Object(r.a)({key:t},e))))))))}},160:function(e,t,a){"use strict";var r=a(0),n=a.n(r);t.a=function(e){return n.a.createElement("div",null,e.children)}},163:function(e,t,a){"use strict";var r=a(0),n=a.n(r),o=a(158);var l=function(){return Object(r.useContext)(o.a)},i=a(153),c=a.n(i),s=a(92),d=a.n(s);const u=37,h=39;t.a=function(e){const{block:t,children:a,defaultValue:o,values:i,groupId:s}=e,{tabGroupChoices:f,setTabGroupChoices:p}=l(),[m,g]=Object(r.useState)(o);if(null!=s){const e=f[s];null!=e&&e!==m&&g(e)}const b=e=>{g(e),null!=s&&p(s,e)},v=[];return n.a.createElement("div",null,n.a.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:c()("tabs",{"tabs--block":t})},i.map(({value:e,label:t})=>n.a.createElement("li",{role:"tab",tabIndex:"0","aria-selected":m===e,className:c()("tabs__item",d.a.tabItem,{"tabs__item--active":m===e}),key:e,ref:e=>v.push(e),onKeyDown:e=>((e,t,a)=>{switch(a.keyCode){case h:((e,t)=>{const a=e.indexOf(t)+1;e[a]?e[a].focus():e[0].focus()})(e,t);break;case u:((e,t)=>{const a=e.indexOf(t)-1;e[a]?e[a].focus():e[e.length-1].focus()})(e,t)}})(v,e.target,e),onFocus:()=>b(e),onClick:()=>b(e)},t))),n.a.createElement("div",{role:"tabpanel",className:"margin-vert--md"},r.Children.toArray(a).filter(e=>e.props.value===m)[0]))}},165:function(e,t,a){"use strict";var r=a(0),n=a.n(r),o=a(162),l=a(163),i=a(160);t.a=()=>n.a.createElement("div",{style:{padding:"30px"}},n.a.createElement(l.a,{defaultValue:"cli",values:[{label:".NET CLI",value:"cli"},{label:"Package Manager",value:"nuget"},{label:"Package Reference",value:"reference"}]},n.a.createElement(i.a,{value:"cli"},n.a.createElement(o.a,{metastring:"shell",className:"shell"},"dotnet add package SpotifyAPI.Web --version 6.0.0-beta.1\n# Optional Auth module, which includes an embedded HTTP Server for OAuth2\ndotnet add package SpotifyAPI.Web.Auth --version 6.0.0-beta.1\n")),n.a.createElement(i.a,{value:"nuget"},n.a.createElement(o.a,{metastring:"shell",className:"shell"},"Install-Package SpotifyAPI.Web -Version 6.0.0-beta.1\n# Optional Auth module, which includes an embedded HTTP Server for OAuth2\nInstall-Package SpotifyAPI.Web.Auth -Version 6.0.0-beta.1\n")),n.a.createElement(i.a,{value:"reference"},n.a.createElement(o.a,{metastring:"xml",className:"xml"},'\n\x3c!-- Optional Auth module, which includes an embedded HTTP Server for OAuth2 --\x3e\n\n'))))},182:function(e,t,a){"use strict";a.r(t),a.d(t,"render",(function(){return C}));var r=window.document,n=window.Math,o=window.HTMLElement,l=window.XMLHttpRequest,i=function(e){return function(t,a,r){var n=e.createElement(t);if(null!=a)for(var o in a){var l=a[o];null!=l&&(null!=n[o]?n[o]=l:n.setAttribute(o,l))}if(null!=r)for(var i=0,c=r.length;i'},heart:{width:12,height:16,path:''},eye:{width:16,height:16,path:''},star:{width:14,height:16,path:''},"repo-forked":{width:10,height:16,path:''},"repo-template":{width:14,height:16,path:''},"issue-opened":{width:14,height:16,path:''},"cloud-download":{width:16,height:16,path:''}},v={},w=function(e,t){var a=v[e]||(v[e]=[]);if(!(a.push(t)>1)){var r=function(e){var t;return function(){t||(t=1,e.apply(this,arguments))}}((function(){for(delete v[e];t=a.shift();)t.apply(null,arguments)}));if(d){var n=new l;h(n,"abort",r),h(n,"error",r),h(n,"load",(function(){var e;try{e=JSON.parse(n.responseText)}catch(t){return void r(t)}r(200!==n.status,e)})),n.open("GET",e),n.send()}else{var o=this||window;o._=function(e){o._=null,r(200!==e.meta.status,e.data)};var c=i(o.document)("script",{async:!0,src:e+(/\?/.test(e)?"&":"?")+"callback=_"}),s=function(){o._&&o._({meta:{}})};h(c,"load",s),h(c,"error",s),c.readyState&&function(e,t,a){var r=function(n){if(t.test(e.readyState))return f(e,"readystatechange",r),a(n)};h(e,"readystatechange",r)}(c,/de|m/,s),o.document.getElementsByTagName("head")[0].appendChild(c)}}},y=function(e,t,a){var r=i(e.ownerDocument),n=e.appendChild(r("style",{type:"text/css"})),o="body{margin:0}a{text-decoration:none;outline:0}.widget{display:inline-block;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;font-size:0;white-space:nowrap}.btn,.social-count{position:relative;display:inline-block;height:14px;padding:2px 5px;font-size:11px;font-weight:600;line-height:14px;vertical-align:bottom;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:repeat-x;background-position:-1px -1px;background-size:110% 110%;border:1px solid}.btn{border-radius:.25em}.btn:not(:last-child){border-radius:.25em 0 0 .25em}.social-count{border-left:0;border-radius:0 .25em .25em 0}.widget-lg .btn,.widget-lg .social-count{height:20px;padding:3px 10px;font-size:12px;line-height:20px}.octicon{display:inline-block;vertical-align:text-top;fill:currentColor}"+g(t["data-color-scheme"]);n.styleSheet?n.styleSheet.cssText=o:n.appendChild(e.ownerDocument.createTextNode(o));var l,c,d=r("a",{className:"btn",href:t.href,rel:"noopener",target:"_blank",title:t.title||void 0,"aria-label":t["aria-label"]||void 0,innerHTML:(l=t["data-icon"],c=/^large$/i.test(t["data-size"])?16:14,l=(""+l).toLowerCase().replace(/^octicon-/,""),s(b,l)||(l="mark-github"),'")},[" ",r("span",{},[t["data-text"]||""])]),u=e.appendChild(r("div",{className:"widget"+(/^large$/i.test(t["data-size"])?" widget-lg":"")},[d])),h=d.hostname.split(".").reverse();if(""===h[0]&&h.shift(),"com"!==h[0]||"github"!==h[1])return d.href="#",d.target="_self",void a(u);var f=h.length,p=(" /"+d.pathname).split(/\/+/);if(((2===f||3===f&&"gist"===h[2])&&"archive"===p[3]||2===f&&"releases"===p[3]&&"download"===p[4]||3===f&&"codeload"===h[2])&&(d.target="_top"),/^true$/i.test(t["data-show-count"])&&2===f){var m,v;if(!p[2]&&p[1])m=v="followers";else if(!p[3]&&p[2])v="stargazers_count",m="stargazers";else if(p[4]||"subscription"!==p[3])if(p[4]||"fork"!==p[3]){if("issues"!==p[3])return void a(u);v="open_issues_count",m="issues"}else v="forks_count",m="network/members";else v="subscribers_count",m="watchers";var y=p[2]?"/repos/"+p[1]+"/"+p[2]:"/users/"+p[1];w.call(this,"https://api.github.com"+y,(function(e,t){if(!e){var n=t[v];u.appendChild(r("a",{className:"social-count",href:t.html_url+"/"+m,rel:"noopener",target:"_blank","aria-label":n+" "+v.replace(/_count$/,"").replace("_"," ").slice(0,n<2?-1:void 0)+" on GitHub"},[(""+n).replace(/\B(?=(\d{3})+(?!\d))/g,",")]))}a(u)}))}else a(u)},E=window.devicePixelRatio||1,k=function(e){return(E>1?n.ceil(n.round(e*E)/E*2)/2:n.ceil(e))||0},x=function(e,t){e.style.width=t[0]+"px",e.style.height=t[1]+"px"},C=function(e,t){if(null!=e&&null!=t)if(e.getAttribute&&(e=function(e){for(var t={href:e.href,title:e.title,"aria-label":e.getAttribute("aria-label")},a=["icon","color-scheme","text","size","show-count"],r=0,n=a.length;r