Blazor & WASM in combination to get statistics from Spotify API for performing the song analysis. With separate microservices for auth, Spotify, user data tracking, and application, connected through gRPC with Polly.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

TokenRequest.cs 608B

1234567891011121314151617181920212223242526
  1. using Newtonsoft.Json;
  2. using ProtoBuf;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace GrpcShared.DTO.Auth
  9. {
  10. [ProtoContract]
  11. public class TokenRequest
  12. {
  13. [ProtoMember(1)]
  14. [JsonProperty("grant_type")]
  15. public string GrantType { get; set; } = "authorization_code";
  16. [ProtoMember(2)]
  17. [JsonProperty("code")]
  18. public string? Code { get; set; }
  19. [ProtoMember(3)]
  20. [JsonProperty("redirect_uri")]
  21. public string? RedirectUri { get; set; }
  22. }
  23. }