UpdateCountryCode
Update user's country code preference on their profile.
Service | Operation |
---|---|
playerState | UPDATE_COUNTRY_CODE |
Method Parameters
Parameter | Description |
---|---|
countryCode | New country code |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var countryCode = "CA";
var playerStateProxy = bridge.getPlayerstateServiceProxy();
var postResult = playerStateProxy.updateCountryCode(countryCode);
{
"service":"playerState",
"operation":"UPDATE_COUNTRY_CODE",
"data":{
"countryCode":"CA"
}
}
JSON Response
{
"data": {
"countryCode": "CA"
},
"status": 200
}