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

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-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": "<CID>/",
  "Entries": [ 
      "BaseUri": "<CID>/",
      "ETag": ""0"",
      "Id": "urn:uuid:<CID>!140",
      "Published": "/Date(1277877226000)/",
      "SelfLink": "Photos/Albums/<CID>!140",
      "Title": "Album 2",
      "Updated": "/Date(1277878566000)/",
      "AlbumCoverLink": "",
      "BrowseLink": "https://cid-<CID><CID>!140&type=5",
      "FilesLink": "Photos/Albums/<CID>!140/Files",
      "SharingLevel": 2,
      "Size": 286876,
      "SlideShowLink": "https://cid-<CID><CID>!140&type=5",
      "Summary": "",
      "UxLink": "https://cid-<CID><CID>!140&type=5"
      "BaseUri": "<CID>/",
      "ETag": ""1"",
      "Id": "urn:uuid:<CID>!133",
      "Published": "/Date(1277876412000)/",
      "SelfLink": "Photos/Albums/<CID>!133",
      "Title": "Album 1",
      "Updated": "/Date(1277877105000)/",
      "AlbumCoverLink": "",
      "BrowseLink": "http://cid-<CID><CID>!133&type=5",
      "FilesLink": "Photos/Albums/<CID>!133/Files",
      "SharingLevel": 3,
      "Size": 187729,
      "SlideShowLink": "http://cid-<CID><CID>!133&type=5",
      "Summary": "",
      "UxLink": "http://cid-<CID><CID>!133&type=5"
  "SelfLink": "Photos/Albums"
© 2016 Microsoft