Retrieve Top-Level Folders in an Albums Collection
Collapse the table of content
Expand the table of content

Retrieve Top-Level Folders in an Albums Collection

Gg249473.note(en-us,MSDN.10).gifNote:
Current information about Live Connect is now available in the Windows Live Developer Center. The information in the following sections is provided for legacy purposes only.

A GET request on an Albums collection retrieves all the top-level folders in the collection.

GET /cid-<CID>/Photos/Albums /HTTP/1.1

For information about the components of the URI, see Resource Model Overview. For information about operations on collections, see Collection Level Operations.

Accept: application/json
Content-Type: application/json
Authorization: WRAP access_token=<OAuth WRAP authorization token>

[200 OK]
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Transfer-Encoding: chunked
Via: 1.1 <ServerName>
Date: Fri, 06 Aug 2010 04:56:39 GMT
Content-Location: http://apis.live.net/V4.1/cid-<CID>/Photos/Albums
Content-Type: application/json
ETag: 2010-06-30T06:16:06.0000000Z
Cache-Control: no-cache
Pragma: no-cache
X-HTTP-Live-Total-Item-Count: 2
X-HTTP-Live-Request-Id: [a1125b5d-038c-4315-8d2c-9bdbd9298b7f::]
X-HTTP-Live-Server: BY2WLC1074216

The following response retrieved an Albums collection that contains two albums, Album 1 and Album 2.

{
  "BaseUri": "http://apis.live.net/V4.1/cid-<CID>/",
  "Entries": [ 
    {
      "BaseUri": "http://apis.live.net/V4.1/cid-<CID>/",
      "ETag": ""0"",
      "Id": "urn:uuid:<CID>!140",
      "Published": "/Date(1277877226000)/",
      "SelfLink": "Photos/Albums/<CID>!140",
      "Title": "Album 2",
      "Updated": "/Date(1277878566000)/",
      "AlbumCoverLink": "http://storage.live.com/s1pPWQc1AEtXhTaCQ5Ht0E1H3XReUd1hJ99iOIeeKm_4WKliUqWRZZJyGsKlsjVoO74JtbeQptVT5cVuh8uYc2iLdCUui7_Fi4XpKoEttVY_auH_H5UyH82LM5QstxfEacj/Weimaraner.jpg:PhotoCroppedMedium?psid=1",
      "BrowseLink": "https://cid-<CID>.skydrive.live.com/redir.aspx?page=browse&resid=<CID>!140&type=5",
      "FilesLink": "Photos/Albums/<CID>!140/Files",
      "SharingLevel": 2,
      "Size": 286876,
      "SlideShowLink": "https://cid-<CID>.skydrive.live.com/redir.aspx?page=play&resid=<CID>!140&type=5",
      "Summary": "",
      "UxLink": "https://cid-<CID>.skydrive.live.com/redir.aspx?page=self&resid=<CID>!140&type=5"
    },
    {
      "BaseUri": "http://apis.live.net/V4.1/cid-<CID>/",
      "ETag": ""1"",
      "Id": "urn:uuid:<CID>!133",
      "Published": "/Date(1277876412000)/",
      "SelfLink": "Photos/Albums/<CID>!133",
      "Title": "Album 1",
      "Updated": "/Date(1277877105000)/",
      "AlbumCoverLink": "http://storage.live.com/s1pPWQc1AEtXhTaCQ5Ht0E1H7HX7_tMKhiAMhvozaTb_ucIKRhfvYWucEBBaGXxmD8BAKBHeGdmA1mIody_GB5GKaHN6tokq5rtDLhYjgbTigeG-fNo43RCxBgNuO8Q-95k/Lakeland-Terrier.jpg:PhotoCroppedMedium?psid=1",
      "BrowseLink": "http://cid-<CID>.skydrive.live.com/redir.aspx?page=browse&resid=<CID>!133&type=5",
      "FilesLink": "Photos/Albums/<CID>!133/Files",
      "SharingLevel": 3,
      "Size": 187729,
      "SlideShowLink": "http://cid-<CID>.skydrive.live.com/redir.aspx?page=play&resid=<CID>!133&type=5",
      "Summary": "",
      "UxLink": "http://cid-<CID>.skydrive.live.com/redir.aspx?page=self&resid=<CID>!133&type=5"
    }
  ],
  "SelfLink": "Photos/Albums"
}
Show:
© 2016 Microsoft