Пример #1
0
def PrepareToken():
    Code='7581b56419b5ea52abc39c0f282716e6'
    read=client.request_access_token(Code)
    access_token=read.access_token
    expires_in=read.expires_in
    r.set('access_token',access_token)
    r.expire('access_token',expires_in)
Пример #2
0
def PrepareToken():
    read=client.request_access_token(MU_MainConfig.Code)
    access_token=read.access_token
    expires_in=read.expires_in
    r.set('access_token',access_token)
    r.expire('access_token',expires_in)