All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.haoxuer.discover.user.oauth.api.OauthHandler Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
package com.haoxuer.discover.user.oauth.api;

import com.haoxuer.discover.user.oauth.domain.OauthResponse;
import com.haoxuer.discover.user.oauth.domain.TokenResponse;

/**
 * oauth登陆处理类
 * 

* Created by ada on 2017/7/20. */ public interface OauthHandler { void setKey(String key); void setSecret(String secret); /** * 通过token获取用户资料 * * @param access_token * @param openid * @return */ OauthResponse login(String access_token, String openid); /** * 通过code换取令牌 * * @param code * @return */ TokenResponse getToken(String code); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy