Golang API wrapper for Gravity.
go get github.com/ekkx/gravity
Import the package into your project.
import "github.com/ekkx/gravity"
Construct a new Gravity client.
g, err := gravity.New("your_email", "your_password")
See Documentation and Examples below for more detailed information.
Fetching feed contents after logging in with your email.
package main
import "github.com/ekkx/gravity"
func main() {
g, err := gravity.New("your_email", "your_password")
if err != nil {
return
}
// Home timeline
feed, err := g.Feed.Popular()
// Add comment to a feed
resp, err := g.Feed.AddComment(&gravity.AddCommentParams{
SID: ""
Content: ""
})
}
Coming soon!