rinukkusu / spotify-dart

A dart library for interfacing with the Spotify API.
BSD 3-Clause "New" or "Revised" License
191 stars 91 forks source link

Expand shortened spotify url #200

Closed hayribakici closed 5 months ago

hayribakici commented 5 months ago

This PR fixes #154 and adds a new method spotifyApi.expandLink(shortenedUrl) to expand shortened links.

In order that to happen the underlying http library has been updated to version 1.2.0.

hayribakici commented 5 months ago

@rinukkusu currently library users have to have a spotifyApi instance to access this new function. However, it would also work if we make this method static. I am currently on the fence with this one, what do you think?

rinukkusu commented 5 months ago

Let's make it static then! Sounds like a good idea.

hayribakici commented 5 months ago

oh, I was mistaken. Nevermind. It's not possible to make it static, since we are using the requestWrapper() method.