\TripAdvisorService
Created by PhpStorm.
User: Julian Scheuchenzuber <js@lvl51.de>
Date: 10.08.15
Time: 22:09
Synopsis
class TripAdvisorService
extends RestfulService
{
- // methods
- public void __construct()
- public DataObject getLocationProfile()
- public DataList getReviews()
- private void dropProfile()
- private mixed|RestfulService_Response fetchProfile()
- public mixed errorCatch()
Hierarchy
Extends
- RestfulService
Methods
private
- dropProfile() — Drops all current TripAdvisor payload data (not API key, not location ID).
- fetchProfile() — Calls the TripAdvisor API via cURL and creates payload records.
public
- __construct() — Creates an instance of the TripAdvisor RESTful API service.
- errorCatch() — "Best Practice" implementation due to documentation: https://docs.silverstripe.org/en/3.1/developer_guides/integration/restfulservice#handling-errors
- getLocationProfile() — Return the location profile record.
- getReviews() — Return the (three) latest reviews.