Path Paramsslotstringrequired
Collection handle
Body Paramst_clientdate-timerequireduserobjectrequireduser objectuidstringrequired
max length: 32 characters
sidstringrequired
max length: 32 characters
emailstringipstringuastringlangarray of stringsADD stringsortarray of objectsobjectfieldstringrequired
field
orderstringrequired
order
ADD objectfiltersarray of objectsobjectnamestringrequiredtypestringrequiredvaluesarray of stringsrequiredDefaults toADD stringADD objectoffsetint32Defaults to 0limitint32Defaults to 24
max = 120
callbackstringlogbooleanrulesarray of objectsADD object
Responses
200
200
Response bodyobjectmetaobjectno_resultbooleanDefaults to truecorrected_qstringqstringoffsetintegerDefaults to 0limitintegerDefaults to 0totalintegerDefaults to 0filtersarraysortarrayridstringfacetsarray of objectsobjectnamestringtypestringvaluesarray of objectsobjectselectedbooleanDefaults to truecountintegerDefaults to 0has_childrenbooleanDefaults to truevaluestringnamestringsort_typestringitemsarray of objectsobjectsellerstringshort_descriptionstringproduct_urlstringcolorarrayvariants_idsarray of stringsimage_2_urlstringdescriptionstringdiscountarray of integerscreated_atstringavailabilitybooleanDefaults to truedelivery_timestringvariantsarraytitlestringthumbnail_urlstringpricearray of numbersstickersobjectstickers objectidstringskuarray of stringsbrandstringquantityintegerDefaults to 0color_variantsintegerDefaults to 0shipping_coststringimage_urlstringcustom_fieldsobjectrating_scoreintegerDefaults to 0tagsarray of stringsconditionstringproduct_typestringmaterialarraysizearrayshipping_weightstringcategoryarray of objectsobjectcategory2stringcategory3stringcategory4stringcategory1stringcompare_atintegerDefaults to 0bannerobject
Credentials
Header 2e963f3e-38bd-4c00-9636-c00e48945eb7
Shell
curl --request POST --url https://api-v3.findify.io/v3/smart-collection/test --header "X-Key: 2e963f3e-38bd-4c00-9636-c00e48945eb7" --header "Content-Type: application/json" --data '{"user":{"lang":["en-GB"],"uid":"test1","sid":"ssid","email":"test@test .com","ip":"192.168.0.1","ua":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"},"t_client":1484742065791,"sort":[{"field":"price","order":"desc"}],"offset":0,"limit":20,"log":false}'
Javascript Default
//Please, don't forget to include the SDK script
//Which you can find here: https://github.com/findify/javascript-sdk
var client = FindifySDK.init({
key: '2e963f3e-38bd-4c00-9636-c00e48945eb7',
user: {
uid: 'test1',
sid: 'ssid',
email: 'test@test .com'
},
log: false
});
var request = {
slot: 'test',
sort: [{
field: 'price',
order: 'desc'
}],
offset: 0,
limit: 20,
};
client.collection(request).then(function (response) {
console.log(response);
});
Javascript Node
var request = require("request");
var options = {
method: 'POST',
url: 'https://api-v3.findify.io/v3/search',
headers: {
"X-key": "2e963f3e-38bd-4c00-9636-c00e48945eb7"
},
body: {
user: {
lang: ['en-GB'],
uid: 'test1',
sid: 'ssid',
email: 'test@test .com',
ip: '192.168.0.1',
ua: 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36'
},
q: '1484742065791',
t_client: 1484742065791,
filters: [{
name: 'category1',
type: 'category',
values: [{"value": "Dog Food"}]
}
],
sort: [{
field: 'price',
order: 'desc'
}],
offset: 0,
limit: 20,
log: false
},
json: true
};
request(options, function(error, response, body) {
if (error) throw new Error(error);
console.log(body);
})
PHP
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Key', '2e963f3e-38bd-4c00-9636-c00e48945eb7');
$api_instance = new Swagger\Client\Api\DefaultApi();
$collection = new \Swagger\Client\Model\CollectionRequest(array(
'user' => array(
'uid' => 'test1',
'sid' => 'ssid',
'email' => 'test@test .com',
'ip' => '192.168.0.1',
'ua' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36',
'lang' => array(
'en-US',
'en-GB',
'no'
)
),
't_client' => '1484741395471',
'offset' => 0,
'limit' => 20,
'log' => false
));
try {
$result = $api_instance->smartCollectionSlotPost('test', $collection);
echo $result;
}
catch (Exception $e) {
echo 'Exception when calling DefaultApi->smartCollectionSlotPost: ', $e->getMessage(), PHP_EOL;
}
?>