Esempio n. 1
0
def deletePlaylist(hash, publc, pl_id):
	x = Playlists()
	
	# create a hash
	m = md5.new(pl_id + publc + _private_key())
	
	if m.hexdigest() == hash:
		param = {
			'pl_id': pl_id
		}
		bool = x.deletePlaylist(param)
		dat = { 'response' : bool }
	else:
		dat = { 'response': 'failed' }
		
	return dat