public MastodonApi(MastodonApiConfig config, HttpClient httpClient = null) { this.config = config; apiBase = new ApiClientBase(config.InstanceUrl, httpClient ?? MastodonApi.GetDefaultHttpClient()); authorizationHeader = new Dictionary <string, string> { { "Authorization", $"Bearer {config.AccessToken}" } }; }
public MastodonAuthClient(Uri instanceUrl, HttpClient httpClient = null) { apiBase = new ApiClientBase(instanceUrl, httpClient ?? MastodonApi.GetDefaultHttpClient()); }