I need a parameter for the setRedirectUri method but it only takes URI. Is there a way to convert String into URI?
import com.wrapper.spotify.*;
import java.net.URI;
public class Music {
private String id;
private String secret;
public void authenticate(String id, String secret)
{
this.id = id;
this.secret = secret;
URI myAccount = new URI("<URI>");
SpotifyApi spotifyApi = new SpotifyApi.Builder()
.setClientId(this.id)
.setClientSecret(this.secret)
.setRedirectUri(myAccount)
.build();
}
}