"use strict";(self.webpackChunkspotify_api_docs=self.webpackChunkspotify_api_docs||[]).push([[6961],{3905:function(e,t,r){r.d(t,{Zo:function(){returns},kt:function(){returnm}});varn=r(7294);functiono(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functiona(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}returnr}functioni(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functionl(e,t){if(null==e)return{};varr,n,o=function(e,t){if(null==e)return{};varr,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);returno}(e,t);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}returno}varp=n.createContext({}),c=function(e){vart=n.useContext(p),r=t;returne&&(r="function"==typeofe?e(t):i(i({},t),e)),r},s=function(e){vart=c(e.components);returnn.createElement(p.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){vart=e.children;returnn.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){varr=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),d=c(r),m=o,f=d["".concat(p,".").concat(m)]||d[m]||u[m]||a;returnr?n.createElement(f,i(i({ref:t},s),{},{components:r})):n.createElement(f,i({ref:t},s))}));functionm(e,t){varr=arguments,o=t&&t.mdxType;if("string"==typeofe||o){vara=r.length,i=newArray(a);i[0]=d;varl={};for(varpint)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l.mdxType="string"==typeofe?e:o,i[1]=l;for(varc=2;c<a;c++)i[c]=r[c];returnn.createElement.apply(null,i)}returnn.createElement.apply(null,r)}d.displayName="MDXCreateElement"},3162:function(e,t,r){r.r(t),r.d(t,{assets:function(){returnu},contentTitle:function(){returnc},default:function(){returnf},frontMatter:function(){returnp},metadata:function(){returns},toc:function(){returnd}});varn=r(7462),o=r(3366),a=(r(7294),r(3905)),i=r(4996),l=["components"],p={id:"example_blazor",title:"Blazor ServerSide"},c=void0,s={unversionedId:"example_blazor",id:"example_blazor",title:"Blazor ServerSide",description:"Description",source:"@site/docs/example_blazor.md",sourceDirName:".",slug:"/example_blazor",permalink:"/SpotifyAPI-NET/docs/example_blazor",draft:!1,editUrl:"https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/example_blazor.md",tags:[],version:"current",lastUpdatedBy:"dependabot[bot]",lastUpdatedAt:1668767198,formattedLastUpdatedAt:"11/18/2022",frontMatter:{id:"example_blazor",title:"Blazor ServerSide"},sidebar:"docs",previous:{title:"Blazor WASM",permalink:"/SpotifyAPI-NET/docs/example_blazor_wasm"},next:{title:"CLI - Custom HTML",permalink:"/SpotifyAPI-NET/docs/example_cli_custom_html"}},u={},d=[{value:"Description",id:"description",level:2},{value:"Run it",id:"run-it",level:2}],m={toc:d};functionf(e){vart=e.components,r=(0,o.Z)(e,l);return(0,a.kt)("wrapper",(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h2",{id:"description"},"Description"),(0,a.kt)("p",null,"Very similar to the ",(0,a.kt)("a",{parentName:"p",href:"/SpotifyAPI-NET/docs/example_blazor_wasm"},"Blazor WASM Example"),", but runs code on the server side and pushes view updates to the client."),(0,a.kt)("img",{alt:"ASP Blazor Example - Home",src:(0,i.Z)("img/asp_blazor_example_home.png")}),(0,a.kt)("h2",{id:"run-it"},"Run it"),(0,a.kt)("p",null,"Before running it, make sure you created an app in your ",(0,a.kt)("a",{parentName:"p",href:"https://developer.spotify.com/dashboard/