Created
October 31, 2013 17:10
-
-
Save pif/7253363 to your computer and use it in GitHub Desktop.
Add SSL Proxy support for Glass Mirror API Java Sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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