getUserData static method
get user info
Implementation
static Future<User> getUserData(
String apiKey,
String apiSecretKey,
String accessToken,
String accessTokenSecret,
) async {
try {
final authParams = requestHeader(
apiKey: apiKey,
oauthToken: accessToken,
);
final params = await httpGet(
ACCOUNT_VERIFY_URI,
authHeader: authParams,
apiKey: apiKey,
apiSecretKey: apiSecretKey,
tokenSecret: accessTokenSecret,
);
return User(params);
} on Exception {
rethrow;
}
}