Skip to content
/ gravity Public

GRAVITY(グラビティ)- 優しいSNS 🪐 | API ライブラリ

License

Notifications You must be signed in to change notification settings

ekkx/gravity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gravity

Gravity

Golang API wrapper for Gravity.

Getting Started

Installation

go get github.com/ekkx/gravity

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!

Gravity