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