Thank you for the reply. First of all, I agree with everything you mentioned. Like you, I have not programed in C# for 10 years! :-). I will dump Atlassian.SDK as I felt it is not the worth the bother considering my API Client invokes only 3 JIRA functions.
a) rest/api/2/search
b) rest/api/2/project
c) rest/api/2/issue/{id}
My API Client is simply a report generator extracting data from Jira. It is not a web client. As you mentioned above, implementing the OAuth 2.0 will be tricky at the machine-2-machine level. I will have to make a decision on which basic or Oauth 2.0 should I use.
I have shared 2 sample C# programs for anyone who wants to learn basic auth. Each program use RESTSHARP and HTTPCLIENT separately. The third one is a class (incomplete) used for JSON deserialisation.
The sample C# Oauth 2.0 program will be forthcoming once I figured out how to use the re-fresh token after the token expires. NB: To get the refresh token I appended “offline_access20%” in the scope parameter.
Cheers, Anthony


