def get_signed_params(params):
 if (not isinstance(params, basestring)):
  params = urllib.urlencode(params)
 signature = hmac.new(params)
 signature.update(get_secret())
 return ((params + u'&_signature=') + signature.hexdigest())

def get_signed_params ( params ) : if ( not isinstance ( params , basestring ) ) : params = urllib . urlencode ( params ) signature = hmac . new ( params ) signature . update ( get_secret ( ) ) return ( ( params + u'&_signature=' ) + signature . hexdigest ( ) )
sign a url by appending &_signature=xxxxx to given params .