@@ -49,7 +49,6 @@ public final class SynthientClient implements AutoCloseable {
4949 /** The SDK version, sent in the {@code User-Agent} header. */
5050 public static final String VERSION = "1.0.0" ;
5151
52- /** The production API. */
5352 public static final String DEFAULT_BASE_URL = "https://api.synthient.com/api/v4" ;
5453
5554 private static final int MAX_BATCH_SIZE = 1000 ;
@@ -68,11 +67,7 @@ public SynthientClient() {
6867 this (builder ());
6968 }
7069
71- /**
72- * Creates a client with an API key.
73- *
74- * @throws IllegalArgumentException if the key is blank or not printable ASCII
75- */
70+ /** @throws IllegalArgumentException if the key is blank or not printable ASCII */
7671 public SynthientClient (String apiKey ) {
7772 this (builder ().apiKey (apiKey ));
7873 }
@@ -99,13 +94,12 @@ private SynthientClient(Builder builder) {
9994 builder .sleeper );
10095 }
10196
102- /** Returns a builder for a client with custom options. */
10397 public static Builder builder () {
10498 return new Builder ();
10599 }
106100
107101 /**
108- * Looks up an IP address. Costs one credit; failed lookups are free.
102+ * Costs one credit; failed lookups are free.
109103 *
110104 * @param ip an IPv4 or IPv6 address literal
111105 * @throws IllegalArgumentException if {@code ip} is not an address literal; no request is sent
@@ -200,7 +194,7 @@ public void health() {
200194 transport .call ("GET" , transport .url ("health" ).build (), null , Transport .Policy .RATE_LIMIT , JsonNode .class );
201195 }
202196
203- /** Returns the proxies feed. Streaming needs the {@code PROXY_FIREHOSE} scope and exports {@code PROXY_FEEDS}. */
197+ /** Streaming needs the {@code PROXY_FIREHOSE} scope and exports {@code PROXY_FEEDS}. */
204198 public Feed <ProxyEvent > proxies () {
205199 return new Feed <>(transport , "feeds/proxies" , ProxyEvent .class );
206200 }
@@ -210,7 +204,7 @@ public Feed<AnonymizerEvent> anonymizers() {
210204 return new Feed <>(transport , "feeds/anonymizers" , AnonymizerEvent .class );
211205 }
212206
213- /** Returns the torrents feed. */
207+ /** Returns the BitTorrent DHT and tracker feed. */
214208 public Feed <TorrentEvent > torrents () {
215209 return new Feed <>(transport , "feeds/torrents" , TorrentEvent .class );
216210 }
@@ -275,7 +269,7 @@ record BatchResponse(@JsonProperty("results") List<IpInfo> results) {
275269 }
276270 }
277271
278- /** Builds a {@link SynthientClient}. A builder can be reused; each build creates an independent client. */
272+ /** A builder can be reused; each build creates an independent client. */
279273 public static final class Builder {
280274 private @ Nullable String apiKey ;
281275 private HttpUrl baseUrl = HttpUrl .get (DEFAULT_BASE_URL );
@@ -289,14 +283,14 @@ public static final class Builder {
289283
290284 private Builder () {}
291285
292- /** Sets the API key. Without one, the client reads {@code SYNTHIENT_API_KEY}. */
286+ /** Defaults to the {@code SYNTHIENT_API_KEY} environment variable . */
293287 public Builder apiKey (String apiKey ) {
294288 this .apiKey = requireNonNull (apiKey , "apiKey" );
295289 return this ;
296290 }
297291
298292 /**
299- * Sets the API base URL, by default {@value SynthientClient#DEFAULT_BASE_URL}.
293+ * Defaults to {@value SynthientClient#DEFAULT_BASE_URL}.
300294 *
301295 * @throws IllegalArgumentException if the URL is not http or https, has no host, or has user info, a
302296 * query, or a fragment
0 commit comments