API 2.0 dcst

From DriveCast Wiki

Revision as of 13:01, 3 September 2009 by Ikoichi2112@gmail.com (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

GET

  URL:        https://drivecast.eu/api/2.0/dcst/recording|podcast<UID>
  Methods:    GET
  Returns:    200 OK + object containing the arrays of the recordings
              401 Unauthorized
  Formats:    json (default), xml, plist

Returns the dcst (short link) of the <UID> recording or podcast

curl --user username:password "https://drivecast.eu/api/2.0/dcst/recording/<UID>?apikey=ABCDEFGHILMNOPQ"

{
  "statuscode":"200",
  "statusdesc":"OK",
  "elements":[
     {
        "dcst":"http://dcst.eu/yIexGw"
     }
  ]

}

curl --user username:password "https://drivecast.eu/api/2.0/dcst/recording/<UID>?fmt=xml&apikey=ABCDEFGHILMNOPQ"

<?xml version="1.0" encoding="UTF-8"?>
<statuscode>200</statuscode>
<statusdesc>OK</statusdesc>
<elements>
  <element>
    <dcst>http://dcst.eu/yIexGh</dcst>
  </element>
</elements>
curl --user username:password "https://drivecast.eu/api/2.0/dcst/recording/<UID>?fmt=plist&apikey=ABCDEFGHILMNOPQ"

<?xml version="1.0" encoding="UTF-8"?>
<dict>
  <key>statuscode</key>
  <string>200</string>
  <key>statusdesc</key>
  <string>OK</string>
  <key>elements</key>
  <array><key>dcst</key><string>http://dcst.eu/yIexGh</string></array>
</dict>


curl --user username:password "https://drivecast.eu/api/2.0/dcst/podcast/<UID>?apikey=ABCDEFGHILMNOPQ"

{
  "statuscode":"200",
  "statusdesc":"OK",
  "elements":[
     {
        "dcst":"http://dcst.eu/yIexGw"
     }
  ]

}

curl --user username:password "https://drivecast.eu/api/2.0/dcst/podcast/<UID>?fmt=xml&apikey=ABCDEFGHILMNOPQ"

<?xml version="1.0" encoding="UTF-8"?>
<statuscode>200</statuscode>
<statusdesc>OK</statusdesc>
<elements>
  <element>
    <dcst>http://dcst.eu/yIexGh</dcst>
  </element>
</elements>
curl --user username:password "https://drivecast.eu/api/2.0/dcst/podcast/<UID>?fmt=plist&apikey=ABCDEFGHILMNOPQ"

<?xml version="1.0" encoding="UTF-8"?>
<dict>
  <key>statuscode</key>
  <string>200</string>
  <key>statusdesc</key>
  <string>OK</string>
  <key>elements</key>
  <array><key>dcst</key><string>http://dcst.eu/yIexGh</string></array>
</dict>
Personal tools