Exemplo n.º 1
0
 def _build_sns_with_token(self, seconds_after_current_time):
     from snsapi.utils import JsonDict
     import time
     token = JsonDict()
     token.expires_in = time.time() + seconds_after_current_time
     sns = SNSBase()
     sns.token = token
     return sns
Exemplo n.º 2
0
 def _build_sns_with_token(self, seconds_after_current_time):
     from snsapi.utils import JsonDict
     import time
     token = JsonDict()
     token.expires_in = time.time() + seconds_after_current_time
     sns = SNSBase()
     sns.token = token
     return sns