We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
this is not issue but request, in proxy class ObtainAccessToken, when request is made to ontime
var authResponse = baseRequest.Get("oauth2/token", tokenParam); // Store access token and Access response data AccessToken = authResponse.AccessToken;
that response has additional data that could be used
my modified part
public class AuthResponse { [JsonProperty("access_token")] public string AccessToken { get; set; } [JsonProperty("data")] public AuthResponseData AccessTokenData { get; set; } }
public class AuthResponseData { [JsonProperty("id")] public string UserId { get; set; } [JsonProperty("first_name")] public string UserFirstName { get; set; } [JsonProperty("last_name")] public string UserLastName { get; set; } [JsonProperty("email")] public string UserEmail { get; set; } [JsonIgnore] public string UserLoginName { get; set; } }
could you include that into source, AuthResponseData?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
this is not issue but request, in proxy class ObtainAccessToken, when request is made to ontime
var authResponse = baseRequest.Get("oauth2/token", tokenParam);
// Store access token and Access response data
AccessToken = authResponse.AccessToken;
that response has additional data that could be used
my modified part
public class AuthResponse
{
[JsonProperty("access_token")]
public string AccessToken { get; set; }
[JsonProperty("data")]
public AuthResponseData AccessTokenData { get; set; }
}
public class AuthResponseData
{
[JsonProperty("id")]
public string UserId { get; set; }
[JsonProperty("first_name")]
public string UserFirstName { get; set; }
[JsonProperty("last_name")]
public string UserLastName { get; set; }
[JsonProperty("email")]
public string UserEmail { get; set; }
[JsonIgnore]
public string UserLoginName { get; set; }
}
could you include that into source, AuthResponseData?
The text was updated successfully, but these errors were encountered: