public PartnerAccessToken(ICredentials credentials, IEndpoint endpoint, IApiResponse response, IScopes scopes)
 {
     m_credentials = credentials;
     m_endpoint    = endpoint;
     m_response    = response;
     m_scopes      = scopes;
 }
 public RequestAuthorization(ICredentials credentials, IScopes requestedScopes)
     : base(
         "api/v1/auth/token",
         HttpMethod.Post,
         "grant_type=client_credentials" +
         $"&client_id={credentials.Identifier()}" +
         $"&client_secret={credentials.Secret()}" +
         $"&scope={string.Join(" ", requestedScopes.Required())}")
 {
 }
 public PartnerAccessTokenBuilder WithScopes(IScopes value)
 {
     m_scopes = value;
     return(this);
 }
 public RequestAuthorizationBuilder WithScopes(IScopes value)
 {
     m_scopes = value;
     return(this);
 }