Example #1
0
        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));
        }
Example #2
0
        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));
        }