LoginWithWechatCode static method
Future<UserLoginResponse>
LoginWithWechatCode(
- String code
)
Implementation
static Future<UserLoginResponse> LoginWithWechatCode(String code) async {
final channel = await Channel.getDefaultIoTManagerChannel();
final stub = UserManagerClient(channel);
StringValue stringValue = StringValue();
stringValue.value = code;
UserLoginResponse userLoginResponse =
await stub.loginWithWechatCode(stringValue);
print('GetUserLoginResponse: ${userLoginResponse}');
channel.shutdown();
return userLoginResponse;
}