EVOLUTION-MANAGER
Edit File: set_my_volume.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Set User Device Volume</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for set_my_volume {spotifyr}"><tr><td>set_my_volume {spotifyr}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Set User Device Volume</h2> <h3>Description</h3> <p>Set the volume for the user’s current playback device. </p> <h3>Usage</h3> <pre> set_my_volume( volume_percent = 50, device_id = NULL, authorization = get_spotify_authorization_code() ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>volume_percent</code></td> <td> <p>Required integer value. The volume to set. Must be a value from 0 to 100 inclusive. Defaults to <code>50</code>.</p> </td></tr> <tr valign="top"><td><code>device_id</code></td> <td> <p>Optional. The id of the device this command is targeting. If not supplied, the user’s currently active device is the target.</p> </td></tr> <tr valign="top"><td><code>authorization</code></td> <td> <p>Required. A valid access token from the Spotify Accounts service. See the <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/">Web API authorization Guide</a> for more details. Defaults to <code>spotifyr::get_spotify_access_token()</code>. The access token must have been issued on behalf of the current user. <br /> The access token must have the <code>user-modify-playback-state</code> scope authorized in order to control playback.</p> </td></tr> </table> <h3>Value</h3> <p>The response from the Spotify Web API on the <code>PUT</code> request, with a meaningful error message if the operation was not successful. </p> <hr /><div style="text-align: center;">[Package <em>spotifyr</em> version 2.2.3 <a href="00Index.html">Index</a>]</div> </body></html>