mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 22:56:25 +00:00
Deploy website - based on e50e8be12e
This commit is contained in:
parent
5f07598fb8
commit
2fa4d4b0e5
4
404.html
4
404.html
@ -7,13 +7,13 @@
|
|||||||
<title data-react-helmet="true">Page Not Found | SpotifyAPI-NET</title><meta data-react-helmet="true" property="og:title" content="Page Not Found | SpotifyAPI-NET"><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">
|
<title data-react-helmet="true">Page Not Found | SpotifyAPI-NET</title><meta data-react-helmet="true" property="og:title" content="Page Not Found | SpotifyAPI-NET"><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="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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">
|
<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"><div class="container margin-vert--xl"><div class="row"><div class="col col--6 col--offset-3"><h1 class="hero__title">Page Not Found</h1><p>We could not find what you were looking for.</p><p>Please contact the owner of the site that linked you to the original URL and let them know their link is broken.</p></div></div></div></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>
|
<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"><div class="container margin-vert--xl"><div class="row"><div class="col col--6 col--offset-3"><h1 class="hero__title">Page Not Found</h1><p>We could not find what you were looking for.</p><p>Please contact the owner of the site that linked you to the original URL and let them know their link is broken.</p></div></div></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Authorization Code | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Authorization Code | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="This way is not recommended for client-side apps and requires server-side code to run securely."><meta data-react-helmet="true" property="og:description" content="This way is not recommended for client-side apps and requires server-side code to run securely."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/auth/authorization_code"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/auth/authorization_code"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Authorization Code | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Authorization Code | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="This way is not recommended for client-side apps and requires server-side code to run securely."><meta data-react-helmet="true" property="og:description" content="This way is not recommended for client-side apps and requires server-side code to run securely."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/auth/authorization_code"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/auth/authorization_code"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -26,7 +26,7 @@ In this procedure, no HTTP Server is needed in the background and a single HTTP
|
|||||||
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">if(token.IsExpired())</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"> Token newToken = await auth.RefreshToken(token.RefreshToken);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> api.AccessToken = newToken.AccessToken</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> api.TokenType = newToken.TokenType</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/auth/authorization_code.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/auth/implicit_grant"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Implicit Grant</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/auth/client_credentials"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Client Credentials »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#token-refresh" class="table-of-contents__link">Token Refresh</a></li></ul></div></div></div></div></main></div></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>
|
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">if(token.IsExpired())</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"> Token newToken = await auth.RefreshToken(token.RefreshToken);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> api.AccessToken = newToken.AccessToken</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> api.TokenType = newToken.TokenType</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/auth/authorization_code.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/auth/implicit_grant"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Implicit Grant</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/auth/client_credentials"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Client Credentials »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#token-refresh" class="table-of-contents__link">Token Refresh</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Client Credentials | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Client Credentials | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="With this approach, you make a POST Request with a base64 encoded string (consists of ClientId + ClientSecret). You will directly get the token (Without a local HTTP Server), but it will expire and can't be refreshed."><meta data-react-helmet="true" property="og:description" content="With this approach, you make a POST Request with a base64 encoded string (consists of ClientId + ClientSecret). You will directly get the token (Without a local HTTP Server), but it will expire and can't be refreshed."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/auth/client_credentials"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/auth/client_credentials"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Client Credentials | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Client Credentials | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="With this approach, you make a POST Request with a base64 encoded string (consists of ClientId + ClientSecret). You will directly get the token (Without a local HTTP Server), but it will expire and can't be refreshed."><meta data-react-helmet="true" property="og:description" content="With this approach, you make a POST Request with a base64 encoded string (consists of ClientId + ClientSecret). You will directly get the token (Without a local HTTP Server), but it will expire and can't be refreshed."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/auth/client_credentials"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/auth/client_credentials"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -22,7 +22,7 @@ If you want to use it securely, you would need to do it all server-side.
|
|||||||
<strong>NOTE:</strong> You will only be able to query non-user-related information e.g search for a Track.</p><p>More info: <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/#client-credentials-flow" target="_blank" rel="noopener noreferrer">here</a></p><div class="mdxCodeBlock_iHAB"><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">CredentialsAuth auth = new CredentialsAuth(_clientId, _secretId);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Token token = await auth.GetToken();</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">SpotifyWebAPI api = new SpotifyWebAPI()</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"> TokenType = token.TokenType,</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> AccessToken = token.AccessToken</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">};</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/auth/client_credentials.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/auth/authorization_code"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Authorization Code</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/auth/token_swap"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Token Swap »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"></div></div></div></div></main></div></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>
|
<strong>NOTE:</strong> You will only be able to query non-user-related information e.g search for a Track.</p><p>More info: <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/#client-credentials-flow" target="_blank" rel="noopener noreferrer">here</a></p><div class="mdxCodeBlock_iHAB"><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">CredentialsAuth auth = new CredentialsAuth(_clientId, _secretId);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Token token = await auth.GetToken();</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">SpotifyWebAPI api = new SpotifyWebAPI()</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"> TokenType = token.TokenType,</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> AccessToken = token.AccessToken</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">};</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/auth/client_credentials.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/auth/authorization_code"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Authorization Code</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/auth/token_swap"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Token Swap »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Getting Started | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Getting Started | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Auth-Methods"><meta data-react-helmet="true" property="og:description" content="Auth-Methods"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/auth/getting_started"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/auth/getting_started"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Getting Started | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Getting Started | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Auth-Methods"><meta data-react-helmet="true" property="og:description" content="Auth-Methods"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/auth/getting_started"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/auth/getting_started"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -22,7 +22,7 @@ If you want to know more, you can read to the whole auth-process <a href="https:
|
|||||||
<img src="http://i.imgur.com/uf3ahTl.png" alt="Overview"></p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/auth/getting_started.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/web/utilities"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Utilities</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/auth/implicit_grant"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Implicit Grant »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#auth-methods" class="table-of-contents__link">Auth-Methods</a></li></ul></div></div></div></div></main></div></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>
|
<img src="http://i.imgur.com/uf3ahTl.png" alt="Overview"></p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/auth/getting_started.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/web/utilities"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Utilities</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/auth/implicit_grant"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Implicit Grant »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#auth-methods" class="table-of-contents__link">Auth-Methods</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Implicit Grant | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Implicit Grant | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="This way is recommended and the only auth-process which does not need a server-side exchange of keys. With this approach, you directly get a Token object after the user authed your application."><meta data-react-helmet="true" property="og:description" content="This way is recommended and the only auth-process which does not need a server-side exchange of keys. With this approach, you directly get a Token object after the user authed your application."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/auth/implicit_grant"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/auth/implicit_grant"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Implicit Grant | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Implicit Grant | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="This way is recommended and the only auth-process which does not need a server-side exchange of keys. With this approach, you directly get a Token object after the user authed your application."><meta data-react-helmet="true" property="og:description" content="This way is recommended and the only auth-process which does not need a server-side exchange of keys. With this approach, you directly get a Token object after the user authed your application."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/auth/implicit_grant"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/auth/implicit_grant"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -21,7 +21,7 @@
|
|||||||
You won't be able to refresh the token. If you want to use the internal Http server, please add "http://localhost:YOURPORT" to your application redirect URIs.</p><p>More info: <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/#implicit-grant-flow" target="_blank" rel="noopener noreferrer">here</a></p><div class="mdxCodeBlock_iHAB"><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">static async void Main(string[] args)</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"> ImplicitGrantAuth auth = new ImplicitGrantAuth(</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> _clientId,</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> "http://localhost:4002",</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> "http://localhost:4002",</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> Scope.UserReadPrivate</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"> auth.AuthReceived += async (sender, payload) =></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"> auth.Stop(); // `sender` is also the auth instance</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> SpotifyWebAPI api = new SpotifyWebAPI()</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"> TokenType = payload.TokenType,</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> AccessToken = payload.AccessToken</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"> // Do requests with API client</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"> auth.Start(); // Starts an internal HTTP Server</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> auth.OpenBrowser();</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/auth/implicit_grant.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/auth/getting_started"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Getting Started</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/auth/authorization_code"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Authorization Code »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"></div></div></div></div></main></div></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>
|
You won't be able to refresh the token. If you want to use the internal Http server, please add "http://localhost:YOURPORT" to your application redirect URIs.</p><p>More info: <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/#implicit-grant-flow" target="_blank" rel="noopener noreferrer">here</a></p><div class="mdxCodeBlock_iHAB"><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">static async void Main(string[] args)</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"> ImplicitGrantAuth auth = new ImplicitGrantAuth(</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> _clientId,</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> "http://localhost:4002",</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> "http://localhost:4002",</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> Scope.UserReadPrivate</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"> auth.AuthReceived += async (sender, payload) =></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"> auth.Stop(); // `sender` is also the auth instance</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> SpotifyWebAPI api = new SpotifyWebAPI()</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"> TokenType = payload.TokenType,</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> AccessToken = payload.AccessToken</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"> // Do requests with API client</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"> auth.Start(); // Starts an internal HTTP Server</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> auth.OpenBrowser();</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/auth/implicit_grant.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/auth/getting_started"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Getting Started</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/auth/authorization_code"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Authorization Code »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Authorization Code | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Authorization Code | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="This flow is suitable for long-running applications in which the user grants permission only once. It provides an access token that can be refreshed. Since the token exchange involves sending your secret key, perform this on a secure location, like a backend service, and not from a client such as a browser or from a mobile app."><meta data-react-helmet="true" property="og:description" content="This flow is suitable for long-running applications in which the user grants permission only once. It provides an access token that can be refreshed. Since the token exchange involves sending your secret key, perform this on a secure location, like a backend service, and not from a client such as a browser or from a mobile app."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/authorization_code"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/authorization_code"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Authorization Code | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Authorization Code | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="This flow is suitable for long-running applications in which the user grants permission only once. It provides an access token that can be refreshed. Since the token exchange involves sending your secret key, perform this on a secure location, like a backend service, and not from a client such as a browser or from a mobile app."><meta data-react-helmet="true" property="og:description" content="This flow is suitable for long-running applications in which the user grants permission only once. It provides an access token that can be refreshed. Since the token exchange involves sending your secret key, perform this on a secure location, like a backend service, and not from a client such as a browser or from a mobile app."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/authorization_code"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/authorization_code"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -29,7 +29,7 @@
|
|||||||
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> var spotify = new SpotifyClient(tokenResponse.AccessToken);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> // do calls with spotify and save token?</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div><p>For real examples, have a look at <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.CLI.PersistentConfig">Example.CLI.PersistentConfig</a> and <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.CLI.CustomHTML">Example.CLI.CustomHTML</a></p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/authorization_code.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-04T12:42:16.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/implicit_grant"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Implicit Grant</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/token_swap"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Token Swap »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#existing-web-server" class="table-of-contents__link">Existing Web-Server</a></li><li><a href="#using-spotifywebauth" class="table-of-contents__link">Using Spotify.Web.Auth</a></li></ul></div></div></div></div></main></div></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>
|
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> var spotify = new SpotifyClient(tokenResponse.AccessToken);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> // do calls with spotify and save token?</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div><p>For real examples, have a look at <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.CLI.PersistentConfig">Example.CLI.PersistentConfig</a> and <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.CLI.CustomHTML">Example.CLI.CustomHTML</a></p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/authorization_code.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-04T12:42:16.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/implicit_grant"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Implicit Grant</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/token_swap"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Token Swap »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#existing-web-server" class="table-of-contents__link">Existing Web-Server</a></li><li><a href="#using-spotifywebauth" class="table-of-contents__link">Using Spotify.Web.Auth</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Client Credentials | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Client Credentials | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="The Client Credentials flow is used in server-to-server authentication."><meta data-react-helmet="true" property="og:description" content="The Client Credentials flow is used in server-to-server authentication."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/client_credentials"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/client_credentials"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Client Credentials | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Client Credentials | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="The Client Credentials flow is used in server-to-server authentication."><meta data-react-helmet="true" property="og:description" content="The Client Credentials flow is used in server-to-server authentication."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/client_credentials"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/client_credentials"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -24,7 +24,7 @@ Only endpoints that do not access user information can be accessed.</p></blockqu
|
|||||||
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> var spotify = new SpotifyClient(config);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div><div class="admonition admonition-info alert alert--info"><div class="admonition-heading"><h5><span class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>info</h5></div><div class="admonition-content"><p>There is no thread safety guaranteed when using <code>CredentialsAuthenticator</code>.</p></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/client_credentials.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T21:57:28.000Z" class="docLastUpdatedAt_1sqk">6/3/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/auth_introduction"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Introduction</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/implicit_grant"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Implicit Grant »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#request-token-once" class="table-of-contents__link">Request token once</a></li><li><a href="#request-token-on-demand" class="table-of-contents__link">Request Token On-Demand</a></li></ul></div></div></div></div></main></div></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>
|
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> var spotify = new SpotifyClient(config);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div><div class="admonition admonition-info alert alert--info"><div class="admonition-heading"><h5><span class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>info</h5></div><div class="admonition-content"><p>There is no thread safety guaranteed when using <code>CredentialsAuthenticator</code>.</p></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/client_credentials.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T21:57:28.000Z" class="docLastUpdatedAt_1sqk">6/3/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/auth_introduction"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Introduction</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/implicit_grant"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Implicit Grant »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#request-token-once" class="table-of-contents__link">Request token once</a></li><li><a href="#request-token-on-demand" class="table-of-contents__link">Request Token On-Demand</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Configuration | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Configuration | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="To configure the spotify client functionality, the SpotifyClientConfig class exists."><meta data-react-helmet="true" property="og:description" content="To configure the spotify client functionality, the SpotifyClientConfig class exists."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/configuration"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/configuration"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Configuration | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Configuration | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="To configure the spotify client functionality, the SpotifyClientConfig class exists."><meta data-react-helmet="true" property="og:description" content="To configure the spotify client functionality, the SpotifyClientConfig class exists."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/configuration"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/configuration"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -23,7 +23,7 @@
|
|||||||
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">public HttpResult Get()</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"> var config = DefaultConfig.WithToken("YourAccessToken");</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> var spotify = new SpotifyClient(config);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div><p>This way, a single <code>HTTPClient</code> will be used. For a real example, checkout the <a href="/docs/next/example_asp">ASP.NET Example</a></p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/configuration.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-04T13:24:13.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/error_handling"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Error Handling</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/logging"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Logging »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#httpclient-notes" class="table-of-contents__link">HTTPClient Notes</a></li></ul></div></div></div></div></main></div></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>
|
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">public HttpResult Get()</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"> var config = DefaultConfig.WithToken("YourAccessToken");</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> var spotify = new SpotifyClient(config);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div><p>This way, a single <code>HTTPClient</code> will be used. For a real example, checkout the <a href="/docs/next/example_asp">ASP.NET Example</a></p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/configuration.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-04T13:24:13.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/error_handling"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Error Handling</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/logging"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Logging »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#httpclient-notes" class="table-of-contents__link">HTTPClient Notes</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">ASP.NET | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="ASP.NET | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Description"><meta data-react-helmet="true" property="og:description" content="Description"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/example_asp"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/example_asp"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">ASP.NET | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="ASP.NET | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Description"><meta data-react-helmet="true" property="og:description" content="Description"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/example_asp"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/example_asp"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -23,7 +23,7 @@
|
|||||||
</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"># Visit https://localhost:5001</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/example_asp.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-04T13:24:13.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/showcase"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Showcase</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/example_blazor_wasm"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Blazor WASM »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#description" class="table-of-contents__link">Description</a></li><li><a href="#run-it" class="table-of-contents__link">Run it</a></li></ul></div></div></div></div></main></div></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>
|
</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"># Visit https://localhost:5001</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/example_asp.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-04T13:24:13.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/showcase"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Showcase</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/example_blazor_wasm"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Blazor WASM »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#description" class="table-of-contents__link">Description</a></li><li><a href="#run-it" class="table-of-contents__link">Run it</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Blazor ServerSide | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Blazor ServerSide | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Description"><meta data-react-helmet="true" property="og:description" content="Description"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/example_blazor"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/example_blazor"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Blazor ServerSide | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Blazor ServerSide | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Description"><meta data-react-helmet="true" property="og:description" content="Description"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/example_blazor"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/example_blazor"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -22,7 +22,7 @@
|
|||||||
</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"># Visit https://localhost:5001</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/example_blazor.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-04T13:24:13.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/example_blazor_wasm"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Blazor WASM</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/example_cli_custom_html"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">CLI - Custom HTML »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#description" class="table-of-contents__link">Description</a></li><li><a href="#run-it" class="table-of-contents__link">Run it</a></li></ul></div></div></div></div></main></div></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>
|
</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"># Visit https://localhost:5001</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/example_blazor.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-04T13:24:13.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/example_blazor_wasm"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Blazor WASM</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/example_cli_custom_html"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">CLI - Custom HTML »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#description" class="table-of-contents__link">Description</a></li><li><a href="#run-it" class="table-of-contents__link">Run it</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Blazor WASM | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Blazor WASM | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Description"><meta data-react-helmet="true" property="og:description" content="Description"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/example_blazor_wasm"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/example_blazor_wasm"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Blazor WASM | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Blazor WASM | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Description"><meta data-react-helmet="true" property="og:description" content="Description"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/example_blazor_wasm"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/example_blazor_wasm"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -22,7 +22,7 @@
|
|||||||
</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"># Visit https://localhost:5001</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/example_blazor_wasm.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-04T13:24:13.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/example_asp"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« ASP.NET</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/example_blazor"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Blazor ServerSide »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#description" class="table-of-contents__link">Description</a></li><li><a href="#run-it" class="table-of-contents__link">Run it</a></li></ul></div></div></div></div></main></div></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>
|
</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"># Visit https://localhost:5001</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/example_blazor_wasm.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-04T13:24:13.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/example_asp"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« ASP.NET</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/example_blazor"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Blazor ServerSide »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#description" class="table-of-contents__link">Description</a></li><li><a href="#run-it" class="table-of-contents__link">Run it</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Getting Started | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Getting Started | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Adding SpotifyAPI-NET to your project"><meta data-react-helmet="true" property="og:description" content="Adding SpotifyAPI-NET to your project"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/getting_started"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/getting_started"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Getting Started | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Getting Started | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Adding SpotifyAPI-NET to your project"><meta data-react-helmet="true" property="og:description" content="Adding SpotifyAPI-NET to your project"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/getting_started"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/getting_started"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -25,7 +25,7 @@
|
|||||||
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">// Sometimes, query/body parameters are also required!</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">var tracks = await spotify.Tracks.GetSeveral(new TracksRequest(new List<string> {</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> "1s6ux0lNiTziSrd7iUAADH",</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> "6YlOxoHWLjH6uVQvxUIUug"</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}));</span></div></div></div></div></div><p>If a query/body parameter is required, it has to be supplied in the constructor of the request model. In the background, empty/null checks are also performed to make sure required parameters are not empty/null. If it is optional, it can be supplied as a property to the request model.</p><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_ZqCz" id="guides"></a>Guides<a aria-hidden="true" tabindex="-1" class="hash-link" href="#guides" title="Direct link to heading">#</a></h2><p>All other relevant topics are covered in the "Guides" and <a href="/docs/next/auth_introduction">Authentication Guides</a> section in the sidebar!</p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/getting_started.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-04T13:24:13.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/introduction"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Introduction</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/error_handling"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Error Handling »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#adding-spotifyapi-net-to-your-project" class="table-of-contents__link">Adding SpotifyAPI-NET to your project</a><ul><li><a href="#package-managers" class="table-of-contents__link">Package Managers</a></li><li><a href="#add-dll-manually" class="table-of-contents__link">Add DLL Manually</a></li><li><a href="#compile-yourself" class="table-of-contents__link">Compile Yourself</a></li></ul></li><li><a href="#first-api-calls" class="table-of-contents__link">First API Calls</a></li><li><a href="#querybody-parameters" class="table-of-contents__link">Query/Body Parameters</a></li><li><a href="#guides" class="table-of-contents__link">Guides</a></li></ul></div></div></div></div></main></div></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>
|
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">// Sometimes, query/body parameters are also required!</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">var tracks = await spotify.Tracks.GetSeveral(new TracksRequest(new List<string> {</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> "1s6ux0lNiTziSrd7iUAADH",</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> "6YlOxoHWLjH6uVQvxUIUug"</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}));</span></div></div></div></div></div><p>If a query/body parameter is required, it has to be supplied in the constructor of the request model. In the background, empty/null checks are also performed to make sure required parameters are not empty/null. If it is optional, it can be supplied as a property to the request model.</p><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_ZqCz" id="guides"></a>Guides<a aria-hidden="true" tabindex="-1" class="hash-link" href="#guides" title="Direct link to heading">#</a></h2><p>All other relevant topics are covered in the "Guides" and <a href="/docs/next/auth_introduction">Authentication Guides</a> section in the sidebar!</p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/getting_started.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-04T13:24:13.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/introduction"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Introduction</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/error_handling"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Error Handling »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#adding-spotifyapi-net-to-your-project" class="table-of-contents__link">Adding SpotifyAPI-NET to your project</a><ul><li><a href="#package-managers" class="table-of-contents__link">Package Managers</a></li><li><a href="#add-dll-manually" class="table-of-contents__link">Add DLL Manually</a></li><li><a href="#compile-yourself" class="table-of-contents__link">Compile Yourself</a></li></ul></li><li><a href="#first-api-calls" class="table-of-contents__link">First API Calls</a></li><li><a href="#querybody-parameters" class="table-of-contents__link">Query/Body Parameters</a></li><li><a href="#guides" class="table-of-contents__link">Guides</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Implicit Grant | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Implicit Grant | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Implicit grant flow is for clients that are implemented entirely using JavaScript and running in the resource owner’s browser. You do not need any server-side code to use it. Rate limits for requests are improved but there is no refresh token provided. This flow is described in RFC-6749."><meta data-react-helmet="true" property="og:description" content="Implicit grant flow is for clients that are implemented entirely using JavaScript and running in the resource owner’s browser. You do not need any server-side code to use it. Rate limits for requests are improved but there is no refresh token provided. This flow is described in RFC-6749."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/implicit_grant"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/implicit_grant"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Implicit Grant | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Implicit Grant | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Implicit grant flow is for clients that are implemented entirely using JavaScript and running in the resource owner’s browser. You do not need any server-side code to use it. Rate limits for requests are improved but there is no refresh token provided. This flow is described in RFC-6749."><meta data-react-helmet="true" property="og:description" content="Implicit grant flow is for clients that are implemented entirely using JavaScript and running in the resource owner’s browser. You do not need any server-side code to use it. Rate limits for requests are improved but there is no refresh token provided. This flow is described in RFC-6749."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/implicit_grant"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/implicit_grant"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -26,7 +26,7 @@
|
|||||||
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">private static async Task OnImplictGrantReceived(object sender, ImplictGrantResponse response)</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"> await _server.Stop();</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> var spotify = new SpotifyClient(response.AccessToken);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> // do calls with spotify</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div><p>For real examples, have a look at <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.CLI.PersistentConfig">Example.CLI.PersistentConfig</a> and <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.CLI.CustomHTML">Example.CLI.CustomHTML</a></p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/implicit_grant.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T22:14:37.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/client_credentials"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Client Credentials</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/authorization_code"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Authorization Code »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#existing-web-server" class="table-of-contents__link">Existing Web-Server</a></li><li><a href="#using-custom-protocols" class="table-of-contents__link">Using custom Protocols</a></li></ul></div></div></div></div></main></div></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>
|
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">private static async Task OnImplictGrantReceived(object sender, ImplictGrantResponse response)</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"> await _server.Stop();</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> var spotify = new SpotifyClient(response.AccessToken);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> // do calls with spotify</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div><p>For real examples, have a look at <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.CLI.PersistentConfig">Example.CLI.PersistentConfig</a> and <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.CLI.CustomHTML">Example.CLI.CustomHTML</a></p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/implicit_grant.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T22:14:37.000Z" class="docLastUpdatedAt_1sqk">6/4/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/client_credentials"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Client Credentials</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/authorization_code"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Authorization Code »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#existing-web-server" class="table-of-contents__link">Existing Web-Server</a></li><li><a href="#using-custom-protocols" class="table-of-contents__link">Using custom Protocols</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Logging | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Logging | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="The library provides a way to inject your own, custom HTTP Logger. By default, no logging is performed."><meta data-react-helmet="true" property="og:description" content="The library provides a way to inject your own, custom HTTP Logger. By default, no logging is performed."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/logging"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/logging"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Logging | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Logging | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="The library provides a way to inject your own, custom HTTP Logger. By default, no logging is performed."><meta data-react-helmet="true" property="og:description" content="The library provides a way to inject your own, custom HTTP Logger. By default, no logging is performed."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/logging"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/logging"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -23,7 +23,7 @@
|
|||||||
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">GET tracks/6YlOxoHWLjH6uVQvxUIUug []</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">--> OK application/json { "album" : { "album_type" : "album", "arti</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/logging.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T15:44:13.000Z" class="docLastUpdatedAt_1sqk">6/3/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/configuration"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Configuration</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/proxy"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Proxy »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#simpleconsolehttplogger" class="table-of-contents__link">SimpleConsoleHTTPLogger</a></li></ul></div></div></div></div></main></div></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>
|
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">GET tracks/6YlOxoHWLjH6uVQvxUIUug []</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">--> OK application/json { "album" : { "album_type" : "album", "arti</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/logging.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T15:44:13.000Z" class="docLastUpdatedAt_1sqk">6/3/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/configuration"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Configuration</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/proxy"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Proxy »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#simpleconsolehttplogger" class="table-of-contents__link">SimpleConsoleHTTPLogger</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Pagination | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Pagination | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="When working with spotify responses, you will often encounter the Paging type."><meta data-react-helmet="true" property="og:description" content="When working with spotify responses, you will often encounter the Paging type."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/pagination"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/pagination"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Pagination | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Pagination | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="When working with spotify responses, you will often encounter the Paging type."><meta data-react-helmet="true" property="og:description" content="When working with spotify responses, you will often encounter the Paging type."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/pagination"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/pagination"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -23,7 +23,7 @@
|
|||||||
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">await foreach(var item in spotify.Paginate(search.Albums, (s) => s.Albums))</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(item.Name);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> // you can use "break" here!</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_ZqCz" id="paginators"></a>Paginators<a aria-hidden="true" tabindex="-1" class="hash-link" href="#paginators" title="Direct link to heading">#</a></h2><p>Via the interface <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/SpotifyAPI.Web/Clients/Interfaces/IPaginator.cs"><code>IPaginator</code></a>, it can be configured how pages are fetched. It can be configured on a global level:</p><div class="mdxCodeBlock_iHAB"><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 config = SpotifyClientConfig</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> .CreateDefault()</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> .WithPaginator(new YourCustomPaginator());</span></div></div></div></div></div><p>or on method level:</p><div class="mdxCodeBlock_iHAB"><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">await foreach(var item in spotify.Paginate(page, new YourCustomPaginator()))</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(item.Name);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> // you can use "break" here!</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div><p>By default, <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/SpotifyAPI.Web/Clients/SimplePaginator.cs"><code>SimplePaginator</code></a> is used. It fetches pages without any delay.</p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/pagination.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T15:44:13.000Z" class="docLastUpdatedAt_1sqk">6/3/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/proxy"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Proxy</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/retry_handling"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Retry Handling »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#paginateall" class="table-of-contents__link">PaginateAll</a></li><li><a href="#paginate" class="table-of-contents__link">Paginate</a></li><li><a href="#paginators" class="table-of-contents__link">Paginators</a></li></ul></div></div></div></div></main></div></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>
|
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">await foreach(var item in spotify.Paginate(search.Albums, (s) => s.Albums))</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(item.Name);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> // you can use "break" here!</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_ZqCz" id="paginators"></a>Paginators<a aria-hidden="true" tabindex="-1" class="hash-link" href="#paginators" title="Direct link to heading">#</a></h2><p>Via the interface <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/SpotifyAPI.Web/Clients/Interfaces/IPaginator.cs"><code>IPaginator</code></a>, it can be configured how pages are fetched. It can be configured on a global level:</p><div class="mdxCodeBlock_iHAB"><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 config = SpotifyClientConfig</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> .CreateDefault()</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> .WithPaginator(new YourCustomPaginator());</span></div></div></div></div></div><p>or on method level:</p><div class="mdxCodeBlock_iHAB"><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">await foreach(var item in spotify.Paginate(page, new YourCustomPaginator()))</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(item.Name);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> // you can use "break" here!</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div><p>By default, <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/SpotifyAPI.Web/Clients/SimplePaginator.cs"><code>SimplePaginator</code></a> is used. It fetches pages without any delay.</p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/pagination.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T15:44:13.000Z" class="docLastUpdatedAt_1sqk">6/3/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/proxy"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Proxy</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/retry_handling"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Retry Handling »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#paginateall" class="table-of-contents__link">PaginateAll</a></li><li><a href="#paginate" class="table-of-contents__link">Paginate</a></li><li><a href="#paginators" class="table-of-contents__link">Paginators</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Proxy | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Proxy | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="The included HTTPClient has full proxy configuration support:"><meta data-react-helmet="true" property="og:description" content="The included HTTPClient has full proxy configuration support:"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/proxy"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/proxy"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Proxy | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Proxy | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="The included HTTPClient has full proxy configuration support:"><meta data-react-helmet="true" property="og:description" content="The included HTTPClient has full proxy configuration support:"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/proxy"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/proxy"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -21,7 +21,7 @@
|
|||||||
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">var spotify = new SpotifyClient(config);</span></div></div></div></div></div><p>As an example, <a href="https://mitmproxy.org/" target="_blank" rel="noopener noreferrer">mitmproxy</a> can be used to inspect the requests and responses:</p><p><img src="/img/mitmproxy.png" alt="mitmproxy"></p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/proxy.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T15:44:13.000Z" class="docLastUpdatedAt_1sqk">6/3/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/logging"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Logging</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/pagination"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Pagination »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"></div></div></div></div></main></div></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>
|
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">var spotify = new SpotifyClient(config);</span></div></div></div></div></div><p>As an example, <a href="https://mitmproxy.org/" target="_blank" rel="noopener noreferrer">mitmproxy</a> can be used to inspect the requests and responses:</p><p><img src="/img/mitmproxy.png" alt="mitmproxy"></p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/proxy.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T15:44:13.000Z" class="docLastUpdatedAt_1sqk">6/3/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/logging"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Logging</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/pagination"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Pagination »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Retry Handling | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Retry Handling | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="In Error Handling we already found out that requests can fail. We provide a way to automatically retry requests via retry handlers. Note, by default no retries are performed."><meta data-react-helmet="true" property="og:description" content="In Error Handling we already found out that requests can fail. We provide a way to automatically retry requests via retry handlers. Note, by default no retries are performed."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/retry_handling"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/retry_handling"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Retry Handling | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Retry Handling | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="In Error Handling we already found out that requests can fail. We provide a way to automatically retry requests via retry handlers. Note, by default no retries are performed."><meta data-react-helmet="true" property="og:description" content="In Error Handling we already found out that requests can fail. We provide a way to automatically retry requests via retry handlers. Note, by default no retries are performed."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/retry_handling"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/retry_handling"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -24,7 +24,7 @@
|
|||||||
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">var spotify = new SpotifyClient(config);</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/retry_handling.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T17:12:12.000Z" class="docLastUpdatedAt_1sqk">6/3/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/pagination"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Pagination</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/unit_testing"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Unit Testing »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#simpleretryhandler" class="table-of-contents__link">SimpleRetryHandler</a></li></ul></div></div></div></div></main></div></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>
|
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">var spotify = new SpotifyClient(config);</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/retry_handling.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T17:12:12.000Z" class="docLastUpdatedAt_1sqk">6/3/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/pagination"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Pagination</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/unit_testing"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Unit Testing »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#simpleretryhandler" class="table-of-contents__link">SimpleRetryHandler</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Unit Testing | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Unit Testing | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="The modular structure of the library makes it easy to mock the API when unit testing. Consider the following method:"><meta data-react-helmet="true" property="og:description" content="The modular structure of the library makes it easy to mock the API when unit testing. Consider the following method:"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/unit_testing"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/next/unit_testing"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Unit Testing | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="next"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Unit Testing | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="The modular structure of the library makes it easy to mock the API when unit testing. Consider the following method:"><meta data-react-helmet="true" property="og:description" content="The modular structure of the library makes it easy to mock the API when unit testing. Consider the following method:"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/unit_testing"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/next/unit_testing"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -22,7 +22,7 @@
|
|||||||
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> Assert.AreEqual(true, await IsAdmin(userProfileClient.Object));</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/unit_testing.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T21:57:28.000Z" class="docLastUpdatedAt_1sqk">6/3/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/retry_handling"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Retry Handling</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/auth_introduction"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Introduction »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"></div></div></div></div></main></div></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>
|
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> Assert.AreEqual(true, await IsAdmin(userProfileClient.Object));</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/unit_testing.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-06-03T21:57:28.000Z" class="docLastUpdatedAt_1sqk">6/3/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/next/retry_handling"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Retry Handling</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/next/auth_introduction"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Introduction »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Playlists | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Playlists | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="GetUserPlaylists"><meta data-react-helmet="true" property="og:description" content="GetUserPlaylists"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/web/playlists"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/web/playlists"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Playlists | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Playlists | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="GetUserPlaylists"><meta data-react-helmet="true" property="og:description" content="GetUserPlaylists"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/web/playlists"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/web/playlists"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -21,7 +21,7 @@
|
|||||||
More Info: <a href="https://developer.spotify.com/web-api/reorder-playlists-tracks/" target="_blank" rel="noopener noreferrer">Reorder-Playlist</a></p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>userId</td><td>The user's Spotify user ID.</td><td><code>"1122095781"</code></td></tr><tr><td>playlistId</td><td>The Spotify ID for the playlist.</td><td><code>"1TtEejT1y4D1WmcOnLfha2"</code></td></tr><tr><td>rangeStart</td><td>The position of the first track to be reordered.</td><td><code>2</code></td></tr><tr><td>insertBefore</td><td>The position where the tracks should be inserted.</td><td><code>0</code></td></tr><tr><td>[rangeLength]</td><td>The amount of tracks to be reordered. Defaults to 1 if not set.</td><td><code>2</code></td></tr><tr><td>[snapshotId]</td><td>The playlist's snapshot ID against which you want to make the changes.</td><td>``</td></tr></tbody></table><p>Returns a <code>Snapshot</code>-Object which contains the property <code>String SnapshotId</code></p><p><strong>Usage</strong></p><div class="mdxCodeBlock_iHAB"><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">Snapshot snapshot = _spotify.ReorderPlaylist("1122095781", "1TtEejT1y4D1WmcOnLfha2", 2, 0, 2);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Console.WriteLine("New SnapshotId: " + snapshot.SnapshotId);</span></div></div></div></div></div><hr></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/web/playlists.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/web/player"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Player</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/web/profiles"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Profiles »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#getuserplaylists" class="table-of-contents__link">GetUserPlaylists</a></li><li><a href="#getplaylist" class="table-of-contents__link">GetPlaylist</a></li><li><a href="#getplaylisttracks" class="table-of-contents__link">GetPlaylistTracks</a></li><li><a href="#createplaylist" class="table-of-contents__link">CreatePlaylist</a></li><li><a href="#updateplaylist" class="table-of-contents__link">UpdatePlaylist</a></li><li><a href="#replaceplaylisttracks" class="table-of-contents__link">ReplacePlaylistTracks</a></li><li><a href="#removeplaylisttracks" class="table-of-contents__link">RemovePlaylistTracks</a></li><li><a href="#removeplaylisttrack" class="table-of-contents__link">RemovePlaylistTrack</a></li><li><a href="#addplaylisttracks" class="table-of-contents__link">AddPlaylistTracks</a></li><li><a href="#addplaylisttrack" class="table-of-contents__link">AddPlaylistTrack</a></li><li><a href="#reorderplaylist" class="table-of-contents__link">ReorderPlaylist</a></li></ul></div></div></div></div></main></div></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>
|
More Info: <a href="https://developer.spotify.com/web-api/reorder-playlists-tracks/" target="_blank" rel="noopener noreferrer">Reorder-Playlist</a></p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>userId</td><td>The user's Spotify user ID.</td><td><code>"1122095781"</code></td></tr><tr><td>playlistId</td><td>The Spotify ID for the playlist.</td><td><code>"1TtEejT1y4D1WmcOnLfha2"</code></td></tr><tr><td>rangeStart</td><td>The position of the first track to be reordered.</td><td><code>2</code></td></tr><tr><td>insertBefore</td><td>The position where the tracks should be inserted.</td><td><code>0</code></td></tr><tr><td>[rangeLength]</td><td>The amount of tracks to be reordered. Defaults to 1 if not set.</td><td><code>2</code></td></tr><tr><td>[snapshotId]</td><td>The playlist's snapshot ID against which you want to make the changes.</td><td>``</td></tr></tbody></table><p>Returns a <code>Snapshot</code>-Object which contains the property <code>String SnapshotId</code></p><p><strong>Usage</strong></p><div class="mdxCodeBlock_iHAB"><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">Snapshot snapshot = _spotify.ReorderPlaylist("1122095781", "1TtEejT1y4D1WmcOnLfha2", 2, 0, 2);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Console.WriteLine("New SnapshotId: " + snapshot.SnapshotId);</span></div></div></div></div></div><hr></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/web/playlists.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/web/player"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Player</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/web/profiles"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Profiles »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#getuserplaylists" class="table-of-contents__link">GetUserPlaylists</a></li><li><a href="#getplaylist" class="table-of-contents__link">GetPlaylist</a></li><li><a href="#getplaylisttracks" class="table-of-contents__link">GetPlaylistTracks</a></li><li><a href="#createplaylist" class="table-of-contents__link">CreatePlaylist</a></li><li><a href="#updateplaylist" class="table-of-contents__link">UpdatePlaylist</a></li><li><a href="#replaceplaylisttracks" class="table-of-contents__link">ReplacePlaylistTracks</a></li><li><a href="#removeplaylisttracks" class="table-of-contents__link">RemovePlaylistTracks</a></li><li><a href="#removeplaylisttrack" class="table-of-contents__link">RemovePlaylistTrack</a></li><li><a href="#addplaylisttracks" class="table-of-contents__link">AddPlaylistTracks</a></li><li><a href="#addplaylisttrack" class="table-of-contents__link">AddPlaylistTrack</a></li><li><a href="#reorderplaylist" class="table-of-contents__link">ReorderPlaylist</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Profiles | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Profiles | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="GetPrivateProfile"><meta data-react-helmet="true" property="og:description" content="GetPrivateProfile"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/web/profiles"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/web/profiles"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Profiles | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Profiles | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="GetPrivateProfile"><meta data-react-helmet="true" property="og:description" content="GetPrivateProfile"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/web/profiles"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/web/profiles"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -21,7 +21,7 @@
|
|||||||
</span></div></div></div></div></div><hr></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/web/profiles.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/web/playlists"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Playlists</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/web/proxy"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Proxy Settings »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#getprivateprofile" class="table-of-contents__link">GetPrivateProfile</a></li><li><a href="#getpublicprofile" class="table-of-contents__link">GetPublicProfile</a></li></ul></div></div></div></div></main></div></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>
|
</span></div></div></div></div></div><hr></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/web/profiles.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/web/playlists"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Playlists</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/web/proxy"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Proxy Settings »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#getprivateprofile" class="table-of-contents__link">GetPrivateProfile</a></li><li><a href="#getpublicprofile" class="table-of-contents__link">GetPublicProfile</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Proxy Settings | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Proxy Settings | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="You can forward your proxy settings to the web api by using a field in the SpotifyLocalAPIConfig."><meta data-react-helmet="true" property="og:description" content="You can forward your proxy settings to the web api by using a field in the SpotifyLocalAPIConfig."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/web/proxy"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/web/proxy"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Proxy Settings | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Proxy Settings | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="You can forward your proxy settings to the web api by using a field in the SpotifyLocalAPIConfig."><meta data-react-helmet="true" property="og:description" content="You can forward your proxy settings to the web api by using a field in the SpotifyLocalAPIConfig."><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/web/proxy"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/web/proxy"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -21,7 +21,7 @@
|
|||||||
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">SpotifyWebAPI api = new SpotifyWebAPI(proxyConfig);</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/web/proxy.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-31T15:21:17.000Z" class="docLastUpdatedAt_1sqk">5/31/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/web/profiles"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Profiles</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/web/search"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Search »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"></div></div></div></div></main></div></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>
|
</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">SpotifyWebAPI api = new SpotifyWebAPI(proxyConfig);</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/web/proxy.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-31T15:21:17.000Z" class="docLastUpdatedAt_1sqk">5/31/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/web/profiles"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Profiles</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/web/search"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Search »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Search | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Search | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="SearchItems"><meta data-react-helmet="true" property="og:description" content="SearchItems"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/web/search"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/web/search"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Search | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Search | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="SearchItems"><meta data-react-helmet="true" property="og:description" content="SearchItems"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/web/search"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/web/search"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -22,7 +22,7 @@ You may want to use <code>SearchItemsEscaped</code> if you're processing us
|
|||||||
:::</p><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>q</td><td>The search query's keywords (and optional field filters and operators), for example q=roadhouse+blues.</td><td><code>"roadhouse+blues"</code></td></tr><tr><td>type</td><td>A list of item types to search across.</td><td><code>SearchType.Album</code></td></tr><tr><td>[limit]</td><td>The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.</td><td><code>20</code></td></tr><tr><td>[offset]</td><td>The index of the first result to return. Default: 0</td><td><code>0</code></td></tr><tr><td>[market]</td><td>An ISO 3166-1 alpha-2 country code or the string from_token.</td><td><code>"de"</code></td></tr></tbody></table><p>Returns a <code>SearchItem</code> which contains the properties <code>Paging<FullArtist> Artists</code>,<code>Paging<FullTrack> Tracks</code>, <code>Paging<SimpleAlbum> Albums</code>, <code>Paging<SimplePlaylist> Playlists</code>. They are filled based on your search-type.</p><p><strong>Usage</strong></p><div class="mdxCodeBlock_iHAB"><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">SearchItem item = _spotify.SearchItems("roadhouse+blues", SearchType.Album | SearchType.Playlist);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Console.WriteLine(item.Albums.Total); //How many results are there in total? NOTE: item.Tracks = item.Artists = null</span></div></div></div></div></div><hr><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_ZqCz" id="searchitemsescaped"></a>SearchItemsEscaped<a aria-hidden="true" tabindex="-1" class="hash-link" href="#searchitemsescaped" title="Direct link to heading">#</a></h2><blockquote><p>Get Spotify catalog information about artists, albums, tracks or playlists that match a keyword string.</p></blockquote><p>Works like <code>SearchItems</code>, but URL escapes all characters</p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/web/search.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/web/proxy"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Proxy Settings</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/web/tracks"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Tracks »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#searchitems" class="table-of-contents__link">SearchItems</a></li><li><a href="#searchitemsescaped" class="table-of-contents__link">SearchItemsEscaped</a></li></ul></div></div></div></div></main></div></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>
|
:::</p><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>q</td><td>The search query's keywords (and optional field filters and operators), for example q=roadhouse+blues.</td><td><code>"roadhouse+blues"</code></td></tr><tr><td>type</td><td>A list of item types to search across.</td><td><code>SearchType.Album</code></td></tr><tr><td>[limit]</td><td>The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.</td><td><code>20</code></td></tr><tr><td>[offset]</td><td>The index of the first result to return. Default: 0</td><td><code>0</code></td></tr><tr><td>[market]</td><td>An ISO 3166-1 alpha-2 country code or the string from_token.</td><td><code>"de"</code></td></tr></tbody></table><p>Returns a <code>SearchItem</code> which contains the properties <code>Paging<FullArtist> Artists</code>,<code>Paging<FullTrack> Tracks</code>, <code>Paging<SimpleAlbum> Albums</code>, <code>Paging<SimplePlaylist> Playlists</code>. They are filled based on your search-type.</p><p><strong>Usage</strong></p><div class="mdxCodeBlock_iHAB"><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">SearchItem item = _spotify.SearchItems("roadhouse+blues", SearchType.Album | SearchType.Playlist);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">Console.WriteLine(item.Albums.Total); //How many results are there in total? NOTE: item.Tracks = item.Artists = null</span></div></div></div></div></div><hr><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_ZqCz" id="searchitemsescaped"></a>SearchItemsEscaped<a aria-hidden="true" tabindex="-1" class="hash-link" href="#searchitemsescaped" title="Direct link to heading">#</a></h2><blockquote><p>Get Spotify catalog information about artists, albums, tracks or playlists that match a keyword string.</p></blockquote><p>Works like <code>SearchItems</code>, but URL escapes all characters</p></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/web/search.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/web/proxy"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Proxy Settings</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/web/tracks"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Tracks »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#searchitems" class="table-of-contents__link">SearchItems</a></li><li><a href="#searchitemsescaped" class="table-of-contents__link">SearchItemsEscaped</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -4,10 +4,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
<meta name="generator" content="Docusaurus v2.0.0-alpha.56">
|
||||||
<title data-react-helmet="true">Utilities | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Utilities | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Paging-Methods"><meta data-react-helmet="true" property="og:description" content="Paging-Methods"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/web/utilities"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/web/utilities"><link rel="stylesheet" href="/styles.8a053330.css">
|
<title data-react-helmet="true">Utilities | SpotifyAPI-NET</title><meta data-react-helmet="true" name="docsearch:version" content="5.1.1"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:title" content="Utilities | SpotifyAPI-NET"><meta data-react-helmet="true" name="description" content="Paging-Methods"><meta data-react-helmet="true" property="og:description" content="Paging-Methods"><meta data-react-helmet="true" property="og:url" content="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/web/utilities"><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://johnnycrazy.github.io/SpotifyAPI-NET//docs/web/utilities"><link rel="stylesheet" href="/styles.8a053330.css">
|
||||||
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
<link rel="preload" href="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -21,7 +21,7 @@
|
|||||||
Both are an easy way to receive the next/previous page of a Paging-Object.</p><p>Sample:</p><div class="mdxCodeBlock_iHAB"><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 playlistTracks = _spotify.GetPlaylistTracks("1122095781", "4EcNf2l8rXInbJOf3tQdgU", "", 50);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">while (true)</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(playlistTracks.Items.Count);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> if (!playlistTracks.HasNextPage())</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> break;</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> playlistTracks = _spotify.GetNextPage(playlistTracks);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/web/utilities.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/web/tracks"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Tracks</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/auth/getting_started"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Getting Started »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#paging-methods" class="table-of-contents__link">Paging-Methods</a></li></ul></div></div></div></div></main></div></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>
|
Both are an easy way to receive the next/previous page of a Paging-Object.</p><p>Sample:</p><div class="mdxCodeBlock_iHAB"><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 playlistTracks = _spotify.GetPlaylistTracks("1122095781", "4EcNf2l8rXInbJOf3tQdgU", "", 50);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">while (true)</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(playlistTracks.Items.Count);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> if (!playlistTracks.HasNextPage())</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> break;</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain"> playlistTracks = _spotify.GetNextPage(playlistTracks);</span></div><div class="token-line" style="color:#bfc7d5"><span class="token plain">}</span></div></div></div></div></div></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/web/utilities.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 40 40" style="margin-right:0.3em;vertical-align:sub"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col text--right"><em><small>Last updated on <time datetime="2020-05-13T16:27:16.000Z" class="docLastUpdatedAt_1sqk">5/13/2020</time> by <strong>Jonas Dellinger</strong></small></em></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/web/tracks"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« Tracks</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/auth/getting_started"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Getting Started »</div></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_TbNY"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#paging-methods" class="table-of-contents__link">Paging-Methods</a></li></ul></div></div></div></div></main></div></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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<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">
|
<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="/styles.b4c4f1e6.js" as="script">
|
||||||
<link rel="preload" href="/runtime~main.00679df5.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="/main.b13475af.js" as="script">
|
||||||
<link rel="preload" href="/1.b01500b4.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="/2.6eaf9d11.js" as="script">
|
||||||
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
<link rel="preload" href="/3.6fe0d7f0.js" as="script">
|
||||||
@ -20,7 +20,7 @@
|
|||||||
</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'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>
|
</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'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="/styles.b4c4f1e6.js"></script>
|
||||||
<script src="/runtime~main.00679df5.js"></script>
|
<script src="/runtime~main.00679df5.js"></script>
|
||||||
<script src="/main.5163b4fc.js"></script>
|
<script src="/main.b13475af.js"></script>
|
||||||
<script src="/1.b01500b4.js"></script>
|
<script src="/1.b01500b4.js"></script>
|
||||||
<script src="/2.6eaf9d11.js"></script>
|
<script src="/2.6eaf9d11.js"></script>
|
||||||
<script src="/3.6fe0d7f0.js"></script>
|
<script src="/3.6fe0d7f0.js"></script>
|
||||||
|
File diff suppressed because one or more lines are too long
2
main.b13475af.js
Normal file
2
main.b13475af.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user