async public void getToken() { var client_account = new ImgurClient(client_id, client_secret); var endpoint = new OAuth2Endpoint(client_account); imgur_token = await endpoint.GetTokenByCodeAsync(code); }
public async Task setImgurToken(string _code) { var client_account = new ImgurClient(client_id, client_secret); var endpoint = new OAuth2Endpoint(client_account); imgur_token = await endpoint.GetTokenByCodeAsync(_code); }