repositorypackage
0.0.0-20241211041553-870baf4de712
Repository: https://github.com/ekkx/gravity.git
Documentation: pkg.go.dev
# README
Gravity
Golang API wrapper for Gravity.
Installation
go get github.com/ekkx/gravity
⚠️ This project is currently under construction. ⚠️
Usage
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.
Examples
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: ""
})
}
Documentation
Coming soon!