Skip to content

Commit 7d2bf51

Browse files
guides: update API key instructions (#4848)
1 parent 02b13b5 commit 7d2bf51

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

templates/csharp/guides/search/saveObjectsMovies.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SaveObjectsMovies
2020
// parse json
2121
var movies = JsonSerializer.Deserialize<List<dynamic>>(content);
2222
23-
// initiate client and index
23+
// initiate client and index with your app ID and write API key
2424
{{> snippets/init}}
2525

2626
// push data to algolia

templates/dart/guides/search/saveObjectsMovies.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'dart:convert';
33
{{> snippets/import}}
44

55
void main() async {
6-
// initiate client
6+
// initiate client with your app ID and write API key
77
{{> snippets/init}}
88

99
// read json file from url

templates/go/guides/search/saveObjectsMovies.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func saveObjectsMovies() {
2929
return
3030
}
3131

32-
// initiate client
32+
// initiate client with your app ID and write API key
3333
{{> snippets/init}}
3434

3535
// push data to algolia

templates/java/guides/search/saveObjectsMovies.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class saveObjectsMovies {
2020
List<JsonNode> movies = mapper.readValue(stream, new TypeReference<List<JsonNode>>() {});
2121
stream.close();
2222

23-
// Connect and authenticate with your Algolia app
23+
// Connect and authenticate with your Algolia app using your app ID and write API key
2424
{{> snippets/init}}
2525

2626
// Save records in Algolia index

templates/php/guides/search/saveObjectsMovies.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $url = "https://dashboard.algolia.com/api/1/sample_datasets?type=movie";
77
$response = file_get_contents($url);
88
$movies = json_decode($response ?: "[]", true);
99

10-
// Connect and authenticate with your Algolia app
10+
// Connect and authenticate with your Algolia app using your app ID and write API key
1111
{{> snippets/init}}
1212

1313
// Save records in Algolia index

templates/python/guides/search/saveObjectsMovies.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import requests
66
url = "https://dashboard.algolia.com/api/1/sample_datasets?type=movie"
77
movies = requests.get(url).json()
88

9-
# Connect and authenticate with your Algolia app
9+
# Connect and authenticate with your Algolia app using your app ID and write API key
1010
_{{> snippets/init}}
1111

1212
# Save records in Algolia index

templates/ruby/guides/search/saveObjectsMovies.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ uri = URI('https://dashboard.algolia.com/api/1/sample_datasets?type=movie')
66
response = Net::HTTP.get_response(uri)
77
movies = JSON.parse(response.body)
88

9-
# Connect and authenticate with your Algolia app
9+
# Connect and authenticate with your Algolia app using your app ID and write API key
1010
{{> snippets/init}}
1111

1212
# Save records in Algolia index

templates/scala/guides/search/saveObjectsMovies.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ object Main {
1919
val result = Source.fromURL(url).mkString
2020
val movies = JsonMethods.parse(result).extract[Seq[Map[String, Any]]]
2121
22-
// Connect and authenticate with your Algolia app
22+
// Connect and authenticate with your Algolia app using your app ID and write API key
2323
{{> snippets/init}}
2424

2525
// Save records in Algolia index

templates/swift/guides/search/saveObjectsMovies.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func saveObjectsMovies() async throws {
1616
#endif
1717
let movies = try JSONDecoder().decode([AnyCodable].self, from: data!)
1818
19-
// Connect and authenticate with your Algolia app
19+
// Connect and authenticate with your Algolia app using your app ID and write API key
2020
{{> snippets/init}}
2121

2222
do {

0 commit comments

Comments
 (0)