I have a base JIRA url and an access token. I read somewhere that JIRA has deprecated the traditional flow to call the API via username and password. So, now how to access the Jira API using either of the below methods:
public static Jira CreateRestClient(IJiraRestClient restClient, JiraCache cache = null)
or
public static Jira CreateOAuthRestClient(string url, string consumerKey, string consumerSecret, string oAuthAccessToken, string oAuthTokenSecret, JiraOAuthSignatureMethod oAuthSignatureMethod = JiraOAuthSignatureMethod.RsaSha1, JiraRestClientSettings settings = null)
A sample code would be appreciated. Thanks in advance.