Skip to content

Instantly share code, notes, and snippets.

@singhgurjeet
Created December 23, 2011 01:33
Show Gist options
  • Save singhgurjeet/1512681 to your computer and use it in GitHub Desktop.
Save singhgurjeet/1512681 to your computer and use it in GitHub Desktop.
public static FilesClient getDefaultClient() {
return new FilesClient(new AppClient.Credentials() {
@Override public long getUserId() throws IOException {return 123L;}
@Override public byte[] getKey() throws IOException {throw new IOException("NOT IMPLEMENTED");}
},
System.getProperty(Broker.PUBLIC_HOST_PROPERTY, Broker.DEFAULT_PUBLIC_HOST),
DagUtil.getIntProperty(Broker.PUBLIC_PORT_PROPERTY, Broker.DEFAULT_PUBLIC_PORT));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment