rinukkusu / spotify-dart

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

Expand shortened spotify url #200

Closed hayribakici closed 9 months ago

hayribakici commented 9 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 9 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 9 months ago

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

hayribakici commented 9 months ago

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