Example #1
0
def tagscloud(hash, publc):
	x = Videos()
	
	# create a hash
	m = md5.new(publc + _private_key())
	
	# check if this hash is equal to the one transmitted
	if m.hexdigest() == hash:
		data = x.getAllTags()
		dat = {
			'id': 1234, # just a random id
			'data': data
		}
	else:
		dat = {
			'id': 1234, # just a random id
			'data': False
		}
	return dat