Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SaveObjectsMovies
// parse json
var movies = JsonSerializer.Deserialize<List<dynamic>>(content);

// initiate client and index
// initiate client and index with your app ID and write API key
{{> snippets/init}}

// push data to algolia
Expand Down
2 changes: 1 addition & 1 deletion templates/dart/guides/search/saveObjectsMovies.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:convert';
{{> snippets/import}}

void main() async {
// initiate client
// initiate client with your app ID and write API key
{{> snippets/init}}

// read json file from url
Expand Down
2 changes: 1 addition & 1 deletion templates/go/guides/search/saveObjectsMovies.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func saveObjectsMovies() {
return
}

// initiate client
// initiate client with your app ID and write API key
{{> snippets/init}}

// push data to algolia
Expand Down
2 changes: 1 addition & 1 deletion templates/java/guides/search/saveObjectsMovies.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class saveObjectsMovies {
List<JsonNode> movies = mapper.readValue(stream, new TypeReference<List<JsonNode>>() {});
stream.close();

// Connect and authenticate with your Algolia app
// Connect and authenticate with your Algolia app using your app ID and write API key
{{> snippets/init}}

// Save records in Algolia index
Expand Down
2 changes: 1 addition & 1 deletion templates/php/guides/search/saveObjectsMovies.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $url = "https://dashboard.algolia.com/api/1/sample_datasets?type=movie";
$response = file_get_contents($url);
$movies = json_decode($response ?: "[]", true);

// Connect and authenticate with your Algolia app
// Connect and authenticate with your Algolia app using your app ID and write API key
{{> snippets/init}}

// Save records in Algolia index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import requests
url = "https://dashboard.algolia.com/api/1/sample_datasets?type=movie"
movies = requests.get(url).json()

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

# Save records in Algolia index
Expand Down
2 changes: 1 addition & 1 deletion templates/ruby/guides/search/saveObjectsMovies.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ uri = URI('https://dashboard.algolia.com/api/1/sample_datasets?type=movie')
response = Net::HTTP.get_response(uri)
movies = JSON.parse(response.body)

# Connect and authenticate with your Algolia app
# Connect and authenticate with your Algolia app using your app ID and write API key
{{> snippets/init}}

# Save records in Algolia index
Expand Down
2 changes: 1 addition & 1 deletion templates/scala/guides/search/saveObjectsMovies.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object Main {
val result = Source.fromURL(url).mkString
val movies = JsonMethods.parse(result).extract[Seq[Map[String, Any]]]

// Connect and authenticate with your Algolia app
// Connect and authenticate with your Algolia app using your app ID and write API key
{{> snippets/init}}

// Save records in Algolia index
Expand Down
2 changes: 1 addition & 1 deletion templates/swift/guides/search/saveObjectsMovies.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func saveObjectsMovies() async throws {
#endif
let movies = try JSONDecoder().decode([AnyCodable].self, from: data!)

// Connect and authenticate with your Algolia app
// Connect and authenticate with your Algolia app using your app ID and write API key
{{> snippets/init}}

do {
Expand Down