Simple integration of TripAdvisor location profiles and reviews for SilverStripe.
This module provides a simple integration of TripAdvisor location profiles including awards, reviews, etc.
Basically it is a wrapper for the Content API of TripAdvisor.
Official API documentation: https://developer-tripadvisor.com/content-api/
composer require level51/silverstripe-tripadvisor
If you don't like composer you can just download and unpack it to the root of your SilverStripe project.
TripAdvisorReviewrecords. Caution: This will drop the current profile data if already loaded.
// Fetch location profile and output number of visits $profile = TripAdvisorLocationProfile::current(); echo $profile->NumVisits; // Fetch reviews and render with custom template return TripAdvisorReview::get()->renderWith('ReviewGrid');
The logic uses the
RestfulService class and hence does API calls via cURL. It follows the API guidelines in terms of caching so you don't have to worry about that.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem