Example #1
0
def deleteEmbed(hash, publc, id):
	x = Videos()
	
	# create a hash
	m = md5.new(id + publc + _private_key())
	if m.hexdigest() == hash:
		param = {
			'hash': hash,
			'id': id
		}
		bool = x.deleteEmbed(param)
		dat = { 'response' : bool }
	else:
		dat = { 'response': 'failed' }
		
	return dat