Spotify.NET/web/follow.html

40 lines
25 KiB
HTML
Raw Normal View History

2019-08-16 23:41:36 +01:00
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Follow | SpotifyAPI-NET</title>
2019-08-16 23:45:09 +01:00
<meta name="description" content="🔉 An API for the Spotify-Client and the Spotify Web API, written in C#/.NET">
2019-08-16 23:41:36 +01:00
2020-01-09 19:29:33 +00:00
<link rel="preload" href="/SpotifyAPI-NET/assets/css/0.styles.70d78a90.css" as="style"><link rel="preload" href="/SpotifyAPI-NET/assets/js/app.5be86410.js" as="script"><link rel="preload" href="/SpotifyAPI-NET/assets/js/2.db6f1a12.js" as="script"><link rel="preload" href="/SpotifyAPI-NET/assets/js/15.a0fc535e.js" as="script"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/10.29899bd4.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/11.71e8ae3b.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/12.aa6c4bc3.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/13.1731261a.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/14.5c5c08c0.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/16.427ccfec.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/17.a281444b.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/18.1f840ba3.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/19.c6343cc0.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/20.f7f0836a.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/21.700cbb77.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/22.312dbfd1.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/23.d5043e4d.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/24.07659c28.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/25.81029a65.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/26.3876e2f9.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/3.e41cd288.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/4.d34ebd53.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/5.85e9957e.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/6.a0836589.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/7.6ce7959d.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/8.5862f417.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/9.2255e63f.js">
2019-08-16 23:45:09 +01:00
<link rel="stylesheet" href="/SpotifyAPI-NET/assets/css/0.styles.70d78a90.css">
2019-08-16 23:41:36 +01:00
</head>
<body>
2019-08-16 23:45:09 +01:00
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/SpotifyAPI-NET/" class="home-link router-link-active"><!----> <span class="site-name">SpotifyAPI-NET</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/SpotifyAPI-NET/" class="nav-link">Home</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">SpotifyAPI.Web</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/getting_started.html" class="nav-link">Getting Started</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/examples.html" class="nav-link">Examples</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/proxy.html" class="nav-link">Proxy</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/albums.html" class="nav-link">- Albums</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/artists.html" class="nav-link">- Artists</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/browse.html" class="nav-link">- Browse</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/follow.html" class="nav-link router-link-exact-active router-link-active">- Follow</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/library.html" class="nav-link">- Library</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/personalization.html" class="nav-link">- Personalization</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/player.html" class="nav-link">- Player</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/playlists.html" class="nav-link">- Playlists</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/profiles.html" class="nav-link">- Profiles</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/search.html" class="nav-link">- Search</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/tracks.html" class="nav-link">- Tracks</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/utils.html" class="nav-link">Utilities</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">SpotifyAPI.Auth</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/getting_started.html" class="nav-link">Getting Started</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/implicit_grant.html" class="nav-link">- ImplicitGrantAuth</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/token_swap.html" class="nav-link">- TokenSwapAuth</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/authorization_code.html" class="nav-link">- AutorizationCodeAuth</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/client_credentials.html" class="nav-link">- ClientCredentialsAuth</a></li></ul></div></div> <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET" target="_blank" rel="noopener noreferrer" class="repo-link">
2019-08-16 23:41:36 +01:00
🚀 GitHub
2019-08-16 23:45:09 +01:00
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/SpotifyAPI-NET/" class="nav-link">Home</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">SpotifyAPI.Web</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/getting_started.html" class="nav-link">Getting Started</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/examples.html" class="nav-link">Examples</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/proxy.html" class="nav-link">Proxy</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/albums.html" class="nav-link">- Albums</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/artists.html" class="nav-link">- Artists</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/browse.html" class="nav-link">- Browse</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/follow.html" class="nav-link router-link-exact-active router-link-active">- Follow</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/library.html" class="nav-link">- Library</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/personalization.html" class="nav-link">- Personalization</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/player.html" class="nav-link">- Player</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/playlists.html" class="nav-link">- Playlists</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/profiles.html" class="nav-link">- Profiles</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/search.html" class="nav-link">- Search</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/tracks.html" class="nav-link">- Tracks</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/utils.html" class="nav-link">Utilities</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">SpotifyAPI.Auth</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/getting_started.html" class="nav-link">Getting Started</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/implicit_grant.html" class="nav-link">- ImplicitGrantAuth</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/token_swap.html" class="nav-link">- TokenSwapAuth</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/authorization_code.html" class="nav-link">- AutorizationCodeAuth</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/client_credentials.html" class="nav-link">- ClientCredentialsAuth</a></li></ul></div></div> <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET" target="_blank" rel="noopener noreferrer" class="repo-link">
2019-08-16 23:41:36 +01:00
🚀 GitHub
2019-08-16 23:45:09 +01:00
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>Follow</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/SpotifyAPI-NET/web/follow.html#follow-2" class="sidebar-link">Follow</a></li><li><a href="/SpotifyAPI-NET/web/follow.html#unfollow" class="sidebar-link">Unfollow</a></li><li><a href="/SpotifyAPI-NET/web/follow.html#isfollowing" class="sidebar-link">IsFollowing</a></li><li><a href="/SpotifyAPI-NET/web/follow.html#followplaylist" class="sidebar-link">FollowPlaylist</a></li><li><a href="/SpotifyAPI-NET/web/follow.html#unfollowplaylist" class="sidebar-link">UnfollowPlaylist</a></li><li><a href="/SpotifyAPI-NET/web/follow.html#isfollowingplaylist" class="sidebar-link">IsFollowingPlaylist</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="follow"><a href="#follow" aria-hidden="true" class="header-anchor">#</a> Follow</h1> <h2 id="follow-2"><a href="#follow-2" aria-hidden="true" class="header-anchor">#</a> Follow</h2> <blockquote><p>Add the current user as a follower of one or more artists or other Spotify users.</p></blockquote> <p><strong>Parameters</strong></p> <table><thead><tr><th>Name</th> <th>Description</th> <th>Example</th></tr></thead> <tbody><tr><td>followType</td> <td>The ID type: either artist or user.</td> <td><code>FollowType.Artist</code></td></tr> <tr><td>ids or id</td> <td>A list of the artist or the user Spotify IDs or just a Spotify ID</td> <td><code>new List&lt;String&gt; { &quot;1KpCi9BOfviCVhmpI4G2sY&quot; }</code> or <code>&quot;1KpCi9BOfviCVhmpI4G2sY&quot;</code></td></tr></tbody></table> <p>Returns a <code>ErrorResponse</code> which just contains a possible error. (<code>response.HasError()</code> and <code>response.Error</code>)</p> <p><strong>Usage</strong></p> <div class="language-csharp extra-class"><pre class="language-csharp"><code><span class="token class-name">ErrorResponse</span> response <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">Follow</span><span class="token punctuation">(</span>FollowType<span class="token punctuation">.</span>Artist<span class="token punctuation">,</span> <span class="token string">&quot;1KpCi9BOfviCVhmpI4G2sY&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
2019-08-16 23:41:36 +01:00
<span class="token comment">//or if it's a User</span>
<span class="token class-name">ErrorResponse</span> response <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">Follow</span><span class="token punctuation">(</span>FollowType<span class="token punctuation">.</span>User<span class="token punctuation">,</span> <span class="token string">&quot;1122095781&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><hr> <h2 id="unfollow"><a href="#unfollow" aria-hidden="true" class="header-anchor">#</a> Unfollow</h2> <blockquote><p>Remove the current user as a follower of one or more artists or other Spotify users.</p></blockquote> <p><strong>Parameters</strong></p> <table><thead><tr><th>Name</th> <th>Description</th> <th>Example</th></tr></thead> <tbody><tr><td>followType</td> <td>The ID type: either artist or user.</td> <td><code>FollowType.Artist</code></td></tr> <tr><td>ids or id</td> <td>A list of the artist or the user Spotify IDs or just a Spotify ID</td> <td><code>new List&lt;String&gt; { &quot;1KpCi9BOfviCVhmpI4G2sY&quot; }</code> or <code>&quot;1KpCi9BOfviCVhmpI4G2sY&quot;</code></td></tr></tbody></table> <p>Returns a <code>ErrorResponse</code> which just contains a possible error. (<code>response.HasError()</code> and <code>response.Error</code>)</p> <p><strong>Usage</strong></p> <div class="language-csharp extra-class"><pre class="language-csharp"><code><span class="token class-name">ErrorResponse</span> response <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">Unfollow</span><span class="token punctuation">(</span>FollowType<span class="token punctuation">.</span>Artist<span class="token punctuation">,</span> <span class="token string">&quot;1KpCi9BOfviCVhmpI4G2sY&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token comment">//or if it's a User</span>
<span class="token class-name">ErrorResponse</span> response <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">Unfollow</span><span class="token punctuation">(</span>FollowType<span class="token punctuation">.</span>User<span class="token punctuation">,</span> <span class="token string">&quot;1122095781&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><hr> <h2 id="isfollowing"><a href="#isfollowing" aria-hidden="true" class="header-anchor">#</a> IsFollowing</h2> <blockquote><p>Check to see if the current user is following one or more artists or other Spotify users.</p></blockquote> <p><strong>Parameters</strong></p> <table><thead><tr><th>Name</th> <th>Description</th> <th>Example</th></tr></thead> <tbody><tr><td>followType</td> <td>The ID type: either artist or user.</td> <td><code>FollowType.Artist</code></td></tr> <tr><td>ids or id</td> <td>A list of the artist or the user Spotify IDs or just a Spotify ID</td> <td><code>new List&lt;String&gt; { &quot;1KpCi9BOfviCVhmpI4G2sY&quot; }</code> or <code>&quot;1KpCi9BOfviCVhmpI4G2sY&quot;</code></td></tr></tbody></table> <p>Returns a <code>ListResponse&lt;Boolean&gt;</code> which contains the property <code>List&lt;Boolean&gt; List</code></p> <p><strong>Usage</strong></p> <div class="language-csharp extra-class"><pre class="language-csharp"><code><span class="token comment">//Are you one of my Followers? :P</span>
ListResponse<span class="token operator">&lt;</span>Boolean<span class="token operator">&gt;</span> response <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">IsFollowing</span><span class="token punctuation">(</span>FollowType<span class="token punctuation">.</span>User<span class="token punctuation">,</span> <span class="token string">&quot;1122095781&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
Console<span class="token punctuation">.</span><span class="token function">WriteLine</span><span class="token punctuation">(</span>response<span class="token punctuation">.</span>List<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span> <span class="token punctuation">?</span> <span class="token string">&quot;Yis!&quot;</span> <span class="token punctuation">:</span> <span class="token string">&quot;No :(&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><hr> <h2 id="followplaylist"><a href="#followplaylist" aria-hidden="true" class="header-anchor">#</a> FollowPlaylist</h2> <blockquote><p>Add the current user as a follower of a playlist.</p></blockquote> <p><strong>Parameters</strong></p> <table><thead><tr><th>Name</th> <th>Description</th> <th>Example</th></tr></thead> <tbody><tr><td>ownerId</td> <td>The Spotify user ID of the person who owns the playlist.</td> <td><code>&quot;maxloermans&quot;</code></td></tr> <tr><td>playlistId</td> <td>The Spotify ID of the playlist. Any playlist can be followed, regardless of its public/private status, as long as you know its playlist ID.</td> <td><code>&quot;3SIp2VAsKI03mReF0dFBmI&quot;</code></td></tr> <tr><td>[showPublic]</td> <td>If true the playlist will be included in user's public playlists, if false it will remain private.</td> <td><code>true</code></td></tr></tbody></table> <p>Returns a <code>ErrorResponse</code> which just contains a possible error. (<code>response.HasError()</code> and <code>response.Error</code>)</p> <p><strong>Usage</strong></p> <div class="language-csharp extra-class"><pre class="language-csharp"><code><span class="token class-name">ErrorResponse</span> response <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">FollowPlaylist</span><span class="token punctuation">(</span><span class="token string">&quot;maxloermans&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;3SIp2VAsKI03mReF0dFBmI&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">if</span><span class="token punctuation">(</span><span class="token operator">!</span>response<span class="token punctuation">.</span><span class="token function">HasError</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
Console<span class="token punctuation">.</span><span class="token function">WriteLine</span><span class="token punctuation">(</span><span class="token string">&quot;success&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><hr> <h2 id="unfollowplaylist"><a href="#unfollowplaylist" aria-hidden="true" class="header-anchor">#</a> UnfollowPlaylist</h2> <blockquote><p>Remove the current user as a follower of a playlist.</p></blockquote> <p><strong>Parameters</strong></p> <table><thead><tr><th>Name</th> <th>Description</th> <th>Example</th></tr></thead> <tbody><tr><td>ownerId</td> <td>The Spotify user ID of the person who owns the playlist.</td> <td><code>&quot;maxloermans&quot;</code></td></tr> <tr><td>playlistId</td> <td>The Spotify ID of the playlist that is to be no longer followed.</td> <td><code>&quot;3SIp2VAsKI03mReF0dFBmI&quot;</code></td></tr></tbody></table> <p>Returns a <code>ErrorResponse</code> which just contains a possible error. (<code>response.HasError()</code> and <code>response.Error</code>)</p> <p><strong>Usage</strong></p> <div class="language-csharp extra-class"><pre class="language-csharp"><code><span class="token class-name">ErrorResponse</span> response <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">UnfollowPlaylist</span><span class="token punctuation">(</span><span class="token string">&quot;maxloermans&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;3SIp2VAsKI03mReF0dFBmI&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">if</span><span class="token punctuation">(</span><span class="token operator">!</span>response<span class="token punctuation">.</span><span class="token function">HasError</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
Console<span class="token punctuation">.</span><span class="token function">WriteLine</span><span class="token punctuation">(</span><span class="token string">&quot;success&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><hr> <h2 id="isfollowingplaylist"><a href="#isfollowingplaylist" aria-hidden="true" class="header-anchor">#</a> IsFollowingPlaylist</h2> <blockquote><p>Check to see if one or more Spotify users are following a specified playlist.</p></blockquote> <p><strong>Parameters</strong></p> <table><thead><tr><th>Name</th> <th>Description</th> <th>Example</th></tr></thead> <tbody><tr><td>ownerId</td> <td>The Spotify user ID of the person who owns the playlist.</td> <td><code>&quot;maxloermans&quot;</code></td></tr> <tr><td>playlistId</td> <td>The Spotify ID of the playlist.</td> <td><code>&quot;3SIp2VAsKI03mReF0dFBmI&quot;</code></td></tr> <tr><td>ids or id</td> <td>A list of the artist or the user Spotify IDs or just a Spotify ID</td> <td><code>new List&lt;String&gt; { &quot;1KpCi9BOfviCVhmpI4G2sY&quot; }</code> or <code>&quot;1KpCi9BOfviCVhmpI4G2sY&quot;</code></td></tr></tbody></table> <p>Returns a <code>ListResponse&lt;Boolean&gt;</code> which contains the property <code>List&lt;Boolean&gt; List</code></p> <p><strong>Usage</strong></p> <div class="language-csharp extra-class"><pre class="language-csharp"><code><span class="token comment">//Am I following the playlist?</span>
ListResponse<span class="token operator">&lt;</span>Boolean<span class="token operator">&gt;</span> response <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">IsFollowing</span><span class="token punctuation">(</span><span class="token string">&quot;maxloermans&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;3SIp2VAsKI03mReF0dFBmI&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;1122095781&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
Console<span class="token punctuation">.</span><span class="token function">WriteLine</span><span class="token punctuation">(</span>response<span class="token punctuation">.</span>List<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span> <span class="token punctuation">?</span> <span class="token string">&quot;Yis!&quot;</span> <span class="token punctuation">:</span> <span class="token string">&quot;No :(&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
2020-01-09 19:29:33 +00:00
</code></pre></div><hr></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/web/follow.md" target="_blank" rel="noopener noreferrer">Help us improve this page!</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated: </span> <span class="time">1/9/2020, 7:27:54 PM</span></div></footer> <!----> </main></div><div class="global-ui"></div></div>
<script src="/SpotifyAPI-NET/assets/js/app.5be86410.js" defer></script><script src="/SpotifyAPI-NET/assets/js/2.db6f1a12.js" defer></script><script src="/SpotifyAPI-NET/assets/js/15.a0fc535e.js" defer></script>
2019-08-16 23:41:36 +01:00
</body>
</html>