19 lines
494 B
Crystal
19 lines
494 B
Crystal
# Spotify API interactions
|
|
# GET
|
|
# POST
|
|
# Need to read deep into the API and make it the most user friendly possible.
|
|
# USE THIS ---> Authorization Code Flow
|
|
# Use irs to parse the absolutely shitty json, specially the part where it gets songs from playlists
|
|
|
|
|
|
require "json"
|
|
|
|
module APISpotify
|
|
#This should be an input/variable or a direct response from a request to Spotify
|
|
json = File.open("spec/files/spotify-user-playlists.json") do |file|
|
|
JSON.parse(file)
|
|
end
|
|
end
|
|
|
|
#puts json
|