示例#1
0
 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);
 }
示例#2
0
 public ToornamentHttpClient(ToornamentOptions options, string scopes) : base(new AuthenticationRequestHandler(options.ApiKey, options.ClientId, options.ClientSecret, scopes))
 {
 }