Created
January 17, 2018 13:59
-
-
Save ruggi/88e3a3b47cc6c9b80fe9afe46aa8df06 to your computer and use it in GitHub Desktop.
This file contains 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
activity := stream.Activity{ | |
Actor: "bob", | |
Verb: "like", | |
Object: "music", | |
} | |
resp, err := feed.AddActivity(activity) | |
if err != nil { | |
// ... | |
} | |
log.Println("activity addedd succesfully in", resp.Duration) | |
log.Println(resp.Activity.ID) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment