Not Able to get "marketing_name" from Demo account
-
- Posts: 1
- Joined: Mon Feb 10, 2014 5:41 am
Not Able to get "marketing_name" from Demo account
Hi
I have try with demo account but I am not able to get "marketing_name" in demo account please help me to resolve this
I have try with demo account but I am not able to get "marketing_name" in demo account please help me to resolve this
Re: Not Able to get "marketing_name" from Demo account
Are you able to post how you are using the capability so that I can check to see if there are any errors in your code? Also, can you show me the User-Agent that is not returning a marketing name? Keep in mind that not all devices will return a marketing name.
Thank you,
Elliot
Thank you,
Elliot
Re: Not Able to get "marketing_name" from Demo account
I am experiencing the same problem.
This is a free account for now, I want to test before signing up.
See code below:
var wrapper = new HttpContextWrapper(HttpContext.Current);
var config = new DefaultCloudClientConfig
{
ApiKey = "xxxxxxxx"
};
var ua = "Mozilla/5.0 (Linux; Android 4.4.4; SM-N910H Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.78 Mobile Safari/537.36";
var manager = new CloudClientManager(config);
var wurflRequest = new ScientiaMobile.WurflCloud.Request.WurflCloudRequest(wrapper) { UserAgent = ua };
var info = manager.GetDeviceInfo(wrapper);
Response.Write("Marketing Name: " + info.Get("marketing_name") + "</br>");
Response.Write("Errors: " + info.Errors.Count + "</br>");
When testing this user agent on the OnSite package of yours I receive Samsung Galaxy Note 4.
Please get back to me asap.
This is a free account for now, I want to test before signing up.
See code below:
var wrapper = new HttpContextWrapper(HttpContext.Current);
var config = new DefaultCloudClientConfig
{
ApiKey = "xxxxxxxx"
};
var ua = "Mozilla/5.0 (Linux; Android 4.4.4; SM-N910H Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.78 Mobile Safari/537.36";
var manager = new CloudClientManager(config);
var wurflRequest = new ScientiaMobile.WurflCloud.Request.WurflCloudRequest(wrapper) { UserAgent = ua };
var info = manager.GetDeviceInfo(wrapper);
Response.Write("Marketing Name: " + info.Get("marketing_name") + "</br>");
Response.Write("Errors: " + info.Errors.Count + "</br>");
When testing this user agent on the OnSite package of yours I receive Samsung Galaxy Note 4.
Please get back to me asap.
Re: Not Able to get "marketing_name" from Demo account
Stephan,
I do not see that your account is subscribed to the marketing name capability. You will need to add the capability to your account from your customer vault in order to make it available from the cloud service. I have tested this User Agent and am receiving Galaxy Note 4 as the marketing name of the device.
Thank you,
Elliot
I do not see that your account is subscribed to the marketing name capability. You will need to add the capability to your account from your customer vault in order to make it available from the cloud service. I have tested this User Agent and am receiving Galaxy Note 4 as the marketing name of the device.
Thank you,
Elliot
Re: Not Able to get "marketing_name" from Demo account
Apologies, I was running further tests since I posted this.
I have now reverted to the marketing_name capability and still nothing is coming through.
Here is the json that is being stored in the WurflCloud_Client cookie.
"Capabilities":{"marketing_name":"","is_smartphone":"True"
,"is_tablet":"False","ux_full_desktop":"False"}
To simplify things I am using the standard code
var config = new DefaultCloudClientConfig
{
ApiKey = "xxxxx"
};
var manager = new CloudClientManager(config);
var info = manager.GetDeviceInfo(wrapper);
Is this a free account issue perhaps?
I have now reverted to the marketing_name capability and still nothing is coming through.
Here is the json that is being stored in the WurflCloud_Client cookie.
"Capabilities":{"marketing_name":"","is_smartphone":"True"
,"is_tablet":"False","ux_full_desktop":"False"}
To simplify things I am using the standard code
var config = new DefaultCloudClientConfig
{
ApiKey = "xxxxx"
};
var manager = new CloudClientManager(config);
var info = manager.GetDeviceInfo(wrapper);
Is this a free account issue perhaps?
Re: Not Able to get "marketing_name" from Demo account
Stephan,
From what I can tell, the cookie has stored a cached response from before the marketing_name capability was added to your account. If you delete the cookie and make another request to the WURFL cloud, it should include the marketing_name capaibility (assuming it is added to your acocunt now).
Elliot
From what I can tell, the cookie has stored a cached response from before the marketing_name capability was added to your account. If you delete the cookie and make another request to the WURFL cloud, it should include the marketing_name capaibility (assuming it is added to your acocunt now).
Elliot
Re: Not Able to get "marketing_name" from Demo account
Yes, I clear my cookies on every test.. I even restart my website and app pool.
And I can confirm the marketing_name is definitely there, you can confirm by looking at my account.
I really need to this to work.
And I can confirm the marketing_name is definitely there, you can confirm by looking at my account.
I really need to this to work.
Re: Not Able to get "marketing_name" from Demo account
I've uploaded a very simple page in my file manager. Do you mind taking a look?
Perhaps I am doing something wrong.
Perhaps I am doing something wrong.
Re: Not Able to get "marketing_name" from Demo account
Stephan,
It appears that it is serving a cached response. It is also important to keep in mind that it may take several minutes for a selected capability to propagate. I have tested your API key and I do see the marketing name in the JSON response. You can also test with curl:
Thank you,
Elliot
It appears that it is serving a cached response. It is also important to keep in mind that it may take several minutes for a selected capability to propagate. I have tested your API key and I do see the marketing name in the JSON response. You can also test with curl:
Code: Select all
curl -u xxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -A "Mozilla/5.0 (Linux; Android 4.4.4; SM-N910H Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.78 Mobile Safari/537.36" http://api.wurflcloud.com/v1/json/
Elliot
Re: Not Able to get "marketing_name" from Demo account
Thanks for helping me Elliot.
I do see the marketing_name too after running the curl command, however it returns a blank marketing name. I thought it may be a cached response so I tried my PC at home and it also returns an empty marketing_name.
This user agent should be returning Galaxy Note 4 for the marketing_name (I tested it on the OnPremise solution of yours)
Any other ideas?
I do see the marketing_name too after running the curl command, however it returns a blank marketing name. I thought it may be a cached response so I tried my PC at home and it also returns an empty marketing_name.
This user agent should be returning Galaxy Note 4 for the marketing_name (I tested it on the OnPremise solution of yours)
Any other ideas?
Re: Not Able to get "marketing_name" from Demo account
Stephan,
Here is the exact response I received from the WURFL cloud:
Are you able to post the JSON response you received as well?
Thank you,
Elliot
Here is the exact response I received from the WURFL cloud:
Code: Select all
{
"apiVersion": "WurflCloud 1.5.0.2",
"capabilities": {
"is_smartphone": true,
"is_tablet": false,
"marketing_name": "Galaxy Note 4",
"ux_full_desktop": false
},
"errors": {},
"id": "samsung_sm_n910a_ver1_subuah",
"mtime": 1432824504
}
Thank you,
Elliot
Re: Not Able to get "marketing_name" from Demo account
Sure this is what I received:
Code: Select all
{
"apiVersion":"WurflCloud 1.5.0.2",
"mtime":1405953419,
"id":"generic_android_ver4_4",
"capabilities":{
"marketing_name":"",
"is_smartphone":true,
"is_tablet":false,
"ux_full_desktop":false
},
"errors":{}
}
Re: Not Able to get "marketing_name" from Demo account
Stephan,
Are you able to try sending a new curl request to let me know if you continue to receive a blank `marketing_name`. You may have been receiving a cached response from one of our servers in your region. We have corrected this issue and you should be seeing the correct response.
Thank you,
Elliot
Are you able to try sending a new curl request to let me know if you continue to receive a blank `marketing_name`. You may have been receiving a cached response from one of our servers in your region. We have corrected this issue and you should be seeing the correct response.
Thank you,
Elliot
Re: Not Able to get "marketing_name" from Demo account
Seems to be working now, thanks so much for helping me sort this out.
Just curious, why would it have cached a result on your end? Even if it was cached, why was it wrong in the first place?
Does this happen often? Can I use this Cloud service confidently knowing that detentions will be correct?
Thx again.
Just curious, why would it have cached a result on your end? Even if it was cached, why was it wrong in the first place?
Does this happen often? Can I use this Cloud service confidently knowing that detentions will be correct?
Thx again.
Re: Not Able to get "marketing_name" from Demo account
Stephan,
This was not an issue with the entire WURFL cloud service and only occurred with one of the instances in your region. I have not seen this occur before and can ensure you that it will not happen again.
Thank you,
Elliot
This was not an issue with the entire WURFL cloud service and only occurred with one of the instances in your region. I have not seen this occur before and can ensure you that it will not happen again.
Thank you,
Elliot
Re: Not Able to get "marketing_name" from Demo account
Great, thanks Elliot.
Who is online
Users browsing this forum: No registered users and 91 guests