mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
Built docs | AppVeyor Build 255
This commit is contained in:
parent
5ad77521cc
commit
9e1a26e918
@ -91,6 +91,10 @@
|
||||
<a href="../SpotifyWebAPI/library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../SpotifyWebAPI/personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../SpotifyWebAPI/player/">- Player</a>
|
||||
</li>
|
||||
@ -215,7 +219,7 @@ public static void Main(String[] args)
|
||||
</code></pre>
|
||||
|
||||
<h2 id="configuration">Configuration</h2>
|
||||
<p>Different spotify versions often require different configuration. Some versions run their web-helper on port <code>4371</code>, others on <code>4381</code>. Also, some use <code>https</code>, and others use <code>http</code>. You can use <code>SpotifyLocalAPIConfig</code> to configure the API:</p>
|
||||
<p>Different spotify versions often require different configuration. Some versions run their web-helper on port <code>4371</code>, others on <code>4381</code> or <code>4380</code>. Also, some use <code>https</code>, and others use <code>http</code>. You can use <code>SpotifyLocalAPIConfig</code> to configure the API:</p>
|
||||
<pre><code class="cs">_spotify = new SpotifyLocalAPI(new SpotifyLocalAPIConfig
|
||||
{
|
||||
Port = 4371,
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="./">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
@ -136,7 +140,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<li >
|
||||
<a rel="prev" href="../player/">
|
||||
<a rel="prev" href="../personalization/">
|
||||
Next <i class="fa fa-arrow-right"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
304
SpotifyWebAPI/personalization/index.html
Normal file
304
SpotifyWebAPI/personalization/index.html
Normal file
@ -0,0 +1,304 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<meta name="author" content="JohnnyCrazy">
|
||||
|
||||
<link rel="shortcut icon" href="../../img/favicon.ico">
|
||||
|
||||
<title>- Personalization - SpotifyAPI-NET</title>
|
||||
|
||||
<link href="../../css/bootstrap-custom.min.css" rel="stylesheet">
|
||||
<link href="../../css/font-awesome-4.0.3.css" rel="stylesheet">
|
||||
<link href="../../css/prettify-1.0.css" rel="stylesheet">
|
||||
<link href="../../css/base.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/agate.min.css">
|
||||
|
||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||||
<div class="container">
|
||||
|
||||
<!-- Collapsed navigation -->
|
||||
<div class="navbar-header">
|
||||
<!-- Expander button -->
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
|
||||
<!-- Main title -->
|
||||
<a class="navbar-brand" href="../..">SpotifyAPI-NET</a>
|
||||
</div>
|
||||
|
||||
<!-- Expanded navigation -->
|
||||
<div class="navbar-collapse collapse">
|
||||
<!-- Main navigation -->
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
|
||||
<li >
|
||||
<a href="../..">Home</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<li class="dropdown active">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">SpotifyWebAPI <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
|
||||
<li >
|
||||
<a href="../gettingstarted/">Getting started</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../examples/">Examples</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../auth/">Authentication</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../albums/">- Albums</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../artists/">- Artists</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../browse/">- Browse</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../follow/">- Follow</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li class="active">
|
||||
<a href="./">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../playlists/">- Playlists</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../profiles/">- Profiles</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../search/">- Search</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../tracks/">- Tracks</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../util/">- Util</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<li >
|
||||
<a href="../../SpotifyLocalAPI/">SpotifyLocalAPI</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
<!-- Search, Navigation and Repo links -->
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
|
||||
<li >
|
||||
<a rel="next" href="../library/">
|
||||
<i class="fa fa-arrow-left"></i> Previous
|
||||
</a>
|
||||
</li>
|
||||
<li >
|
||||
<a rel="prev" href="../player/">
|
||||
Next <i class="fa fa-arrow-right"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET">
|
||||
|
||||
<i class="fa fa-github"></i>
|
||||
|
||||
GitHub
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="col-md-3"><div class="bs-sidebar hidden-print affix well" role="complementary" style="height=90%;">
|
||||
<ul class="nav bs-sidenav">
|
||||
|
||||
<li class="main active"><a href="#getuserstoptracks">GetUsersTopTracks</a></li>
|
||||
|
||||
|
||||
<li class="main "><a href="#getuserstopartists">GetUsersTopArtists</a></li>
|
||||
|
||||
|
||||
<li class="main "><a href="#getusersrecentlyplayedtracks">GetUsersRecentlyPlayedTracks</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</div></div>
|
||||
<div class="col-md-9" role="main">
|
||||
|
||||
<h2 id="getuserstoptracks">GetUsersTopTracks</h2>
|
||||
<blockquote>
|
||||
<p>Get the current user’s top tracks based on calculated affinity.</p>
|
||||
</blockquote>
|
||||
<p><strong>Parameters</strong> </p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Example</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[timeRange]</td>
|
||||
<td>Over what time frame the affinities are compute.</td>
|
||||
<td><code>TimeRangeType.MediumTerm</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 entity to return. Default: 0 (i.e., the first track). Use with limit to get the next set of entities.</td>
|
||||
<td><code>0</code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>Returns a <a href="https://developer.spotify.com/web-api/object-model/#track-object-full">FullTrack</a> wrapped inside a <a href="https://developer.spotify.com/web-api/object-model/#paging-object">Paging-object</a></p>
|
||||
<p><strong>Usage</strong> </p>
|
||||
<pre><code>Paging<FullTrack> tracks = _spotify.GetUsersTopTracks();
|
||||
tracks.Items.ForEach(item => Console.WriteLine(item.Name)); //Display all fetched Track-Names (max 20)
|
||||
Console.WriteLine(tracks.Total.ToString()) //Display total album track count
|
||||
</code></pre>
|
||||
|
||||
<hr />
|
||||
<h2 id="getuserstopartists">GetUsersTopArtists</h2>
|
||||
<blockquote>
|
||||
<p>Get the current user’s top artists based on calculated affinity.</p>
|
||||
</blockquote>
|
||||
<p><strong>Parameters</strong> </p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Example</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>[timeRange]</td>
|
||||
<td>Over what time frame the affinities are compute.</td>
|
||||
<td><code>TimeRangeType.MediumTerm</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 entity to return. Default: 0 (i.e., the first track). Use with limit to get the next set of entities.</td>
|
||||
<td><code>0</code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>Returns a <a href="https://developer.spotify.com/web-api/object-model/#artist-object-full">FullArtist</a> wrapped inside a <a href="https://developer.spotify.com/web-api/object-model/#paging-object">Paging-object</a></p>
|
||||
<p><strong>Usage</strong> </p>
|
||||
<pre><code>Paging<FullArtist> artists = _spotify.GetUsersTopArtists();
|
||||
artists.Items.ForEach(item => Console.WriteLine(item.Name)); //Display all fetched Artist-Names (max 20)
|
||||
</code></pre>
|
||||
|
||||
<hr />
|
||||
<h2 id="getusersrecentlyplayedtracks">GetUsersRecentlyPlayedTracks</h2>
|
||||
<blockquote>
|
||||
<p>Get tracks from the current user’s recent play history.</p>
|
||||
</blockquote>
|
||||
<p><strong>Parameters</strong> </p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Example</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<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>[after]</td>
|
||||
<td>Returns all items after (but not including) this cursor position.</td>
|
||||
<td><code>DateTime.Now.AddDays(-1)</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>[before]</td>
|
||||
<td>Returns all items before (but not including) this cursor position.</td>
|
||||
<td><code>DateTime.Now.AddDays(-1)</code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>Returns a <code>PlayHistory</code> wrapped inside a <a href="https://developer.spotify.com/web-api/object-model/#cursor-based-paging-object">CursorPaging-object</a></p>
|
||||
<p><strong>Usage</strong> </p>
|
||||
<pre><code>CursorPaging<PlayHistory> histories = _spotify.GetUsersRecentlyPlayedTracks();
|
||||
histories.Items.ForEach(item => Console.WriteLine(item.Track.Name));
|
||||
</code></pre>
|
||||
|
||||
<hr /></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
|
||||
<script src="../../js/bootstrap-3.0.3.min.js"></script>
|
||||
<script src="../../js/base.js"></script>
|
||||
<script src="../../highlight.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -91,6 +91,10 @@
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li class="active">
|
||||
<a href="./">- Player</a>
|
||||
</li>
|
||||
@ -131,7 +135,7 @@
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
|
||||
<li >
|
||||
<a rel="next" href="../library/">
|
||||
<a rel="next" href="../personalization/">
|
||||
<i class="fa fa-arrow-left"></i> Previous
|
||||
</a>
|
||||
</li>
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="../library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="../player/">- Player</a>
|
||||
</li>
|
||||
|
@ -91,6 +91,10 @@
|
||||
<a href="SpotifyWebAPI/library/">- Library</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="SpotifyWebAPI/personalization/">- Personalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="SpotifyWebAPI/player/">- Player</a>
|
||||
</li>
|
||||
|
File diff suppressed because one or more lines are too long
@ -59,6 +59,12 @@
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>/SpotifyWebAPI/personalization/</loc>
|
||||
<lastmod>2018-01-15</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>/SpotifyWebAPI/player/</loc>
|
||||
<lastmod>2018-01-15</lastmod>
|
||||
|
Loading…
Reference in New Issue
Block a user