public async Task <Result <TokenResult> > GeneratePersonalAccessToken(string tokenName) { var payload = new Payload.PersonalAccessToken { TokenName = tokenName }; var response = await _restClientService.Post <TokenResult>(GetUrl("generatePersonalAccessToken"), payload); return(ServiceHelper.MapResponse(response)); }
public async Task <Result <bool> > RemovePersonalAccessToken(string tokenName) { var payload = new Payload.PersonalAccessToken { TokenName = tokenName }; var response = await _restClientService.Post <CallResult>(GetUrl("removePersonalAccessToken"), payload); return(ServiceHelper.MapBoolResponse(response)); }