I'm writing a function in my python class that 'deletes' a song from a webservice.
In my __ init__ method I initialize self.API, self.SONG_URL, self.RESET_URL and self.SITE_URL. The delete function is what's not working properly.
    def delete_song(self,id):
                song = self.get_song(id)
                r = requests.delete(self.SONG_URL + str(id), data=json.dumps(song))  ##maybe not movie?
I tried to model it after my (correctly working) 'set_song_title' function
     def set_song_title(self,id,title):
            song = self.get_song(id)
            song['title'] = 'Something Else'
            song['apikey'] = self.API
            r = requests.put(self.SONG_URL + str(id), data = json.dumps(song)) #put
Thought I'd include that if it could help. Any thoughts? Maybe I shouldn't pass song? Or maybe I shouldn't invoke get? Thank you!
 
    