public class YfyAppInfo extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkKeyArg(String key) |
static void |
checkSecretArg(String secret) |
static YfyHost |
getHost()
Returns the Fangcloud host configuration.
|
static String |
getKey()
Returns the Fangcloud app key (OAuth calls this the consumer key).
|
static String |
getSecret()
Returns the Fangcloud app secret (OAuth calls this the consumer secret).
|
static String |
getTokenPartError(String s) |
static void |
initAppInfo(String key,
String secret)
Must be invoked before sending any request
|
public static void initAppInfo(String key, String secret)
key - Fangcloud app key (see getKey())secret - Fangcloud app secret (see getSecret())public static String getKey()
public static String getSecret()
Make sure that this is kept a secret. Someone with your app secret can impesonate your application. People sometimes ask for help on the Fangcloud API forums and copy/paste their code, which sometimes includes their app secret. Do not do that.
public static YfyHost getHost()
This is almost always YfyHost.DEFAULT. Typically this value will only be
different for testing purposes.
public static void checkKeyArg(String key)
public static void checkSecretArg(String secret)
Copyright © 2018 YiFangYun. All rights reserved.