webcams.travel

פרמיום
Verified
על ידי webcams.travel | מְעוּדכָּן לפני שנה | Travel
פּוֹפּוּלָרִיוּת

9.9 / 10

חֶבִיוֹן

538ms

רמת שירות

100%

חזרה לכל הדיונים

No webcam object in the response

B
bandb
לפני 6 שנים

Hi,
I am wondering why is there no webcam object in the response as mentioned in the documentation.
Help is appreciated.

{
“status”: “OK”,
“result”: {
“offset”: 0,
“limit”: 10,
“total”: 1,
“webcams”: [
{
“id”: “1054917524”,
“status”: “active”,
“title”: “Feldberg-Ort: Seebuck Gipfel I, Feldberg, Baden-W”
}
]
}
}

curl --get --include ‘https://webcamstravel.p.mashape.com/webcams/list/webcam=1054917524?show=webcam

B
bandb commented לפני 6 שנים

Hi,
thanks a lot for the swift reply, that’s what I was looking for.

avatar
webcams.travel commented לפני 6 שנים

Hi

With this request you get the webcam object, but only in its basic form (you get the id, status, and title). In order to get more information per webcam, you have to specify the parts you are interesed in.

For example if your are interesed in the location details for the webcams, then you have to add this to the show query parameter like this:

curl --get --include ‘https://webcamstravel.p.mashape.com/webcams/list/webcam=1054917524?show=webcams:basic,location

For more details on the available parts for the webcam object, please check out the documentation: https://developers.webcams.travel/#webcams-query-parameter

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות
דירוג: 5 - הצבעות: 1