App Data

get
Get User's Private App Data

https://api.playportal.io/app/v1/data
Returns a user's private app data. Each user has one private store per app.
Request
Response
Request
Headers
Authorization
required
string
Auth token generated when logging in.
Query Parameters
userId
optional
string
User ID for the owner of the app data to retrieve. A user can only query for his or her own app data or the app data of their kid's accounts.
Response
200: OK
Cake successfully retrieved.
{ key: 'value!',
array: [ 'one', 'two', 'three' ],
deeply: { nested: { value: 0 } } }

‚Äč

post
Update User's Private App Data

https://api.playportal.io/app/v1/data
Updates a user's private app data.
Request
Response
Request
Headers
Authorization
required
string
Auth token generated when logging in.
Body Parameters
value
optional
object
Value to insert or update at the location specified by the "key" parameter. This can be any valid JSON data.
userId
optional
string
User ID for the owner of the app data to update. A user can only update his or her own app data or the app data of their kid's accounts.
key
required
string
Location in app data to update, using dot object notation.
Response
200: OK
Cake successfully retrieved.
{ key: 'new value!',
array: [ 'one', 'two', 'three' ],
deeply: { nested: { value: 0 } } }