/trip/info_all
GET https://travelogue.online/api/v1/trip/info_all
Show all trip info. To be store in phone local storage, to access when offline. Store this and store when every user click to trip_planning
Query Parameters
| Parameter | Type | Required | Description |
| key | string | Yes | API Key |
| secret | string | Yes | API Secret |
| trip_id | string | Yes | trip_id from /trip/index |
| user_id | string | Yes | user_id from /login |
Code Samples
JavaScript PHP Railsvar xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", "https://travelogue.online/api/v1/trip/info_all?key=%key%&secret=%secret%&trip_id=%trip_id%&user_id=%user_id%", false);
// Make sure you set the appropriate headers
xmlHttp.setRequestHeader("Header Key", "Header Value");
xmlHttp.send(null);
var response = xmlHttp.responseText;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://travelogue.online/api/v1/trip/info_all?key=%key%&secret=%secret%&trip_id=%trip_id%&user_id=%user_id%");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// Make sure you set the nessary headers as a $headers array
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
uri = URI.parse("https://travelogue.online/api/v1/trip/info_all?key=%key%&secret=%secret%&trip_id=%trip_id%&user_id=%user_id%")
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Get.new(uri.request_uri)
# Make sure you set the appropriate headers
request["header"] = "header value"
response = http.request(request)
Response
200:application/json
{
"status":"200",
"message":"Success",
"result": {
"trip_details_id": "396",
"title": "Water geothermal Square",
"phone": "03 989 4500",
"formatted_phone": "+886039894500",
"operating_hours": "Monday: 9:00 am – 5:00 pm,Tuesday: 9:00 am – 5:00 pm,Wednesday: 9:00 am – 5:00 pm,Thursday: 9:00 am – 5:00 pm,Friday: 9:00 am – 5:00 pm,Saturday: 9:00 am – 5:00 pm,Sunday: 9:00 am – 5:00 pm",
"address": "267, Taiwan, Yilan County, Datong Township, ä¸æè·¯å «æ®µ501å··139è",
"google_map_link": "https://maps.google.com/?q=267,%20Taiwan,%20Yilan%20County,%20Datong%20Township,%20%C3%A4%C2%B8%C2%89%C3%A6%C2%98%C2%9F%C3%A8%C2%B7%C2%AF%C3%A5%C2%85%C2%AB%C3%A6%C2%AE%C2%B5501%C3%A5%C2%B7%C2%B7139%C3%A8%C2%99%C2%9F",
"info": [
{
"trip_info_id": "105",
"info": "æ¸ æ°´å°ç±å ¬å\n\n",
"by": [
{
"user_id": "1",
"name": "Peter",
"picture": "https://link.com"
}
]
}
]
}
}
"status":"200",
"message":"Success",
"result": {
"trip_details_id": "396",
"title": "Water geothermal Square",
"phone": "03 989 4500",
"formatted_phone": "+886039894500",
"operating_hours": "Monday: 9:00 am – 5:00 pm,Tuesday: 9:00 am – 5:00 pm,Wednesday: 9:00 am – 5:00 pm,Thursday: 9:00 am – 5:00 pm,Friday: 9:00 am – 5:00 pm,Saturday: 9:00 am – 5:00 pm,Sunday: 9:00 am – 5:00 pm",
"address": "267, Taiwan, Yilan County, Datong Township, ä¸æè·¯å «æ®µ501å··139è",
"google_map_link": "https://maps.google.com/?q=267,%20Taiwan,%20Yilan%20County,%20Datong%20Township,%20%C3%A4%C2%B8%C2%89%C3%A6%C2%98%C2%9F%C3%A8%C2%B7%C2%AF%C3%A5%C2%85%C2%AB%C3%A6%C2%AE%C2%B5501%C3%A5%C2%B7%C2%B7139%C3%A8%C2%99%C2%9F",
"info": [
{
"trip_info_id": "105",
"info": "æ¸ æ°´å°ç±å ¬å\n\n",
"by": [
{
"user_id": "1",
"name": "Peter",
"picture": "https://link.com"
}
]
}
]
}
}
400:
Missing or invalid properties
401:
Invalid API Key & Password