public TumblrClient(HttpMessageHandler handler, TumblrClientCredentials client, TumblrBaseCredentials token)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            ClientDetail = new TumblrClientDetail
            {
                ClientCreds = client
            };

            if (token != null)
            {
                handler = token.Setup(ClientDetail, client, handler);
            }
            else
            {
                ClientDetail.UseApiKey = true;
            }

            ClientDetail.Client  = handler == null ? new HttpClient() : new HttpClient(handler);
            ClientDetail.OnError = HandleError;
        }
 public TumblrClient(TumblrClientCredentials client, TumblrBaseCredentials token) : this(null, client, token)
 {
 }