This is a PHP SDK for our JSON API, you can check full documentation at Findify Developer Portal
PHP 5.4.0 and later
To install the bindings via Composer, add the following to composer.json
:
{
"require": {
"findify/sdk": "1.*"
}
}
Then run composer install
Download the files and include autoload.php
:
require_once('/path-to-findify-sdk/autoload.php');
Please visit Findify Developer Portal for the full API spec and guides.
Please check Findify Developer Portal to get the API key
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Key', 'YOUR_API_KEY');
$api_instance = new Swagger\Client\Api\DefaultApi();
$autocomplete = new \Swagger\Client\Model\AutocompleteRequest(); // \Swagger\Client\Model\AutocompleteRequest | Request parameters for autocomplete
try {
$result = $api_instance->autocompletePost($autocomplete);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->autocompletePost: ', $e->getMessage(), PHP_EOL;
}
?>
All URIs are relative to https://api-v3.findify.io/v3
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | autocompletePost | POST /autocomplete | |
DefaultApi | feedbackPost | POST /feedback | |
DefaultApi | recommendItemsFeaturedPost | POST /recommend/items/featured | |
DefaultApi | recommendItemsItemIdViewedViewedPost | POST /recommend/items/{item_id}/viewed/viewed | |
DefaultApi | recommendItemsItemIdsBoughtBoughtPost | POST /recommend/items/{item_ids}/bought/bought | |
DefaultApi | recommendItemsNewestPost | POST /recommend/items/newest | |
DefaultApi | recommendItemsTrendingPost | POST /recommend/items/trending | |
DefaultApi | recommendItemsViewedLatestPost | POST /recommend/items/viewed/latest | |
DefaultApi | recommendSlotPost | POST /recommend/{slot} | |
DefaultApi | searchPost | POST /search | |
DefaultApi | smartCollectionSlotPost | POST /smart-collection/{slot} |
- AutocompleteRequest
- AutocompleteResponse
- AutocompleteResponseMeta
- AutocompleteSuggestion
- Banner
- BannerProducts
- CollectionRequest
- CollectionResponse
- CollectionResponseMeta
- Error
- Facet
- FacetChildValueFour
- FacetChildValueOne
- FacetChildValueThree
- FacetChildValueTwo
- FeaturedRecommendationRequest
- Feedback
- Filter
- FilterValues
- GenericRecommendationRequest
- GenericRecommendationResponse
- GenericRecommendationResponseMeta
- Product
- RecommendationFilter
- RecommendationFilterValues
- RecommendationRequest
- Redirect
- SearchRequest
- SearchResponse
- SearchResponseMeta
- Sort
- User
To run the unit tests:
composer install
./vendor/bin/phpunit lib/Tests
Feel free to create issues, send pull requests or contact us at [email protected]!
MIT