public ToornamentClient(ToornamentOptions options, string scopes = ToornamentScopes.Organizer.All) { Options = options; HttpClient = HttpClients.GetOrAdd(options.ClientId + "_" + scopes, new ToornamentHttpClient(options, scopes)); Organizer = new ToornamentOrganizerClient(HttpClient); }
public ToornamentHttpClient(ToornamentOptions options, string scopes) : base(new AuthenticationRequestHandler(options.ApiKey, options.ClientId, options.ClientSecret, scopes)) { }