2020-06-04 15:12:54 +01:00
<!doctype html>
< html lang = "en" >
< head >
< meta charset = "UTF-8" >
< meta name = "viewport" content = "width=device-width" >
< meta name = "generator" content = "Docusaurus v2.0.0-alpha.56" >
2020-06-04 15:22:07 +01:00
< title data-react-helmet = "true" > SpotifyAPI-NET | SpotifyAPI-NET< / title > < meta data-react-helmet = "true" property = "og:title" content = "SpotifyAPI-NET | SpotifyAPI-NET" > < meta data-react-helmet = "true" name = "description" content = "Documentation for the C# .NET SpotifyAPI-NET Library" > < meta data-react-helmet = "true" property = "og:description" content = "Documentation for the C# .NET SpotifyAPI-NET Library" > < meta data-react-helmet = "true" name = "twitter:card" content = "summary_large_image" > < link data-react-helmet = "true" rel = "shortcut icon" href = "/SpotifyAPI-NET/img/favicon.ico" > < link rel = "stylesheet" href = "/SpotifyAPI-NET/styles.8a053330.css" >
2020-11-14 12:20:42 +00:00
< link rel = "preload" href = "/SpotifyAPI-NET/styles.20e5fb07.js" as = "script" >
2021-02-26 23:50:45 +00:00
< link rel = "preload" href = "/SpotifyAPI-NET/runtime~main.87983b48.js" as = "script" >
2021-01-11 08:14:32 +00:00
< link rel = "preload" href = "/SpotifyAPI-NET/main.b4c50bf9.js" as = "script" >
2020-11-14 12:20:42 +00:00
< link rel = "preload" href = "/SpotifyAPI-NET/1.d763968b.js" as = "script" >
< link rel = "preload" href = "/SpotifyAPI-NET/2.c001a4a7.js" as = "script" >
< link rel = "preload" href = "/SpotifyAPI-NET/3.c31fd0fb.js" as = "script" >
2020-11-14 13:13:47 +00:00
< link rel = "preload" href = "/SpotifyAPI-NET/c4f5d8e4.993db86e.js" as = "script" >
2020-06-04 15:12:54 +01:00
< / head >
< body >
< script > ! function ( ) { function t ( t ) { document . documentElement . setAttribute ( "data-theme" , t ) } var e = window . matchMedia ( "(prefers-color-scheme: dark)" ) , n = function ( ) { var t = null ; try { t = localStorage . getItem ( "theme" ) } catch ( t ) { } return t } ( ) ; null !== n ? t ( n ) : e . matches && t ( "dark" ) } ( ) < / script > < div id = "__docusaurus" >
2020-06-04 21:11:30 +01:00
< nav class = "navbar navbar--light navbar--fixed-top" > < div class = "navbar__inner" > < div class = "navbar__items" > < div aria-label = "Navigation bar toggle" class = "navbar__toggle" role = "button" tabindex = "0" > < svg xmlns = "http://www.w3.org/2000/svg" width = "30" height = "30" viewBox = "0 0 30 30" role = "img" focusable = "false" > < title > Menu< / title > < path stroke = "currentColor" stroke-linecap = "round" stroke-miterlimit = "10" stroke-width = "2" d = "M4 7h22M4 15h22M4 23h22" > < / path > < / svg > < / div > < a class = "navbar__brand" href = "/SpotifyAPI-NET/" > < img class = "navbar__logo" src = "/SpotifyAPI-NET/img/logo.svg" alt = "SpotifyAPI-NET" > < strong class = "navbar__title" > SpotifyAPI-NET< / strong > < / a > < div class = "navbar__item dropdown dropdown--hoverable dropdown--left" > < a activeclassname = "navbar__link--active" class = "navbar__item navbar__link" > Docs< / a > < ul class = "dropdown__menu" > < li > < a class = "dropdown__link" href = "/SpotifyAPI-NET/docs/next/introduction" > Latest/Next< / a > < / li > < li > < a class = "dropdown__link" href = "/SpotifyAPI-NET/docs/home" > 5.1.1< / a > < / li > < / ul > < / div > < a class = "navbar__item navbar__link" href = "/SpotifyAPI-NET/news" > News< / a > < / div > < div class = "navbar__items navbar__items--right" > < a href = "https://github.com/JohnnyCrazy/SpotifyAPI-NET" target = "_blank" rel = "noopener noreferrer" class = "navbar__item navbar__link" > GitHub< / a > < div class = "react-toggle react-toggle--disabled displayOnlyInLargeViewport_1gtM" > < div class = "react-toggle-track" > < div class = "react-toggle-track-check" > < span class = "toggle_keGJ moon_1gwN" > < / span > < / div > < div class = "react-toggle-track-x" > < span class = "toggle_keGJ sun_3CPA" > < / span > < / div > < / div > < div class = "react-toggle-thumb" > < / div > < input type = "checkbox" disabled = "" aria-label = "Dark mode toggle" class = "react-toggle-screenreader-only" > < / div > < / div > < / div > < div role = "presentation" class = "navbar-sidebar__backdrop" > < / div > < div class = "navbar-sidebar" > < div class = "navbar-sidebar__brand" > < a class = "navbar__brand" href = "/SpotifyAPI-NET/" > < img class = "navbar__logo" src = "/SpotifyAPI-NET/img/logo.svg" alt = "SpotifyAPI-NET" > < strong class = "navbar__title" > SpotifyAPI-NET< / strong > < / a > < / div > < div class = "navbar-sidebar__items" > < div class = "menu" > < ul class = "menu__list" > < li class = "menu__list-item" > < a activeclassname = "navbar__link--active" class = "menu__link menu__link--sublist" > Docs< / a > < ul class = "menu__list" > < li class = "menu__list-item" > < a class = "menu__link" href = "/SpotifyAPI-NET/docs/next/introduction" > Latest/Next< / a > < / li > < li class = "menu__list-item" > < a class = "menu__link" href = "/SpotifyAPI-NET/docs/home" > 5.1.1< / a > < / li > < / ul > < / li > < li class = "menu__list-item" > < a class = "menu__link" href = "/SpotifyAPI-NET/news" > News< / a > < / li > < li class = "menu__list-item" > < a href = "https://github.com/JohnnyCrazy/SpotifyAPI-NET" target = "_blank" rel = "noopener noreferrer" class = "menu__link" > GitHub< / a > < / li > < / ul > < / div > < / div > < / div > < / nav > < div class = "main-wrapper" > < header class = "hero hero--primary heroBanner_2Ftp" > < div class = "container" > < div class = "row" > < div class = "col col--5" > < img src = "img/logo.svg" width = "120" height = "120" > < h1 class = "hero__title" > SpotifyAPI-NET< span style = "margin-left:50px" > < / span > < span > < a 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< / a > < / span > < br > < a href = "https://www.nuget.org/packages/SpotifyAPI.Web/" rel = "noopener noreferrer" > < img alt = "Nuget" src = "https://img.shields.io/nuget/vpre/SpotifyAPI.Web?label=SpotifyAPI.Web&style=flat-square" > < / a > < a href = "https://www.nuget.org/packages/SpotifyAPI.Web.Auth/" rel = "noopener noreferrer" > < img alt = "Nuget" src = "https://img.shields.io/nuget/vpre/SpotifyAPI.Web.Auth?label=SpotifyAPI.Web.Auth&style=flat-square" > < / a > < / h1 > < p class = "hero__subtitle" > 🔊 A Client for the Spotify Web API, written in C#/.NET< / p > < div class = "buttons_1Wc3" > < a class = "button button--outline button--secondary button--lg" href = "/SpotifyAPI-NET/docs/next/introduction" > Get Started< / a > < / div > < / div > < div class = "col col--7 exampleCode_3Dzy" > < div class = "codeBlockContent_32p_" > < button type = "button" aria-label = "Copy code to clipboard" class = "copyButton_1BYj" > Copy< / button > < div t
2020-06-04 15:12:54 +01:00
< / span > < / div > < div class = "token-line" style = "color:#bfc7d5" > < span class = "token plain" > var me = await spotify.UserProfile.Current();< / span > < / div > < div class = "token-line" style = "color:#bfc7d5" > < span class = "token plain" > Console.WriteLine($" Hello there {me.DisplayName}" );< / span > < / div > < div class = "token-line" style = "color:#bfc7d5" > < span class = "token plain" style = "display:inline-block" >
2021-01-11 08:14:32 +00:00
< / span > < / div > < div class = "token-line" style = "color:#bfc7d5" > < span class = "token plain" > await foreach(< / span > < / div > < div class = "token-line" style = "color:#bfc7d5" > < span class = "token plain" > var playlist in spotify.Paginate(spotify.Playlists.CurrentUsers())< / span > < / div > < div class = "token-line" style = "color:#bfc7d5" > < span class = "token plain" > )< / span > < / div > < div class = "token-line" style = "color:#bfc7d5" > < span class = "token plain" > {< / span > < / div > < div class = "token-line" style = "color:#bfc7d5" > < span class = "token plain" > Console.WriteLine(playlist.Name);< / span > < / div > < div class = "token-line" style = "color:#bfc7d5" > < span class = "token plain" > }< / span > < / div > < / div > < / div > < / div > < / div > < / div > < / div > < / header > < main > < div class = "container" > < h2 style = "text-align:center;margin-top:30px" > Try it out now< / h2 > < div style = "padding:10px" > < div > < ul role = "tablist" aria-orientation = "horizontal" class = "tabs" > < li role = "tab" tabindex = "0" aria-selected = "true" class = "tabs__item tabItem_3zTA tabs__item--active" > .NET CLI< / li > < li role = "tab" tabindex = "0" aria-selected = "false" class = "tabs__item tabItem_3zTA" > Package Manager< / li > < li role = "tab" tabindex = "0" aria-selected = "false" class = "tabs__item tabItem_3zTA" > Package Reference< / li > < / ul > < div role = "tabpanel" class = "margin-vert--md" > < div > < div class = "codeBlockContent_32p_" > < button type = "button" aria-label = "Copy code to clipboard" class = "copyButton_1BYj" > Copy< / button > < div tabindex = "0" class = "prism-code language-shell codeBlock_19pQ" > < div class = "codeBlockLines_2n9r" style = "color:#bfc7d5;background-color:#292d3e" > < div class = "token-line" style = "color:#bfc7d5" > < span class = "token plain" > dotnet < / span > < span class = "token function" style = "color:rgb(130, 170, 255)" > add< / span > < span class = "token plain" > package SpotifyAPI.Web< / span > < / div > < div class = "token-line" style = "color:#bfc7d5" > < span class = "token plain" > < / span > < span class = "token comment" style = "color:rgb(105, 112, 152);font-style:italic" > # Optional Auth module, which includes an embedded HTTP Server for OAuth2< / span > < span class = "token plain" > < / span > < / div > < div class = "token-line" style = "color:#bfc7d5" > < span class = "token plain" > dotnet < / span > < span class = "token function" style = "color:rgb(130, 170, 255)" > add< / span > < span class = "token plain" > package SpotifyAPI.Web.Auth< / span > < / div > < / div > < / div > < / div > < / div > < / div > < / div > < / div > < / div > < section class = "features_P2SU" > < div class = "container" > < div class = "row" > < div class = "col col--4" > < div class = "text--center" > < img class = "featureImage_3Xqx" src = "/SpotifyAPI-NET/img/undraw_preferences_uuo2.svg" alt = "[object Object]" > < / div > < h3 > Sane Defaults - Easy To Configure< / h3 > < p > < code > SpotifyAPI-NET< / code > 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.< / p > < / div > < div class = "col col--4" > < div class = "text--center" > < img class = "featureImage_3Xqx" src = "/SpotifyAPI-NET/img/undraw_project_completed_w0oq.svg" alt = "[object Object]" > < / div > < h3 > All API Calls Integrated< / h3 > < p > The Spotify Web API consists of over 74 API calls. < code > SpotifyAPI-NET< / code > provides fully typed requests/responses for all of them.< / p > < / div > < div class = "col col--4" > < div class = "text--center" > < img class = "featureImage_3Xqx" src = "/SpotifyAPI-NET/img/undraw_Devices_e67q.svg" alt = "[object Object]" > < / div > < h3 > .NET Standard 2.X< / h3 > < p > With the support of .NET Standard 2.X, < code > SpotifyAPI-NET< / code > runs on many platforms, including .NET Core, UWP and Xamarin.Forms (Windows, Android, iOS and Mac)< / p > < / div > < div class = "col col--4" > < div class = "text--center" > < img class = "featureImage_3Xqx" src = "/SpotifyAPI-NET/img/undraw_QA_engineers_dg5p.svg" alt = "[object Object]" > < / div > < h3 > Testable< / h3 > < p > < code > SpotifyAPI-NET< / code > is built on a modular structure, which allows easy testing through mocks and stubs. Learn more by visiting the < a href = "/SpotifyAPI-NET/docs/next/testing" > Testing Guide< / a > < / p > < / div > < / div > < / div > < / section > < / main > < / div > < footer class = "footer footer--dark" > < div class = "container" > < div class = "text--center" > < div > Copyright © 2021 Jonas Dellinger. Built with Docus
2020-11-14 12:20:42 +00:00
< script src = "/SpotifyAPI-NET/styles.20e5fb07.js" > < / script >
2021-02-26 23:50:45 +00:00
< script src = "/SpotifyAPI-NET/runtime~main.87983b48.js" > < / script >
2021-01-11 08:14:32 +00:00
< script src = "/SpotifyAPI-NET/main.b4c50bf9.js" > < / script >
2020-11-14 12:20:42 +00:00
< script src = "/SpotifyAPI-NET/1.d763968b.js" > < / script >
< script src = "/SpotifyAPI-NET/2.c001a4a7.js" > < / script >
< script src = "/SpotifyAPI-NET/3.c31fd0fb.js" > < / script >
2020-11-14 13:13:47 +00:00
< script src = "/SpotifyAPI-NET/c4f5d8e4.993db86e.js" > < / script >
2020-06-04 15:12:54 +01:00
< / body >
< / html >