From 4c31f8eae09be0f311c03c1191462d893ea27dcf Mon Sep 17 00:00:00 2001 From: GH Actions Docs Builder Date: Sun, 27 Nov 2022 12:35:34 +0000 Subject: [PATCH] Deploy website - based on 511ca0b42b81580bf058821c4302a7c1cc9de6e7 --- 404.html | 4 ++-- assets/js/{031dc046.3a719087.js => 031dc046.5b61f9ea.js} | 2 +- assets/js/{0951e901.70b91895.js => 0951e901.7eba1710.js} | 2 +- assets/js/{10f76bbd.c3192713.js => 10f76bbd.01cb71bf.js} | 2 +- assets/js/{15560a88.b6d1f6ab.js => 15560a88.1b275421.js} | 2 +- assets/js/{16b2da92.aa0657a6.js => 16b2da92.5dd119e6.js} | 2 +- assets/js/{18116e9d.f8852431.js => 18116e9d.e4a0bba8.js} | 2 +- assets/js/{1aaf601c.40eec7da.js => 1aaf601c.c8af907b.js} | 2 +- assets/js/{1f220079.832c34f0.js => 1f220079.256166ff.js} | 2 +- assets/js/{22a09cbf.210e21d6.js => 22a09cbf.55523464.js} | 2 +- assets/js/{25bfd71f.d017b583.js => 25bfd71f.d47c2396.js} | 2 +- assets/js/{266dfd57.5ea7c4d3.js => 266dfd57.2a61f4e7.js} | 2 +- assets/js/{27d9d47d.031792bd.js => 27d9d47d.ef009b2e.js} | 2 +- assets/js/{2851a227.8785a6ea.js => 2851a227.269f6f55.js} | 2 +- assets/js/{293befc8.1c55cee5.js => 293befc8.86f76fb9.js} | 2 +- assets/js/{35214713.9a350757.js => 35214713.a6dbf5af.js} | 2 +- assets/js/{3abe8fb9.6fa00eb5.js => 3abe8fb9.1024b1e5.js} | 2 +- assets/js/{3c5916b7.b7a01a9f.js => 3c5916b7.a54a4dc1.js} | 2 +- assets/js/{516486bd.a70079ca.js => 516486bd.ff9d984d.js} | 2 +- assets/js/{52804278.6451b6d6.js => 52804278.7f4a54ee.js} | 2 +- assets/js/{6373637a.626c1ae8.js => 6373637a.d4cf1db4.js} | 2 +- assets/js/{67d5074e.25dfdde5.js => 67d5074e.8127a592.js} | 2 +- assets/js/{700347c0.54b0347d.js => 700347c0.4ba4393a.js} | 2 +- assets/js/{73139ff1.d354b700.js => 73139ff1.4b69bfdc.js} | 2 +- assets/js/{755cfc2e.662e9261.js => 755cfc2e.cdd3f0fe.js} | 2 +- assets/js/{8581bb41.34117d29.js => 8581bb41.aceeb7b6.js} | 2 +- assets/js/{8ddd655f.5d0550d3.js => 8ddd655f.6668becf.js} | 2 +- assets/js/{9008bace.ef01f325.js => 9008bace.f84967a7.js} | 2 +- assets/js/{902b04f6.7409d58f.js => 902b04f6.9c9d94d5.js} | 2 +- assets/js/{92bb876c.bc06010b.js => 92bb876c.c344484c.js} | 2 +- assets/js/{9ed00105.34ec291d.js => 9ed00105.2d76e257.js} | 2 +- assets/js/{a09c2993.ebf32e2c.js => a09c2993.bae0d6a6.js} | 2 +- assets/js/{a1189d06.fddb8d64.js => a1189d06.21b08d1a.js} | 2 +- assets/js/{b5ab5f4e.09f0a2a4.js => b5ab5f4e.7e357418.js} | 2 +- assets/js/{bbb8f1f8.a6258e78.js => bbb8f1f8.beaf3341.js} | 2 +- assets/js/{cd5a7ece.50a99c54.js => cd5a7ece.70df7bec.js} | 2 +- assets/js/{d0e245df.5220ff17.js => d0e245df.e2833b4f.js} | 2 +- assets/js/{d85a39be.2f551fe6.js => d85a39be.198d4a7c.js} | 2 +- assets/js/{dd053733.d2742474.js => dd053733.61ff1279.js} | 2 +- assets/js/{e02badcb.7c276e15.js => e02badcb.b4dff05c.js} | 2 +- assets/js/{e06aacec.afcf98a6.js => e06aacec.e4c9a553.js} | 2 +- assets/js/{e27d08ab.c7a1b6e6.js => e27d08ab.c7a46846.js} | 2 +- assets/js/{e3c15a47.06bcbbee.js => e3c15a47.05b199a7.js} | 2 +- assets/js/{e6afeee9.0b6f6662.js => e6afeee9.9ce30a17.js} | 2 +- assets/js/{e8057f2a.1f40e2e6.js => e8057f2a.acfb805c.js} | 2 +- assets/js/{fbd836ef.180a45ca.js => fbd836ef.83896c59.js} | 2 +- .../{runtime~main.a22ba604.js => runtime~main.4d730c86.js} | 2 +- docs/5.1.1/auth/authorization_code/index.html | 6 +++--- docs/5.1.1/auth/client_credentials/index.html | 6 +++--- docs/5.1.1/auth/getting_started/index.html | 6 +++--- docs/5.1.1/auth/implicit_grant/index.html | 6 +++--- docs/5.1.1/auth/token_swap/index.html | 6 +++--- docs/5.1.1/home/index.html | 6 +++--- docs/5.1.1/web/albums/index.html | 6 +++--- docs/5.1.1/web/artists/index.html | 6 +++--- docs/5.1.1/web/browse/index.html | 6 +++--- docs/5.1.1/web/follow/index.html | 6 +++--- docs/5.1.1/web/getting_started/index.html | 6 +++--- docs/5.1.1/web/library/index.html | 6 +++--- docs/5.1.1/web/personalization/index.html | 6 +++--- docs/5.1.1/web/player/index.html | 6 +++--- docs/5.1.1/web/playlists/index.html | 6 +++--- docs/5.1.1/web/profiles/index.html | 6 +++--- docs/5.1.1/web/proxy/index.html | 6 +++--- docs/5.1.1/web/search/index.html | 6 +++--- docs/5.1.1/web/tracks/index.html | 6 +++--- docs/5.1.1/web/utilities/index.html | 6 +++--- docs/5_to_6/index.html | 6 +++--- docs/auth_introduction/index.html | 6 +++--- docs/authorization_code/index.html | 6 +++--- docs/client_credentials/index.html | 6 +++--- docs/configuration/index.html | 6 +++--- docs/error_handling/index.html | 6 +++--- docs/example_asp/index.html | 6 +++--- docs/example_blazor/index.html | 6 +++--- docs/example_blazor_wasm/index.html | 6 +++--- docs/example_cli_custom_html/index.html | 6 +++--- docs/example_cli_persistent_config/index.html | 6 +++--- docs/example_token_swap/index.html | 6 +++--- docs/example_uwp/index.html | 6 +++--- docs/getting_started/index.html | 6 +++--- docs/implicit_grant/index.html | 6 +++--- docs/introduction/index.html | 6 +++--- docs/iplayableitem/index.html | 6 +++--- docs/logging/index.html | 6 +++--- docs/pagination/index.html | 6 +++--- docs/pkce/index.html | 6 +++--- docs/proxy/index.html | 6 +++--- docs/retry_handling/index.html | 6 +++--- docs/showcase/index.html | 6 +++--- docs/token_swap/index.html | 6 +++--- docs/unit_testing/index.html | 6 +++--- index.html | 4 ++-- 93 files changed, 185 insertions(+), 185 deletions(-) rename assets/js/{031dc046.3a719087.js => 031dc046.5b61f9ea.js} (98%) rename assets/js/{0951e901.70b91895.js => 0951e901.7eba1710.js} (99%) rename assets/js/{10f76bbd.c3192713.js => 10f76bbd.01cb71bf.js} (99%) rename assets/js/{15560a88.b6d1f6ab.js => 15560a88.1b275421.js} (98%) rename assets/js/{16b2da92.aa0657a6.js => 16b2da92.5dd119e6.js} (99%) rename assets/js/{18116e9d.f8852431.js => 18116e9d.e4a0bba8.js} (99%) rename assets/js/{1aaf601c.40eec7da.js => 1aaf601c.c8af907b.js} (98%) rename assets/js/{1f220079.832c34f0.js => 1f220079.256166ff.js} (98%) rename assets/js/{22a09cbf.210e21d6.js => 22a09cbf.55523464.js} (98%) rename assets/js/{25bfd71f.d017b583.js => 25bfd71f.d47c2396.js} (98%) rename assets/js/{266dfd57.5ea7c4d3.js => 266dfd57.2a61f4e7.js} (99%) rename assets/js/{27d9d47d.031792bd.js => 27d9d47d.ef009b2e.js} (99%) rename assets/js/{2851a227.8785a6ea.js => 2851a227.269f6f55.js} (98%) rename assets/js/{293befc8.1c55cee5.js => 293befc8.86f76fb9.js} (98%) rename assets/js/{35214713.9a350757.js => 35214713.a6dbf5af.js} (98%) rename assets/js/{3abe8fb9.6fa00eb5.js => 3abe8fb9.1024b1e5.js} (98%) rename assets/js/{3c5916b7.b7a01a9f.js => 3c5916b7.a54a4dc1.js} (99%) rename assets/js/{516486bd.a70079ca.js => 516486bd.ff9d984d.js} (99%) rename assets/js/{52804278.6451b6d6.js => 52804278.7f4a54ee.js} (99%) rename assets/js/{6373637a.626c1ae8.js => 6373637a.d4cf1db4.js} (98%) rename assets/js/{67d5074e.25dfdde5.js => 67d5074e.8127a592.js} (99%) rename assets/js/{700347c0.54b0347d.js => 700347c0.4ba4393a.js} (99%) rename assets/js/{73139ff1.d354b700.js => 73139ff1.4b69bfdc.js} (98%) rename assets/js/{755cfc2e.662e9261.js => 755cfc2e.cdd3f0fe.js} (99%) rename assets/js/{8581bb41.34117d29.js => 8581bb41.aceeb7b6.js} (98%) rename assets/js/{8ddd655f.5d0550d3.js => 8ddd655f.6668becf.js} (98%) rename assets/js/{9008bace.ef01f325.js => 9008bace.f84967a7.js} (98%) rename assets/js/{902b04f6.7409d58f.js => 902b04f6.9c9d94d5.js} (99%) rename assets/js/{92bb876c.bc06010b.js => 92bb876c.c344484c.js} (99%) rename assets/js/{9ed00105.34ec291d.js => 9ed00105.2d76e257.js} (98%) rename assets/js/{a09c2993.ebf32e2c.js => a09c2993.bae0d6a6.js} (98%) rename assets/js/{a1189d06.fddb8d64.js => a1189d06.21b08d1a.js} (99%) rename assets/js/{b5ab5f4e.09f0a2a4.js => b5ab5f4e.7e357418.js} (98%) rename assets/js/{bbb8f1f8.a6258e78.js => bbb8f1f8.beaf3341.js} (99%) rename assets/js/{cd5a7ece.50a99c54.js => cd5a7ece.70df7bec.js} (98%) rename assets/js/{d0e245df.5220ff17.js => d0e245df.e2833b4f.js} (99%) rename assets/js/{d85a39be.2f551fe6.js => d85a39be.198d4a7c.js} (99%) rename assets/js/{dd053733.d2742474.js => dd053733.61ff1279.js} (99%) rename assets/js/{e02badcb.7c276e15.js => e02badcb.b4dff05c.js} (98%) rename assets/js/{e06aacec.afcf98a6.js => e06aacec.e4c9a553.js} (99%) rename assets/js/{e27d08ab.c7a1b6e6.js => e27d08ab.c7a46846.js} (99%) rename assets/js/{e3c15a47.06bcbbee.js => e3c15a47.05b199a7.js} (99%) rename assets/js/{e6afeee9.0b6f6662.js => e6afeee9.9ce30a17.js} (98%) rename assets/js/{e8057f2a.1f40e2e6.js => e8057f2a.acfb805c.js} (98%) rename assets/js/{fbd836ef.180a45ca.js => fbd836ef.83896c59.js} (99%) rename assets/js/{runtime~main.a22ba604.js => runtime~main.4d730c86.js} (54%) diff --git a/404.html b/404.html index 8ffba39a..ec7c1f5e 100644 --- a/404.html +++ b/404.html @@ -4,13 +4,13 @@ Page Not Found | SpotifyAPI-NET - +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- + \ No newline at end of file diff --git a/assets/js/031dc046.3a719087.js b/assets/js/031dc046.5b61f9ea.js similarity index 98% rename from assets/js/031dc046.3a719087.js rename to assets/js/031dc046.5b61f9ea.js index 24501253..4d9db463 100644 --- a/assets/js/031dc046.3a719087.js +++ b/assets/js/031dc046.5b61f9ea.js @@ -1 +1 @@ -"use strict";(self.webpackChunkspotify_api_docs=self.webpackChunkspotify_api_docs||[]).push([[1918],{3905:function(e,t,r){r.d(t,{Zo:function(){return c},kt:function(){return d}});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),p=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},c=function(e){var t=p(e.components);return n.createElement(s.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),m=p(r),d=o,f=m["".concat(s,".").concat(d)]||m[d]||u[d]||a;return r?n.createElement(f,i(i({ref:t},c),{},{components:r})):n.createElement(f,i({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l.mdxType="string"==typeof e?e:o,i[1]=l;for(var p=2;p wwwroot/appsettings.json\ndotnet run\n\n# Visit https://localhost:5001\n')))}f.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkspotify_api_docs=self.webpackChunkspotify_api_docs||[]).push([[1918],{3905:function(e,t,r){r.d(t,{Zo:function(){return c},kt:function(){return d}});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),p=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},c=function(e){var t=p(e.components);return n.createElement(s.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),m=p(r),d=o,f=m["".concat(s,".").concat(d)]||m[d]||u[d]||a;return r?n.createElement(f,i(i({ref:t},c),{},{components:r})):n.createElement(f,i({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l.mdxType="string"==typeof e?e:o,i[1]=l;for(var p=2;p wwwroot/appsettings.json\ndotnet run\n\n# Visit https://localhost:5001\n')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0951e901.70b91895.js b/assets/js/0951e901.7eba1710.js similarity index 99% rename from assets/js/0951e901.70b91895.js rename to assets/js/0951e901.7eba1710.js index 633ad40d..b9be8246 100644 --- a/assets/js/0951e901.70b91895.js +++ b/assets/js/0951e901.7eba1710.js @@ -1 +1 @@ -"use strict";(self.webpackChunkspotify_api_docs=self.webpackChunkspotify_api_docs||[]).push([[8790],{3905:function(e,t,a){a.d(t,{Zo:function(){return u},kt:function(){return d}});var n=a(7294);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function p(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=n.createContext({}),k=function(e){var t=n.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):p(p({},t),e)),a},u=function(e){var t=k(e.components);return n.createElement(o.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),m=k(a),d=r,c=m["".concat(o,".").concat(d)]||m[d]||s[d]||l;return a?n.createElement(c,p(p({ref:t},u),{},{components:a})):n.createElement(c,p({ref:t},u))}));function d(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=a.length,p=new Array(l);p[0]=m;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i.mdxType="string"==typeof e?e:r,p[1]=i;for(var k=2;k Console.WriteLine(device.Name));\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"getplayback"},"GetPlayback"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Get information about the user\u2019s current playback state, including track, track progress, and active device.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[market]"),(0,l.kt)("td",{parentName:"tr",align:null},"An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"DE"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"PlaybackContext context = _spotify.GetPlayback();\nif(context.Item != null)\n Console.WriteLine(context.Item.Name)); //Print the current song\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"getplayingtrack"},"GetPlayingTrack"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Get the object currently being played on the user\u2019s Spotify account.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[market]"),(0,l.kt)("td",{parentName:"tr",align:null},"An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"DE"'))))),(0,l.kt)("p",null,"This is a simpler (less data) version of ",(0,l.kt)("inlineCode",{parentName:"p"},"GetPlayback")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"PlaybackContext context = _spotify.GetPlayingTrack();\nif(context.Item != null)\n Console.WriteLine(context.Item.Name)); //Print the current song\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"transferplayback"},"TransferPlayback"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Transfer playback to a new device and determine if it should start playing.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"deviceIds or deviceId"),(0,l.kt)("td",{parentName:"tr",align:null},"A JSON array containing the ID of the device on which playback should be started/transferred"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"play"),(0,l.kt)("td",{parentName:"tr",align:null},"true: ensure playback happens on new device, false: keep current playback state"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"true"))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},'ErrorResponse error = _spotify.TransferPlayback("XXXX-XXXX-XXXX-XXXX");\n')),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"resumeplayback"},"ResumePlayback"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Start a new context or resume current playback on the user\u2019s active device.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"contextUri"),(0,l.kt)("td",{parentName:"tr",align:null},"Spotify URI of the context to play"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"spotify:album:1Je1IMUlBXcx1Fz0WE7oPT"'))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uris"),(0,l.kt)("td",{parentName:"tr",align:null},"An array of the Spotify track URIs to play."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'new List { "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" }'))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"offset"),(0,l.kt)("td",{parentName:"tr",align:null},"Indicates from where in the context playback should start. Only available when context_uri corresponds to an album or playlist object, or when the uris parameter is used."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"0"))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},'ErrorResponse error = _spotify.ResumePlayback(uris: new List { "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" });\n')),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"pauseplayback"},"PausePlayback"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Pause playback on the user\u2019s account.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.PausePlayback();\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"skipplaybacktonext"},"SkipPlaybackToNext"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Skips to next track in the user\u2019s queue.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.SkipPlaybackToNext();\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"skipplaybacktoprevious"},"SkipPlaybackToPrevious"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Skips to previous track in the user\u2019s queue.\nNote that this will ALWAYS skip to the previous track, regardless of the current track\u2019s progress.\nReturning to the start of the current track should be performed using the ",(0,l.kt)("a",{parentName:"p",href:"https://api.spotify.com/v1/me/player/seek"},"https://api.spotify.com/v1/me/player/seek")," endpoint.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.SkipPlaybackToPrevious();\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"seekplayback"},"SeekPlayback"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Seeks to the given position in the user\u2019s currently playing track.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"positionMs"),(0,l.kt)("td",{parentName:"tr",align:null},"The position in milliseconds to seek to. Must be a positive number. Passing in a position that is greater than the length of the track will cause the player to start playing the next song."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"50"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.SeekPlayback(50);\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"setrepeatmode"},"SetRepeatMode"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Set the repeat mode for the user\u2019s playback. Options are repeat-track, repeat-context, and off.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"state"),(0,l.kt)("td",{parentName:"tr",align:null},"track, context or off."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"RepeatState.Track"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.SetRepeatMode(RepeatState.Track);\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"setvolume"},"SetVolume"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Set the volume for the user\u2019s current playback device.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"volumePercent"),(0,l.kt)("td",{parentName:"tr",align:null},"Integer. The volume to set. Must be a value from 0 to 100 inclusive."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"50"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.SetVolume(50);\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"setshuffle"},"SetShuffle"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Toggle shuffle on or off for user\u2019s playback.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"shuffle"),(0,l.kt)("td",{parentName:"tr",align:null},"True or False"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"false"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.SetShuffle(false);\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"addtoqueue"},"AddToQueue"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Add an Item to the User's Playback Queue. BETA.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uri"),(0,l.kt)("td",{parentName:"tr",align:null},"The uri of the item to add to the queue. Must be a track or an episode uri."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"spotify:track:7zrCVKp6x0AtolOsn2iMif"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},'ErrorResponse error = _spotify.AddToQueue("spotify:track:7zrCVKp6x0AtolOsn2iMif");\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkspotify_api_docs=self.webpackChunkspotify_api_docs||[]).push([[8790],{3905:function(e,t,a){a.d(t,{Zo:function(){return u},kt:function(){return d}});var n=a(7294);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function p(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=n.createContext({}),k=function(e){var t=n.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):p(p({},t),e)),a},u=function(e){var t=k(e.components);return n.createElement(o.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),m=k(a),d=r,c=m["".concat(o,".").concat(d)]||m[d]||s[d]||l;return a?n.createElement(c,p(p({ref:t},u),{},{components:a})):n.createElement(c,p({ref:t},u))}));function d(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=a.length,p=new Array(l);p[0]=m;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i.mdxType="string"==typeof e?e:r,p[1]=i;for(var k=2;k Console.WriteLine(device.Name));\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"getplayback"},"GetPlayback"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Get information about the user\u2019s current playback state, including track, track progress, and active device.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[market]"),(0,l.kt)("td",{parentName:"tr",align:null},"An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"DE"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"PlaybackContext context = _spotify.GetPlayback();\nif(context.Item != null)\n Console.WriteLine(context.Item.Name)); //Print the current song\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"getplayingtrack"},"GetPlayingTrack"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Get the object currently being played on the user\u2019s Spotify account.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[market]"),(0,l.kt)("td",{parentName:"tr",align:null},"An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"DE"'))))),(0,l.kt)("p",null,"This is a simpler (less data) version of ",(0,l.kt)("inlineCode",{parentName:"p"},"GetPlayback")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"PlaybackContext context = _spotify.GetPlayingTrack();\nif(context.Item != null)\n Console.WriteLine(context.Item.Name)); //Print the current song\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"transferplayback"},"TransferPlayback"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Transfer playback to a new device and determine if it should start playing.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"deviceIds or deviceId"),(0,l.kt)("td",{parentName:"tr",align:null},"A JSON array containing the ID of the device on which playback should be started/transferred"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"play"),(0,l.kt)("td",{parentName:"tr",align:null},"true: ensure playback happens on new device, false: keep current playback state"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"true"))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},'ErrorResponse error = _spotify.TransferPlayback("XXXX-XXXX-XXXX-XXXX");\n')),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"resumeplayback"},"ResumePlayback"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Start a new context or resume current playback on the user\u2019s active device.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"contextUri"),(0,l.kt)("td",{parentName:"tr",align:null},"Spotify URI of the context to play"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"spotify:album:1Je1IMUlBXcx1Fz0WE7oPT"'))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uris"),(0,l.kt)("td",{parentName:"tr",align:null},"An array of the Spotify track URIs to play."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'new List { "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" }'))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"offset"),(0,l.kt)("td",{parentName:"tr",align:null},"Indicates from where in the context playback should start. Only available when context_uri corresponds to an album or playlist object, or when the uris parameter is used."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"0"))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},'ErrorResponse error = _spotify.ResumePlayback(uris: new List { "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" });\n')),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"pauseplayback"},"PausePlayback"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Pause playback on the user\u2019s account.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.PausePlayback();\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"skipplaybacktonext"},"SkipPlaybackToNext"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Skips to next track in the user\u2019s queue.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.SkipPlaybackToNext();\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"skipplaybacktoprevious"},"SkipPlaybackToPrevious"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Skips to previous track in the user\u2019s queue.\nNote that this will ALWAYS skip to the previous track, regardless of the current track\u2019s progress.\nReturning to the start of the current track should be performed using the ",(0,l.kt)("a",{parentName:"p",href:"https://api.spotify.com/v1/me/player/seek"},"https://api.spotify.com/v1/me/player/seek")," endpoint.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.SkipPlaybackToPrevious();\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"seekplayback"},"SeekPlayback"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Seeks to the given position in the user\u2019s currently playing track.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"positionMs"),(0,l.kt)("td",{parentName:"tr",align:null},"The position in milliseconds to seek to. Must be a positive number. Passing in a position that is greater than the length of the track will cause the player to start playing the next song."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"50"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.SeekPlayback(50);\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"setrepeatmode"},"SetRepeatMode"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Set the repeat mode for the user\u2019s playback. Options are repeat-track, repeat-context, and off.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"state"),(0,l.kt)("td",{parentName:"tr",align:null},"track, context or off."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"RepeatState.Track"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.SetRepeatMode(RepeatState.Track);\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"setvolume"},"SetVolume"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Set the volume for the user\u2019s current playback device.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"volumePercent"),(0,l.kt)("td",{parentName:"tr",align:null},"Integer. The volume to set. Must be a value from 0 to 100 inclusive."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"50"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.SetVolume(50);\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"setshuffle"},"SetShuffle"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Toggle shuffle on or off for user\u2019s playback.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"shuffle"),(0,l.kt)("td",{parentName:"tr",align:null},"True or False"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"false"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},"ErrorResponse error = _spotify.SetShuffle(false);\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"addtoqueue"},"AddToQueue"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"Add an Item to the User's Playback Queue. BETA.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Parameters")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Example"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uri"),(0,l.kt)("td",{parentName:"tr",align:null},"The uri of the item to add to the queue. Must be a track or an episode uri."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},"spotify:track:7zrCVKp6x0AtolOsn2iMif"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"[deviceId]"),(0,l.kt)("td",{parentName:"tr",align:null},"The id of the device this command is targeting. If not supplied, the user's currently active device is the target."),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"},'"XXXX-XXXX-XXXX-XXXX"'))))),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Usage")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-csharp"},'ErrorResponse error = _spotify.AddToQueue("spotify:track:7zrCVKp6x0AtolOsn2iMif");\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/10f76bbd.c3192713.js b/assets/js/10f76bbd.01cb71bf.js similarity index 99% rename from assets/js/10f76bbd.c3192713.js rename to assets/js/10f76bbd.01cb71bf.js index 08fa2fe5..59f59308 100644 --- a/assets/js/10f76bbd.c3192713.js +++ b/assets/js/10f76bbd.01cb71bf.js @@ -1 +1 @@ -"use strict";(self.webpackChunkspotify_api_docs=self.webpackChunkspotify_api_docs||[]).push([[8897],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return d}});var o=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=o.createContext({}),l=function(e){var t=o.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=l(e.components);return o.createElement(p.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){var t=e.children;return o.createElement(o.Fragment,{},t)}},h=o.forwardRef((function(e,t){var n=e.components,r=e.mdxType,a=e.originalType,p=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),h=l(n),d=r,y=h["".concat(p,".").concat(d)]||h[d]||c[d]||a;return n?o.createElement(y,i(i({ref:t},u),{},{components:n})):o.createElement(y,i({ref:t},u))}));function d(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var a=n.length,i=new Array(a);i[0]=h;var s={};for(var p in t)hasOwnProperty.call(t,p)&&(s[p]=t[p]);s.originalType=e,s.mdxType="string"==typeof e?e:r,i[1]=s;for(var l=2;l