def mozcall(url, bitmask, label):
  from time import time, sleep
  from urllib import quote_plus
  url = quote_plus(url)
  accessID = globs.config['mozid']
  expires = int(time()) + 3000
  signature = mozsig(expires)
  endpoint =  "http://lsapi.seomoz.com/linkscape/url-metrics/%s?" % (url)
  parameters = "Cols=%s&AccessID=%s&Expires=%s&Signature=%s" % (bitmask, accessID, expires, signature)
  out("Sleeping for 5 seconds (for Moz).")
  sleep(5)
  return jsonapi(endpoint, parameters, label)
dataset/ETHPy150Open miklevin/pipulate/common.py/mozcall/original