Feed
From DriveCast Wiki
GET
URL: https://drivecast.eu/api/1.0/feed
https://drivecast.eu/api/1.0/feed/<DEVICE_NAME>
https://drivecast.eu/api/1.0/feed/<DEVICE_NAME>/<SERIAL>
Methods: GET
Returns: 200 OK + object containing the URL to access the general feed or
the feed for the specific device
401 Unauthorized
Formats: json (default), xml, plist
<DEVICE_NAME> is the device label for a device that's seen from the computer as a USB memory
and it's the same string that's shown by drivecast.eu in the Device section
Where more info about the device is available, a <SERIAL> can be supplied in order to differentiate between multiple device of the same kind
The returned object is a single element elements with the feedURL: To better clarify the structure of the feed object here is an example of the JSON object provided by the server:
Examples of calls using curl command from the command line:
curl --user username:password "https://drivecast.eu/api/1.0/feed/?apikey=ABCDEFGHILMNOPQ"
{"statuscode":"200",
"statusdesc":"OK",
"feedURL":"https://drivecast.eu/rss/rss.php?D=H=cpkG2UNTdhz5cMo32ERLZjwUaEZG00FLRu0EbElm0lVLcsGhERDlXezt2bklmZ"
}
curl --user username:password "https://drivecast.eu/api/1.0/feed/?fmt=xml&apikey=ABCDEFGHILMNOPQ" <?xml version="1.0" encoding="UTF-8"?> <statuscode>200</statuscode> <statusdesc>OK</statusdesc> <feedURL>https://drivecast.eu/rss/rss.php?D=H=cpkG2UNTdhz5cMo32ERLZjwUaEZG00FLRu0EbElm0lVLcsGhERDlXezt2bklmZ</feedURL>
curl --user username:password "https://drivecast.eu/api/1.0/feed/?fmt=plist&apikey=ABCDEFGHILMNOPQ"
<?xml version="1.0" encoding="UTF-8"?>
<plist>
<dict>
<key>statuscode</key>
<string>200</string>
<key>statusdesc</key>
<string>OK</string>
<key>feedURL</key>
<string>https://drivecast.eu/rss/rss.php?D=H=cpkG2UNTdhz5cMo32ERLZjwUaEZG00FLRu0EbElm0lVLcsGhERDlXezt2bklmZ</string>
</dict>
</plist>
