(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{182:function(e,t,r){"use strict";r.r(t),r.d(t,"frontMatter",(function(){returnl})),r.d(t,"metadata",(function(){returni})),r.d(t,"rightToc",(function(){returnc})),r.d(t,"default",(function(){returnp}));varn=r(2),a=r(9),o=(r(0),r(186)),l={id:"profiles",title:"Profiles",sidebar_label:"Profiles"},i={id:"version-5.1.1/web/profiles",title:"Profiles",description:"GetPrivateProfile",source:"@site/versioned_docs/version-5.1.1/web/profiles.md",permalink:"/SpotifyAPI-NET/docs/web/profiles",editUrl:"https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/web/profiles.md",version:"5.1.1",lastUpdatedBy:"Jonas Dellinger",lastUpdatedAt:1592333404,sidebar_label:"Profiles",sidebar:"version-5.1.1/someSidebar",previous:{title:"Playlists",permalink:"/SpotifyAPI-NET/docs/web/playlists"},next:{title:"Proxy Settings",permalink:"/SpotifyAPI-NET/docs/web/proxy"}},c=[{value:"GetPrivateProfile",id:"getprivateprofile",children:[]},{value:"GetPublicProfile",id:"getpublicprofile",children:[]}],b={rightToc:c};functionp(e){vart=e.components,r=Object(a.a)(e,["components"]);returnObject(o.b)("wrapper",Object(n.a)({},b,r,{components:t,mdxType:"MDXLayout"}),Object(o.b)("h2",{id:"getprivateprofile"},"GetPrivateProfile"),Object(o.b)("blockquote",null,Object(o.b)("p",{parentName:"blockquote"},"Get detailed profile information about the current user (including the current user\u2019s username).")),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Parameters")),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Name"),Object(o.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Description"),Object(o.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Example"))),Object(o.b)("tbody",{parentName:"table"})),Object(o.b)("p",null,"Returns a ",Object(o.b)("a",Object(n.a)({parentName:"p"},{href:"https://developer.spotify.com/web-api/object-model/#user-object-private"}),"PrivateProfile")),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Usage")),Object(o.b)("pre",null,Object(o.b)("code",Object(n.a)({parentName:"pre"},{className:"language-csharp"}),"PrivateUser user = _spotify.GetPrivateProfile();\nConsole.WriteLine(user.DisplayName);\n")),Object(o.b)("hr",null),Object(o.b)("h2",{id:"getpublicprofile"},"GetPublicProfile"),Object(o.b)("blockquote",null,Object(o.b)("p",{parentName:"blockquote"},"Get public profile information about a Spotify user.")),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Parameters")),Object(o.b)("table",null,Object(o.b)("thead",{parentName:"table"},Object(o.b)("tr",{parentName:"thead"},Object(o.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Name"),Object(o.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Description"),Object(o.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Example"))),Object(o.b)("tbody",{parentName:"table"},Object(o.b)("tr",{parentName:"tbody"},Object(o.b)("td",Object(n.a)({parentName:"tr"},{align:null}),"userId"),Object(o.b)("td",Object(n.a)({parentName:"tr"},{align:null}),"The user's Spotify user ID."),Object(o.b)("td",Object(n.a)({parentName:"tr"},{align:null}),"EXAMPLE")))),Object(o.b)("p",null,"Returns a ",Object(o.b)("a",Object(n.a)({parentName:"p"},{href:"https://developer.spotify.com/web-api/object-model/#user-object-public"}),"PublicProfile")),Object(o.b)("p",null,Object(o.b)("strong",{parentName:"p"},"Usage")),Object(o.b)("pre",null,Object(o.b)("code",Object(n.a)({parentName:"pre"},{className:"language-csharp"}),"")),Object(o.b)("hr",null))}p.isMDXComponent=!0},186:function(e,t,r){"use strict";r.d(t,"a",(function(){returnu})),r.d(t,"b",(function(){returnO}));varn=r(0),a=r.n(n);functiono(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functionl(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){returnObj