Spotify.NET/index.html
2020-06-04 16:12:54 +02:00

29 lines
11 KiB
HTML

<!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">
<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="/img/favicon.ico"><link rel="stylesheet" href="/styles.8a053330.css">
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
<link rel="preload" href="/runtime~main.00679df5.js" as="script">
<link rel="preload" href="/main.5163b4fc.js" as="script">
<link rel="preload" href="/1.b01500b4.js" as="script">
<link rel="preload" href="/2.6eaf9d11.js" as="script">
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
<link rel="preload" href="/c4f5d8e4.de5d3f71.js" as="script">
</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">
<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="/"><img class="navbar__logo" src="/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="/docs/next/introduction">Latest/Next</a></li><li><a class="dropdown__link" href="/docs/home">5.1.1</a></li></ul></div><a class="navbar__item navbar__link" href="/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="/"><img class="navbar__logo" src="/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="/docs/next/introduction">Latest/Next</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/home">5.1.1</a></li></ul></li><li class="menu__list-item"><a class="menu__link" href="/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/v/SpotifyAPI.Web?label=SpotifyAPI.Web&amp;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/v/SpotifyAPI.Web.Auth?label=SpotifyAPI.Web.Auth&amp;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="/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 tabindex="0" class="prism-code language-csharp codeBlock_19pQ"><div class="codeBlockLines_2n9r" style="color:#bfc7d5;background-color:#292d3e"><div class="token-line" style="color:#bfc7d5"><span class="token plain">var spotify = new SpotifyClient(&quot;YourAccessToken&quot;);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain" style="display:inline-block">
</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($&quot;Hello there {me.DisplayName}&quot;);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain" style="display:inline-block">
</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:30px"><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 --version </span><span class="token number" style="color:rgb(247, 140, 108)">6.0</span><span class="token plain">.0-beta.1</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 --version </span><span class="token number" style="color:rgb(247, 140, 108)">6.0</span><span class="token plain">.0-beta.1</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="/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&#x27;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="/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="/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="/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="/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 © 2020 Jonas Dellinger. Built with Docusaurus.</div></div></div></footer></div>
<script src="/styles.b4c4f1e6.js"></script>
<script src="/runtime~main.00679df5.js"></script>
<script src="/main.5163b4fc.js"></script>
<script src="/1.b01500b4.js"></script>
<script src="/2.6eaf9d11.js"></script>
<script src="/3.6fe0d7f0.js"></script>
<script src="/c4f5d8e4.de5d3f71.js"></script>
</body>
</html>