Spotify.NET/assets/js/8.71b7ae91.js
2019-11-11 16:03:49 +00:00

1 line
3.0 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{188:function(t,e,r){"use strict";r.r(e);var o=r(0),i=Object(o.a)({},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"getting-started"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#getting-started","aria-hidden":"true"}},[t._v("#")]),t._v(" Getting Started")]),t._v(" "),r("h2",{attrs:{id:"auth-methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#auth-methods","aria-hidden":"true"}},[t._v("#")]),t._v(" Auth-Methods")]),t._v(" "),r("p",[t._v("Before you can use the Web API full functional, you need the user to authenticate your Application.\nIf you want to know more, you can read to the whole auth-process "),r("a",{attrs:{href:"https://developer.spotify.com/web-api/authorization-guide/",target:"_blank",rel:"noopener noreferrer"}},[t._v("here"),r("OutboundLink")],1),t._v(".")]),t._v(" "),r("p",[t._v("Before you start, install "),r("code",[t._v("SpotifyAPI.Web.Auth")]),t._v(" and create an application at Spotify: "),r("a",{attrs:{href:"https://developer.spotify.com/my-applications/#!/applications",target:"_blank",rel:"noopener noreferrer"}},[t._v("Your Applications"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("After you created your Application, you will have following important values:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[r("strong",[t._v("Client_Id")])]),t._v(" "),r("td",[t._v("This is your client_id, you don't have to hide it")])]),t._v(" "),r("tr",[r("td",[r("strong",[t._v("Client_Secret")])]),t._v(" "),r("td",[t._v("Never use this in one of your client-side apps! Keep it secret!")])]),t._v(" "),r("tr",[r("td",[r("strong",[t._v("Redirect URIs")])]),t._v(" "),r("td",[t._v("Some of auth flows require that you set the correct redirect URI")])])])]),t._v(" "),r("p",[t._v("Now you can start with the user-authentication, Spotify provides 3 ways (4 if you consider different implementations):")]),t._v(" "),r("ul",[r("li",[r("p",[r("router-link",{attrs:{to:"/auth/implicit_grant.html"}},[t._v("ImplicitGrantAuth")])],1)]),t._v(" "),r("li",[r("p",[r("router-link",{attrs:{to:"/auth/token_swap.html"}},[t._v("TokenSwapAuth")]),t._v(" ("),r("strong",[t._v("Recommended")]),t._v(", server-side code mandatory, most secure method. The necessary code is shown here so you do not have to code it yourself.)")],1)]),t._v(" "),r("li",[r("p",[r("router-link",{attrs:{to:"/auth/authorization_code.html"}},[t._v("AutorizationCodeAuth")]),t._v(" (Not recommended, server-side code needed, else it's unsecure)")],1)]),t._v(" "),r("li",[r("p",[r("router-link",{attrs:{to:"/auth/client_credentials.html"}},[t._v("ClientCredentialsAuth")]),t._v(" (Not recommended, server-side code needed, else it's unsecure)")],1)])]),t._v(" "),r("p",[t._v("Overview:\n"),r("img",{attrs:{src:"http://i.imgur.com/uf3ahTl.png",alt:"Overview"}})])])},[],!1,null,null,null);e.default=i.exports}}]);