public static BlogList getBlogs(BloggerService service, String userId) { BlogsResource.ListByUserRequest blogListByUserAction = service.Blogs.ListByUser("self"); BlogList list = blogListByUserAction.Fetch(); return(list); }
/// <summary> /// Retrieves a list of blogs /// /// Documentation: https://developers.google.com/blogger/docs/3.0/reference/blogs/listByUser /// </summary> /// <param name="service">a Valid authenticated BloggerService</param> /// <param name="user">The ID of the user whose blogs are to be fetched. Either the word self or the user's profile ID.</param> /// <returns></returns> public static BlogList listByUser(BloggerService service, string user) { try { BlogsResource.ListByUserRequest list = service.Blogs.ListByUser(user); return(list.Execute()); } catch (Exception ex) { // In the event there is an error with the request. Console.WriteLine(ex.Message); } return(null); }