コード例 #1
0
ファイル: test_snsbase.py プロジェクト: Kelvin-Zhong/snsapi
 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
コード例 #2
0
ファイル: test_snsbase.py プロジェクト: xxr3376/snsapi
 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