Skip to content

Commit c74b210

Browse files
JimmyAppeltJohnnyCrazy
authored andcommitted
Changed to PUT method (JohnnyCrazy#167)
1 parent 17639a9 commit c74b210

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎SpotifyAPI/Web/SpotifyWebAPI.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,7 +1985,7 @@ public ErrorResponse SeekPlayback(int positionMs, string deviceId = "")
19851985
/// <returns></returns>
19861986
public ErrorResponse SetRepeatMode(RepeatState state, string deviceId = "")
19871987
{
1988-
return UploadData<ErrorResponse>(_builder.SetRepeatMode(state, deviceId), string.Empty);
1988+
return UploadData<ErrorResponse>(_builder.SetRepeatMode(state, deviceId), string.Empty, "PUT");
19891989
}
19901990

19911991
/// <summary>
@@ -1996,7 +1996,7 @@ public ErrorResponse SetRepeatMode(RepeatState state, string deviceId = "")
19961996
/// <returns></returns>
19971997
public ErrorResponse SetVolume(int volumePercent, string deviceId = "")
19981998
{
1999-
return UploadData<ErrorResponse>(_builder.SetVolume(volumePercent, deviceId), string.Empty);
1999+
return UploadData<ErrorResponse>(_builder.SetVolume(volumePercent, deviceId), string.Empty, "PUT");
20002000
}
20012001

20022002
/// <summary>
@@ -2007,7 +2007,7 @@ public ErrorResponse SetVolume(int volumePercent, string deviceId = "")
20072007
/// <returns></returns>
20082008
public ErrorResponse SetShuffle(bool shuffle, string deviceId = "")
20092009
{
2010-
return UploadData<ErrorResponse>(_builder.SetShuffle(shuffle, deviceId), string.Empty);
2010+
return UploadData<ErrorResponse>(_builder.SetShuffle(shuffle, deviceId), string.Empty, "PUT");
20112011
}
20122012

20132013
#endregion
@@ -2248,4 +2248,4 @@ private Task<Tuple<ResponseInfo, T>> DownloadDataAltAsync<T>(string url)
22482248

22492249
#endregion Util
22502250
}
2251-
}
2251+
}

0 commit comments

Comments
 (0)