diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-06-05 09:11:51 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-06-05 09:12:37 -0700 |
commit | 7932f4eb87228ee9c5c1b6090a52cae79b898552 (patch) | |
tree | d7fb9e46e079392a7ea677940e0fe605f98e3084 /samples/OAuthConsumer/GoogleAddressBook.aspx.cs | |
parent | 1dd6cd770a7a898cdbe2fc597b898082a303b327 (diff) | |
download | DotNetOpenAuth-7932f4eb87228ee9c5c1b6090a52cae79b898552.zip DotNetOpenAuth-7932f4eb87228ee9c5c1b6090a52cae79b898552.tar.gz DotNetOpenAuth-7932f4eb87228ee9c5c1b6090a52cae79b898552.tar.bz2 |
Added paging capability to GoogleConsumer sample in the ApplicationBlock.
Diffstat (limited to 'samples/OAuthConsumer/GoogleAddressBook.aspx.cs')
-rw-r--r-- | samples/OAuthConsumer/GoogleAddressBook.aspx.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/OAuthConsumer/GoogleAddressBook.aspx.cs b/samples/OAuthConsumer/GoogleAddressBook.aspx.cs index 808065f..1ca3abe 100644 --- a/samples/OAuthConsumer/GoogleAddressBook.aspx.cs +++ b/samples/OAuthConsumer/GoogleAddressBook.aspx.cs @@ -57,7 +57,7 @@ protected void getAddressBookButton_Click(object sender, EventArgs e) { var google = new WebConsumer(GoogleConsumer.ServiceDescription, this.TokenManager); - XDocument contactsDocument = GoogleConsumer.GetContacts(google, this.AccessToken); + XDocument contactsDocument = GoogleConsumer.GetContacts(google, this.AccessToken, 5); var contacts = from entry in contactsDocument.Root.Elements(XName.Get("entry", "http://www.w3.org/2005/Atom")) select new { Name = entry.Element(XName.Get("title", "http://www.w3.org/2005/Atom")).Value, Email = entry.Element(XName.Get("email", "http://schemas.google.com/g/2005")).Attribute("address").Value }; StringBuilder tableBuilder = new StringBuilder(); |