Skip to content

Instantly share code, notes, and snippets.

@pif
Created October 31, 2013 17:10
Show Gist options
  • Save pif/7253363 to your computer and use it in GitHub Desktop.
Save pif/7253363 to your computer and use it in GitHub Desktop.
Add SSL Proxy support for Glass Mirror API Java Sample
/**
* Subscribes to notifications on the user's timeline.
*/
public static Subscription insertSubscription(Credential credential, String callbackUrl,
...
// Rewrite "appspot.com" to "Appspot.com" as a workaround for
// http://b/6909300.
callbackUrl = callbackUrl.replace("appspot.com", "Appspot.com");
// add ssl proxy
callbackUrl = "https://mirrornotifications.appspot.com/forward?url=" + callbackUrl;
Subscription subscription = new Subscription();
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment