예제 #1
0
파일: user.py 프로젝트: jd5688/embedible
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