Skip to content

Instantly share code, notes, and snippets.

@evernotegists
Created April 4, 2013 20:09
Show Gist options
  • Save evernotegists/5313816 to your computer and use it in GitHub Desktop.
Save evernotegists/5313816 to your computer and use it in GitHub Desktop.
// Retrieved during authentication:
String authToken = ...
String noteStoreUrl = ...
String userAgent = myCompanyName + " " + myAppName + "/" + myAppVersion;
THttpClient noteStoreTrans = new THttpClient(noteStoreUrl);
userStoreTrans.setCustomHeader("User-Agent", userAgent);
TBinaryProtocol noteStoreProt = new TBinaryProtocol(noteStoreTrans);
NoteStore.Client noteStore = new NoteStore.Client(noteStoreProt, noteStoreProt);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment