Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/i/m/imgur-python-HEAD/Imgur/Factory.py   imgur-python(Download)
from .Imgur import Imgur
from .RateLimit import RateLimit
from .Auth.AccessToken import AccessToken
from .Auth.Anonymous import Anonymous
 
    def build_oauth(self, access, refresh, expire_time = None):
        now = int(dt.time())
        if expire_time is None:
            return AccessToken(access, refresh, now)
        else:
            return AccessToken(access, refresh, expire_time)