Skip to content

Instantly share code, notes, and snippets.

@ianbarber
Created February 17, 2014 22:34
Show Gist options
  • Save ianbarber/9060582 to your computer and use it in GitHub Desktop.
Save ianbarber/9060582 to your computer and use it in GitHub Desktop.
ItemScope target = new ItemScope.Builder()
.setUrl("https://developers.google.com/+/web/snippet/examples/thing")
.build();
Moment moment = new Moment.Builder()
.setType("http://schemas.google.com/AddActivity")
.setTarget(target)
.build();
Plus.MomentsApi.write(mGoogleApiClient, moment);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment