Skip to content

Commit 8108478

Browse files
sync readme from *.erb, remove image api ref, fix google shopping test
1 parent 5de1788 commit 8108478

3 files changed

Lines changed: 6 additions & 10 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class App {
8585

8686
- Asynchronous searches for submitting non-blocking jobs and retrieving completed results from the Search Archive API
8787
- Search results stored as a [Gson](https://github.com/google/gson) for JSON and returns responses as Gson `JsonObject` / `JsonArray` with `search`, token-efficient Markdown with `md`, or raw search-engine HTML with `html`
88-
- SDK methods for the [Image API](https://serpapi.com/image-api), [Location API](https://serpapi.com/locations-api), [Search Archive API](https://serpapi.com/search-archive-api), and [Account API](https://serpapi.com/account-api)
88+
- SDK methods for the [Location API](https://serpapi.com/locations-api), [Search Archive API](https://serpapi.com/search-archive-api), and [Account API](https://serpapi.com/account-api)
8989

9090
## Response Formats
9191

@@ -112,7 +112,7 @@ Learn more about [SerpApi Markdown output](https://serpapi.com/markdown-output).
112112

113113
This library uses [Gson](https://github.com/google/gson) for JSON and returns responses as Gson `JsonObject` / `JsonArray`.
114114

115-
**This repository** is built and tested with **JDK 21** and the **Gradle wrapper** (`./gradlew`, currently Gradle 8.5). Use the wrapper so you do not need a separate Gradle install.
115+
**This repository** is built and tested with **JDK 21** and the **Gradle wrapper** (`./gradlew`, currently Gradle 9.1.0). Use the wrapper so you do not need a separate Gradle install.
116116

117117
**Consumers** of the JitPack artifact should run a JVM whose version is at least the **bytecode level** of the release you depend on (releases from this branch target **Java 21**).
118118

@@ -300,7 +300,7 @@ try {
300300

301301
Source code: [src/test/java/serpapi/example/GoogleLensTest.java](https://github.com/serpapi/serpapi-java/blob/master/src/test/java/serpapi/example/GoogleLensTest.java)
302302

303-
[See Image API documentation](https://serpapi.com/image-api) · [See Google Lens image upload documentation](https://serpapi.com/google-lens-upload-an-image)
303+
[See Google Lens image upload documentation](https://serpapi.com/google-lens-upload-an-image)
304304

305305
### Google Trends
306306

@@ -608,10 +608,6 @@ java -version
608608

609609
On Windows, install a current JDK from your vendor and point `JAVA_HOME` at it.
610610

611-
## Inspiration
612-
* https://www.baeldung.com/java-http-request
613-
* https://github.com/google/gson
614-
615611
## Contributing
616612

617613
Contributions are welcome. Make sure to read our [contributing guide](https://github.com/serpapi/serpapi-java/blob/master/CONTRIBUTING.md)

‎README.md.erb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class App {
8585

8686
- Asynchronous searches for submitting non-blocking jobs and retrieving completed results from the Search Archive API
8787
- Search results stored as a [Gson](https://github.com/google/gson) for JSON and returns responses as Gson `JsonObject` / `JsonArray` with `search`, token-efficient Markdown with `md`, or raw search-engine HTML with `html`
88-
- SDK methods for the [Image API](https://serpapi.com/image-api), [Location API](https://serpapi.com/locations-api), [Search Archive API](https://serpapi.com/search-archive-api), and [Account API](https://serpapi.com/account-api)
88+
- SDK methods for the [Location API](https://serpapi.com/locations-api), [Search Archive API](https://serpapi.com/search-archive-api), and [Account API](https://serpapi.com/account-api)
8989

9090
## Response Formats
9191

@@ -300,7 +300,7 @@ try {
300300

301301
Source code: [src/test/java/serpapi/example/GoogleLensTest.java](https://github.com/serpapi/serpapi-java/blob/master/src/test/java/serpapi/example/GoogleLensTest.java)
302302

303-
[See Image API documentation](https://serpapi.com/image-api) · [See Google Lens image upload documentation](https://serpapi.com/google-lens-upload-an-image)
303+
[See Google Lens image upload documentation](https://serpapi.com/google-lens-upload-an-image)
304304

305305
### Google Trends
306306

‎src/test/java/serpapi/example/GoogleShoppingTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class GoogleShoppingTest {
1717
@Test
1818
public void search() throws SerpApiException {
1919
// skip test if no api_key provided
20-
if(System.getenv("API_KEY") == null)
20+
if(System.getenv("SERPAPI_KEY") == null)
2121
return;
2222

2323
// setup serpapi client

0 commit comments

Comments
 (0)