diff options
Diffstat (limited to 'samples/OAuthConsumer')
-rw-r--r-- | samples/OAuthConsumer/GoogleAddressBook.aspx | 2 | ||||
-rw-r--r-- | samples/OAuthConsumer/GoogleAddressBook.aspx.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/samples/OAuthConsumer/GoogleAddressBook.aspx b/samples/OAuthConsumer/GoogleAddressBook.aspx index 1be21aa..19fb505 100644 --- a/samples/OAuthConsumer/GoogleAddressBook.aspx +++ b/samples/OAuthConsumer/GoogleAddressBook.aspx @@ -16,7 +16,7 @@ <asp:View runat="server"> <h2>Updates</h2> <p>Ok, Google has authorized us to download your contacts. Click 'Get address book' - to download the first 25 contacts to this sample. Notice how we never asked you + to download the first 5 contacts to this sample. Notice how we never asked you for your Google username or password. </p> <asp:Button ID="getAddressBookButton" runat="server" OnClick="getAddressBookButton_Click" Text="Get address book" /> 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(); |