AbdFatah / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

(.net - version 3) Authentication Fail through code #283

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am getting parsing error in authentication using below code

 AccountQuery query = new AccountQuery("https://www.googleapis.com/analytics/v3/management/accounts");
            AnalyticsService service = new AnalyticsService("AnalyticsServiceApi");
            if (!string.IsNullOrEmpty(userName))
            {
                service.setUserCredentials(userName, passWord);
            }

                AccountFeed accountFeed = service.Query(query);
                foreach (AccountEntry entry in accountFeed.Entries)
                {
                    ListViewItem item = new ListViewItem(entry.Title.Text);
                    //item.SubItems.Add(entry.Title.Text);
                    item.SubItems.Add(entry.ProfileId.Value);
                    this.ProfileIds.Items.Add(item);
                }
            }

Its showing me "Parsing failed" issue. Can you please guide me to get profile 
information with version 3 of google Analytics API?

---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of related component: Management API

Request summary:
Provide a brief summary of the the feature you'd like to see implemented.

Use Cases:
Describe how you will use this feature if implemented.

Original issue reported on code.google.com by avani.pa...@gmail.com on 9 Apr 2013 at 1:08