retrieveUserCodeUsingAPIKey method
Retrieve a user_code that is part of an in-progress Device Authorization Grant.
This API is useful if you want to build your own login workflow to complete a device grant.
This request will require an API key.
@param {String} user_code The end-user verification code. @returns {Promise<ClientResponse
Implementation
Future<ClientResponse<void, void>> retrieveUserCodeUsingAPIKey(
String user_code) {
var body = <String, dynamic>{};
body['user_code'] = user_code;
return _startAnonymous<void, void>()
.withUri('/oauth2/device/user-code')
.withFormData(body)
.withMethod('GET')
.go();
}