Export (0) Print
Expand All

Add Photo to an Album

Ff749903.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.

POST http://apis.live.net/V4.1/cid-<CID>/MyActivities

Accept: application/json
Content-Type: application/json
Host: 
Authorization: WRAP access_token=<AuthToken>
Content-Length: 709

{"__type" : "AddPhotoActivity:http://schemas.microsoft.com/ado/2007/08/dataservices",
  "ActivityVerb" : "http://activitystrea.ms/schema/1.0/post",
  "ApplicationLink" : "http://rex.mslivelabs.com",
  "ActivityObjects" : [
    {
      "ActivityObjectType" : "http://activitystrea.ms/schema/1.0/photo",
      "AlternateLink" : "http://www.contoso.com/assets/images/computer.jpg",
      "PreviewLink" : "http://www.contoso.com/assets/images/computer.jpg",
      "Title" : "Your title goes here",
      "Description": "Your description goes here"
    }
  ],
  "ActivityTarget" : 
    {
      "ActivityObjectType" : "http://activitystrea.ms/schema/1.0/photo-album",
      "AlternateLink" : "http://www.contoso.com/albums/SampleAlbum",
      "Title" : "Public"
    }
}

[201 Created]
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Transfer-Encoding: chunked
Via: <HostName>
Date: Fri, 16 Jul 2010 02:06:53 GMT
Content-Location: http://apis.live.net/V4.1/cid-<CID>/MyActivities
Location: http://apis.live.net/V4.1/cid-<CID>/MyActivities/<ID>
Content-Type: application/json
Cache-Control: no-cache
Pragma: no-cache
X-HTTP-Live-Request-Id: [10bf4231-55b7-4547-8046-061d19d8828c::]
X-HTTP-Live-Server: BL1WLC2092311

{
"__type": "AddPhotoActivity:http://schemas.microsoft.com/ado/2007/08/dataservices",
  "Id": "urn:uuid:AAAACADYPUAGUIZWIO3PWKA5VA",
  "SelfLink": "http://bay.apis.live.net/V4.1/cid-233643B6FB281DA8/MyActivities/AAAACADYPUAGUIZWIO3PWKA5VA",
  "Title": "AddPhotoActivityResource",
  "ActivityVerb": "http://activitystrea.ms/schema/1.0/post",
  "ApplicationLink": "http://rex.mslivelabs.com",
  "ActivityObjects": [
  {
    "ActivityObjectType": "http://activitystrea.ms/schema/1.0/photo",
    "AlternateLink": "http://www.contoso.com/assets/images/computer.jpg",
    "Description": "Your description goes here",
    "Id": "a72776fa-c24e-4959-b22d-8cde54ae91db",
    "PreviewLink": "http://www.contoso.com/assets/images/computer.jpg",
    "Title": "Your title goes here"
  }
  ],
  "ActivityTarget": 
  {
    "ActivityObjectType": "http://activitystrea.ms/schema/1.0/photo-album",
    "AlternateLink": "http://www.contoso.com/albums/SampleAlbum",
    "Id": "dbfd04f4-680a-4f9f-9b35-ba5663f2c87b",
    "Title": "Public"
  }
}
Show:
© 2014 Microsoft