Changed to PUT method (#167)

This commit is contained in:
Jim 2017-07-16 22:28:56 +02:00 committed by Jonas Dellinger
parent 17639a9b54
commit c74b210120

View File

@ -1985,7 +1985,7 @@ namespace SpotifyAPI.Web
/// <returns></returns>
public ErrorResponse SetRepeatMode(RepeatState state, string deviceId = "")
{
return UploadData<ErrorResponse>(_builder.SetRepeatMode(state, deviceId), string.Empty);
return UploadData<ErrorResponse>(_builder.SetRepeatMode(state, deviceId), string.Empty, "PUT");
}
/// <summary>
@ -1996,7 +1996,7 @@ namespace SpotifyAPI.Web
/// <returns></returns>
public ErrorResponse SetVolume(int volumePercent, string deviceId = "")
{
return UploadData<ErrorResponse>(_builder.SetVolume(volumePercent, deviceId), string.Empty);
return UploadData<ErrorResponse>(_builder.SetVolume(volumePercent, deviceId), string.Empty, "PUT");
}
/// <summary>
@ -2007,7 +2007,7 @@ namespace SpotifyAPI.Web
/// <returns></returns>
public ErrorResponse SetShuffle(bool shuffle, string deviceId = "")
{
return UploadData<ErrorResponse>(_builder.SetShuffle(shuffle, deviceId), string.Empty);
return UploadData<ErrorResponse>(_builder.SetShuffle(shuffle, deviceId), string.Empty, "PUT");
}
#endregion
@ -2248,4 +2248,4 @@ namespace SpotifyAPI.Web
#endregion Util
}
}
}