Game Download Properties

Game downloads are files that can be downloaded freely, or after the purchase of a Game. Each game download has the following properties. Complete details in GameDownloadProperties.

id

The unique id for this download. It will never change.

wing_object_type

gamedownload.

date_created

A date when the download was created.

date_updated

A date when the download was last updated.

free

A boolean defaults to 0. If 1 users can download this file without first purchasing the game. If 0 Users must first purchase the game to download the file.

game_id

A Game id. The id of the game associated with this download.

file_id

A File id. The id of the file associated with this download.

Related Objects

game

The Game that uses this download.

file

The File that this download references.

Game Download Methods

The methods used to fetch and manipulate downloads.

Create Game Download

 POST /api/gamedownload
session_id

Required. The unique session id provided by a Session method.

file_id

Required.

game_id

Required.

Returns:

 {
   "id" : "xxx",
   "file_id : "xxx",
   ...
 }

Update Game Download

 PUT /api/gamedownload/xxx

See Create Game Download for details.

Delete Game Download

 DELETE /api/gamedownload/xxx
session_id

Required. The unique session id provided by a Session method.

Returns:

 {
   "success" : 1
 }

Fetch Game Download

 GET /api/download/xxx
session_id

Optional. The unique session id provided by a Session method.

_include_relationships

Optional. See "Relationships" in Intro and Game Download Relationships above for details.

Returns:

 {
   "id" : "xxx",
   "part" : { ... },
   ...
 }
^ Back to Top ^