Skip to content

Commit 7bb14f3

Browse files
guides: update API key instructions (#4848) (generated) [skip ci]
Co-authored-by: Lorris Saint-Genez <[email protected]>
1 parent 7d2bf51 commit 7bb14f3

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

docs/guides/csharp/src/saveObjectsMovies.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async Task Main(string[] args)
2121
// parse json
2222
var movies = JsonSerializer.Deserialize<List<dynamic>>(content);
2323

24-
// initiate client and index
24+
// initiate client and index with your app ID and write API key
2525
var client = new SearchClient(new SearchConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY"));
2626

2727
// push data to algolia

docs/guides/dart/lib/saveObjectsMovies.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'dart:convert';
33
import 'package:algolia_client_search/algolia_client_search.dart';
44

55
void main() async {
6-
// initiate client
6+
// initiate client with your app ID and write API key
77
final client =
88
SearchClient(appId: 'ALGOLIA_APPLICATION_ID', apiKey: 'ALGOLIA_API_KEY');
99

docs/guides/go/src/saveObjectsMovies.go

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
client, err := search.NewClient("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
3434
if err != nil {
3535
// The client can fail to initialize if you pass an invalid parameter.

docs/guides/java/src/test/java/com/algolia/saveObjectsMovies.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static void main(String[] args) throws Exception {
2121
List<JsonNode> movies = mapper.readValue(stream, new TypeReference<List<JsonNode>>() {});
2222
stream.close();
2323

24-
// Connect and authenticate with your Algolia app
24+
// Connect and authenticate with your Algolia app using your app ID and write API key
2525
SearchClient client = new SearchClient("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY");
2626

2727
// Save records in Algolia index

docs/guides/php/src/saveObjectsMovies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
$response = file_get_contents($url);
99
$movies = json_decode($response ?: '[]', true);
1010

11-
// Connect and authenticate with your Algolia app
11+
// Connect and authenticate with your Algolia app using your app ID and write API key
1212
$client = SearchClient::create('ALGOLIA_APPLICATION_ID', 'ALGOLIA_API_KEY');
1313

1414
// Save records in Algolia index

docs/guides/python/saveObjectsMovies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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
_client = SearchClientSync("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
1111

1212
# Save records in Algolia index

docs/guides/ruby/saveObjectsMovies.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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
client = Algolia::SearchClient.create("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
1111

1212
# Save records in Algolia index

docs/guides/scala/src/main/scala/saveObjectsMovies.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ object Main {
2222
val result = Source.fromURL(url).mkString
2323
val movies = JsonMethods.parse(result).extract[Seq[Map[String, Any]]]
2424

25-
// Connect and authenticate with your Algolia app
25+
// Connect and authenticate with your Algolia app using your app ID and write API key
2626
val client = SearchClient(appId = "ALGOLIA_APPLICATION_ID", apiKey = "ALGOLIA_API_KEY")
2727

2828
// Save records in Algolia index

docs/guides/swift/Sources/saveObjectsMovies.swift

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
let client = try SearchClient(appID: "ALGOLIA_APPLICATION_ID", apiKey: "ALGOLIA_API_KEY")
2121

2222
do {

0 commit comments

Comments
 (0)