| Package | Description |
|---|---|
| com.fangcloud.sdk | |
| com.fangcloud.sdk.auth |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
YfyRequestUtil.doGetNoAuth(YfyRequestConfig requestConfig,
String host,
String path,
Map<String,String> params,
List<HttpRequestor.Header> headers,
Class<T> tClass) |
static <T> T |
YfyRequestUtil.doPostInAuth(YfyRequestConfig requestConfig,
String host,
String path,
Map<String,String> params,
Class<T> tClass)
only use in oauth server, user content-type application/x-www-form-urlencoded
|
static <T> T |
YfyRequestUtil.doPostNoAuth(YfyRequestConfig requestConfig,
String host,
String path,
YfyArg arg,
List<HttpRequestor.Header> headers,
Class<T> tClass)
only use in api server, user content-type application/json
|
| Constructor and Description |
|---|
YfyClient(K key,
YfyRequestConfig requestConfig,
String accessToken,
String refreshToken) |
YfyClient(K key,
YfyRequestConfig requestConfig,
String accessToken,
String refreshToken,
YfyRefreshListener<K> refreshListener) |
YfyClient(YfyRequestConfig requestConfig,
String accessToken) |
YfyClientFactory(int maxCapacity,
YfyRequestConfig requestConfig)
Get a YfyClientFactory to build YfyClient with the same arguments
|
YfyClientFactory(int maxCapacity,
YfyRequestConfig requestConfig,
YfyRefreshListener<T> refreshListener)
Get a YfyClientFactory to build YfyClient with the same arguments
|
| Constructor and Description |
|---|
YfyWebAuth(YfyRequestConfig requestConfig)
Creates a new instance that will perform the OAuth2 authorization flow using the given OAuth
request configuration.
|
Copyright © 2017 YiFangYun. All rights reserved.