I had created the API key, selected two Capabilities, but the response is (401) Unauthorized.
I'm using Framework 2.0 so i had adapted your demo.
The API Key is not the original that i had obtained in Account Settings.
I'm testing it on my local server with internet connection, but not on a online domain.
Thanks in advance.
Code: Select all
using ScientiaMobile.WurflCloud;
using ScientiaMobile.WurflCloud.Config;
CloudClientConfig config = new CloudClientConfig();
config.ApiKey = "560376:OOOOOOOOOOO1yb4FNaUEXv9esRw";
CloudClientManager manager = new CloudClientManager();
ScientiaMobile.WurflCloud.Device.DeviceInfo info = new ScientiaMobile.WurflCloud.Device.DeviceInfo();
string[] cap = {"wta_voice_call","is_smartphone"};
info = manager.GetDeviceInfo(context, cap);
_deviceId = info.Id;
string serverVer = info.ServerVersion;
_ServerDate = info.WurflLastUpdate;
string lib = manager.GetClientVersion();
_cap1 = info.Capabilities["wta_voice_call"].ToString();
_cap2 = info.Capabilities["is_smartphone"].ToString();