c# - How to list blog id in blogger -


i have following code title of each blog of blogger account. list title of blogs, need display id of blogs. there way that?

feedquery query = new feedquery(); query.uri = new uri("http://www.blogger.com/feeds/default/blogs"); atomfeed feed = null; try {   feed = service.query(query);   foreach (atomentry entry in feed.entries)   {     label1.text += "blog id: " +   entry.title.text  ;   } }  catch {} 

thanks in advance..

i blogid using following code. it's kind of dirty job. add null check avoid exceptions.

foreach (atomentry entry in feed.entries)   {     string[] url = entry.selfuri.tostring().split('/');     string blogid = url[url.length - 1];   } 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -