Export (0) Print
Expand All

Save High Score of a Game

Ff751076.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" : "SaveHighScoreActivity:http://schemas.microsoft.com/ado/2007/08/dataservices",
  "ActivityVerb" : "http://activitystrea.ms/schema/1.0/save",
  "ApplicationLink" : "http://rex.mslivelabs.com",
  "ActivityObjects" : [
    {
      "ActivityObjectType" : "http://activitystrea.ms/schema/1.0/highscore",
      "Title" : "Beat 7 computers in under 1 hour",
      "Summary": "While playing against 7 computers this player managed to eliminate 3 within 15 minutes and the other 4 within 30 more minutes."
    }
  ],
  "ActivityTarget" : 
    {
      "ActivityObjectType" : "http://activitystrea.ms/schema/1.0/game",
      "Title" : "Contoso Game",
      "AlternateLink" : "http://www.contoso.com/thegame",
      "PreviewLink" : "http://www.contoso.com/thegame"
    }
}

[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": "SaveHighScoreActivity:http://schemas.microsoft.com/ado/2007/08/dataservices",
  "Id": "urn:uuid:AAAACAEKA667CIZWIO3PWKA5VA",
  "SelfLink": "http://bay.apis.live.net/V4.1/cid-233643B6FB281DA8/MyActivities/AAAACAEKA667CIZWIO3PWKA5VA",
  "Title": "SaveHighScoreActivityResource",
  "ActivityVerb": "http://activitystrea.ms/schema/1.0/save",
  "ApplicationLink": "http://rex.mslivelabs.com",
  "ActivityObjects": [
    {
      "ActivityObjectType": "http://api.live.net/schemas/1.0/highscore",
      "Id": "e06b37d4-dc61-4aae-a0d8-1d67a9d6cee0",
      "Summary": "While playing against 7 computers this player managed to eliminate 3 within 15 minutes and the other 4 within 30 more minutes.",
      "Title": "Beat 7 computers in under 1 hour"
    }
  ],
  "ActivityTarget": 
    {
      "ActivityObjectType": "http://api.live.net/schemas/1.0/game",
      "AlternateLink": "http://www.contoso.com/thegame",
      "Id": "d5fced78-dcb3-4262-a281-59a31994d46c",
      "PreviewLink": "http://www.contoso.com/thegame",
      "Title": "Contoso Game"
    }
}
Show:
© 2014 Microsoft