JohnTranstel / google-gdata

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

Issues retrieving Crawlissues using .net #649

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying to create an application in C# to extract the crawl errors. Here is 
my code

RequestSettings WebMasterSettings = new RequestSettings("SEOWebMasterApp", 
"username", "password");
WebmasterToolsRequest wtr = new WebmasterToolsRequest(WebMasterSettings);
Feed<CrawlIssues> crawlIssues = 
wtr.GetCrawlIssues("http%3A%2F%2Fwww%mywebsite%2Ecom%2F");

I am getting the following error. What am I missing?

Original issue reported on code.google.com by deshmukh...@gmail.com on 14 Feb 2013 at 5:37

GoogleCodeExporter commented 8 years ago
Got it working using 
string encodedSiteID = HttpUtility.UrlEncode(siteId, Encoding.UTF8);
Feed<CrawlIssues> crawlIssues = wtr.GetCrawlIssues(encodedSiteID);

Original comment by deshmukh...@gmail.com on 14 Feb 2013 at 5:52

GoogleCodeExporter commented 8 years ago

Original comment by ccherub...@google.com on 14 Feb 2013 at 5:53

GoogleCodeExporter commented 8 years ago
Issue 648 has been merged into this issue.

Original comment by ccherub...@google.com on 14 Feb 2013 at 5:53

GoogleCodeExporter commented 8 years ago
I get only 100 entries. How do I get the complete list? GetCrawlIssues() does 
not have any parameters to take care of this.

Original comment by deshmukh...@gmail.com on 15 Feb 2013 at 12:38