Download the PHP package level51/silverstripe-tripadvisor without Composer
On this page you can find all versions of the php package level51/silverstripe-tripadvisor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download level51/silverstripe-tripadvisor
More information about level51/silverstripe-tripadvisor
Files in level51/silverstripe-tripadvisor
Package silverstripe-tripadvisor
Short Description Simple integration of TripAdvisor location profiles and reviews for SilverStripe.
License
Informations about the package silverstripe-tripadvisor
SilverStripe TripAdvisor Integration
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/
Maintainer
- Julian Scheuchenzuber [email protected]
Installation
If you don't like composer you can just download and unpack it to the root of your SilverStripe project.
Prerequisites
- Obtain a valid TripAdvisor API key at: https://developer-tripadvisor.com/content-api/request-api-access/
- Get the ID of your location. You won't find it anywhere on the location profile's page, just check the URL.
Setup
- Provide your API key and location profile ID in the "Trip Advisor" tab of systems settings section.
- Execute the "Sync TripAdvisor profile" action. This will create one
TripAdvisorLocationProfile
and threeTripAdvisorReview
records. Caution: This will drop the current profile data if already loaded. - Go ahead and use it in your code (example snippets):
Notes
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.
If you like to set up some continuous integration you can use the TripAdvisorRefreshTask
. Crontab in combination with the sake module could be a neat approach.
All versions of silverstripe-tripadvisor with dependencies
ext-curl Version *