Help I'm trapped in a code factory!
Short programming tutorials and random geek stuff.
Home » javascript

Using page tokens to retrieve extended results from Google APIs

August 18, 2014 · by gguuss · in best practices, development, JavaScript, programming

Typically, Google APIs return between 20 and 100 results from API calls. This is done to minimize the amount of unnecessary data is sent to API clients which improves client performance. However, sometimes you want to get additional results. What…

Error handling in the Google+ Hangouts Telephone API

February 11, 2014 · by gguuss · in best practices, Google, Google+, hangouts, JavaScript, programming

One key aspect of creating great Hangout apps is handling errors gracefully. In this post, I’ll get you started on detecting errors.

Dead simple App Engine static hosting

September 27, 2013 · by gguuss · in Google, gotchas, gusstuff, Hacking, hacks, hangouts

I have no idea why, but I have had tons of trouble finding a simple example for hosting app engine. I have been working on a client-side only  site so all I wanted to do was host some static content….

Sign in Best Practices: Reflecting the User

June 28, 2013 · by gguuss · in best practices, Google, Google+, HTML, JavaScript, patterns, Plus

In the recent Google+ Developers Live episode: Google+ Sign-In Best Practices: Greeting the user and reflecting the profile, I showed you a few tweaks that you can make to your site’s experience to make it more engaging. This blog post…

Manipulating sites using the DOM editor in Chrome

May 14, 2013 · by gguuss · in gusstuff, Tools

Ever visit a site and there’s just something about how it looks that you don’t like? Ever want to modify elements of your site in real-time without having to refresh the page? You can do all of this and more…

Google API clients: Why you should use them and how

April 17, 2013 · by gguuss · in best practices, patterns, Plus, programming

Some of our older code examples, including many that I have authored on my blog have been using raw query execution against the Google APIs. This is undesirable and is absolutely not a best practice because you will not benefit…

Selectively rendering interactive posts

March 11, 2013 · by gguuss · in demos, Google+, hacks

In some rare cases, it makes sense to render interactive posts selectively, falling back to the share button.  For example, you might want to do this when your uses could be fickel enough to drop off when prompted to sign…

Handling events for +1

January 30, 2013 · by gguuss · in Google, Google+, JavaScript, programming

A feature that I haven’t really talked about yet, events on +1 buttons, is interesting because it enables so many exciting scenarios for developers interested in doing something when their users click the +1 button and so on. A high…

A tale of two RESTful API queries…

December 20, 2012 · by gguuss · in Google+, JavaScript, Plus, programming

At the suggestion of +Will Norris, I updated this demo code for translating URLs to activity IDs to now use a filter.  The following code highlights the differences: < + '/activities/public?fields=items%2Fid%2Citems%2Furl&key=' + key — > + '/activities/public?key=' + key The…

Getting an activity ID from a Google+ Post URL

December 18, 2012 · by gguuss · in demos, Google+, JavaScript, samples, Tools

Taking the URL to a post and then determining the post ID for additional API calls is a little tricky but also fundamental for the Google+ public data API. First, you have to list activities and then search through them…

1 2 Next →

Search

Copyright © 2021 Help I'm trapped in a code factory!

Powered by WordPress and Origin