I am trying to create some admin tools to allow us to manage user accounts. Our back-end is written in Python. Since there is not yet a Python SDK for PlayFab, I am trying to do an http Post request. When I try, I get a 400 error. I am guessing I somehow need to encode my request using the API secret key, but cannot find any examples of how I should do that.
Here is what I am trying to do (in Python):
url = 'https://[titleID].playfabapi.com/Client/RegisterPlayFabUser'
values = {
"TitleId": [titleID],
"Username": "jeffo",
"Email": "jeff@mail.com",
"Password": "xxxxx"
}
headers = {
"Content-Type": "application/json"
}
data = urllib.urlencode(values)
req = urllib2.Request(url, data, headers)
response = urllib2.urlopen(req)