Spotify

https://developer.spotify.com/dashboard/applicationsarrow-up-right

Does not allow you to get friend info, must give ids and then you can see if they follow those specific ids.

Songs API

Builtin API to get the top songs for the user

Elixir - https://github.com/jsncmgs1/spotify_exarrow-up-right

        types = ["artists", "tracks"]
        ranges = ["short_term", "medium_term", "long_term"]

        all_results =
          Enum.map(types, fn type ->
            range_results =
              Enum.map(ranges, fn range ->
                url =
                  "https://api.spotify.com/v1/me/top/#{type}?time_range=#{range}&limit=#{limit}"

                %HTTPoison.Response{status_code: 200, body: rawBody} =
                  HTTPoison.get!(url, headers)

                body = Jason.decode!(rawBody)
                {range, body["items"]}
              end)
              |> Map.new()

            {type, range_results}
          end)
          |> Map.new()
          |> IO.inspect()

        json(conn, all_results)

Web Audio Player

Can play full songs in the web for a user, but doesn't have access to the full audio data

Last updated