Playlyfe API v2.0
The Playlyfe API works over HTTP Secure (HTTPS) connections, and uses the OAuth2.0 protocol for authentication.
If you are looking to use Playlyfe platform to start creating your own gamified apps, have a look at our Getting Started Manual or do it by yourself using one of our SDKs to connect your app with Playlyfe.
Action
Action Examples
List All Action Designs
GET/design/versions/:version/actions
Get the details of all actions designs in the game.
TODO: describe the response
Parameters
Name | Description |
---|---|
fields | Comma separated string containing the required fields. |
Process
Process Examples
List All Process Designs
GET/design/versions/:version/processes
Get details of all the Process designs in the game.
Parameters
Name | Description |
---|---|
source | Can take the value |
Team
Team Examples
List All Team Designs
GET/design/versions/:version/teams
Get details of all the Team designs in the game.
Parameters
Name | Description |
---|---|
source | Can take the value |
Metric
Metric Examples
List All Metric Designs
GET/design/versions/:version/metrics
Get details of all the metric designs in the game.
Parameters
Name | Description |
---|---|
source | Can take the value |
Get Metric Design
GET/design/versions/:version/metrics/:component_id
Get the design of the specified Metric.
Parameters
Name | Description |
---|---|
source | To be set to |
Rule
Rule Examples
Leaderboard
Leaderboard Examples
Issue
Issue Examples
Bootstrap
Bootstrap Examples
Deployment
Deployment Examples
Deploy Your Game Design
POST/design/versions/:version/deploy
Simulates or Launches the current game design based on whether the client is a test client. This is useful when integrating, you don't need to add conditions to check whether you are in staging or production.
In case the game was previously launched (in production), any potential design incompatibilities will be notified. Once these issues are fixed, you can upgrade the game. If there are no issues while deploying the game, it is upgraded automatically.
Deploy Your Game Design
There are no examples yet for this route. You can Try It yourself though!
Upgrade Game
POST/design/upgrade
Upgrades the game in production
.
This is only to be used when there were issues when deploying the game and the issues have now been fixed.
If there are no issues while deploying the game, it is upgraded automatically.
Upgrade Game
There are no examples yet for this route. You can Try It yourself though!
Image
Image Examples
Get All Uploaded Images
GET/design/images
Returns all the images related to this game that you have uploaded to Playlyfe.
Parameters
Name | Description |
---|---|
skip | Number of teams to skip. Defaults to0 |
limit | Maximum number of teams to return. Defaults to10 |
Get All Uploaded Images
Request
GET https://api.playlyfe.com/v2/runtime/design/images HTTP/1.1
Response
[
{
"tags": [],
"album": "g:test",
"sizes": [
{
"height": null,
"width": null,
"name": "original"
},
{
"height": 140,
"width": 140,
"name": "large"
},
{
"height": 72,
"width": 72,
"name": "medium"
},
{
"height": 40,
"width": 40,
"name": "small"
},
{
"height": 24,
"width": 24,
"name": "icon"
}
],
"id": "1,10be003d08"
}
]
Upload an Image
POST/design/images
Upload an image to the game album. The request body must a multi-part form data with the file field name as file
. It will return the image id for the image which was uploaded. You can then use this id to assign images to your components.
Upload an Image
Request
POST https://api.playlyfe.com/v2/runtime/design/images HTTP/1.1
Response
{
"tags": [],
"album": "g:test",
"sizes": [
{
"height": null,
"width": null,
"name": "original"
},
{
"height": 140,
"width": 140,
"name": "large"
},
{
"height": 72,
"width": 72,
"name": "medium"
},
{
"height": 40,
"width": 40,
"name": "small"
},
{
"height": 24,
"width": 24,
"name": "icon"
}
],
"id": "1,10be003d08"
}