File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
playground/javascript/node
tests/CTS/requests/recommend Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- import { recommendClient } from '@algolia/recommend' ;
1+ import recommendClient from '@algolia/recommend' ;
22import { ApiError } from '@algolia/client-common' ;
33
44const appId = process . env . ALGOLIA_APPLICATION_ID || '**** APP_ID *****' ;
@@ -7,6 +7,9 @@ const apiKey = process.env.ALGOLIA_SEARCH_KEY || '**** SEARCH_API_KEY *****';
77const searchIndex = process . env . SEARCH_INDEX || 'test_index' ;
88const searchQuery = process . env . SEARCH_QUERY || 'test_query' ;
99
10+ console . log ( "######################" )
11+ console . log ( { recommendClient } )
12+
1013// Init client with appId and apiKey
1114const client = recommendClient ( appId , apiKey ) ;
1215
Original file line number Diff line number Diff line change 88 "request" : {
99 "path" : " /1/indexes/indexName/related-products/recommend/rules/batch" ,
1010 "method" : " POST" ,
11- "body" : {
12- "rules" : []
13- }
11+ "body" : {}
1412 }
1513 }
1614]
You can’t perform that action at this time.
0 commit comments