title: Return types for OAuth2.0 Methods (C#)
body: <p>I'm creating a C# application which makes a REST call and used OAuth2.0 authentication.</p>
  
  <p>For OAuth2.0, the process is that a token is obtained by POST, providing client_id, client_secret and grant_type. </p>
  
  <p>When making a GET call thereafter, the token that is returned from the POST needs to be provided in the header field. </p>
  
  <p>So, this brings up 2 questions:</p>
  
  <ol>
  <li>In the POST method to obtain the token, a Json is returned which contains multiple attributes (including the token and timeout period). As it is the token that is required, JsonConvert (<em>var token = 
  JsonConvert.DeserializeObject>(responseJson)["access_token"].ToString();</em>) is used to just bring this and map the variable to a string. And the method returns this variable as a string. For requesting a token, is using a string as the return type for the function a correct approach?</li>
  <li>In the GET method to obtain the data from the REST service call, the token is passed in with a search criteria, this returns a Json result. JsonConvert.DeserializeObject&lt;> is used to map this to the .NET objects. What should the return for this function be? It isn't string as it contains multiple variables.</li>
  </ol>