/aaapi

Go Twitter Account Acticity API

Primary LanguageGo

aaapi

Go Twitter Account Acticity API

Installation

$ go get github.com/dqn/aaapi

Usage

package main

import (
	"fmt"

	"github.com/dqn/aaapi"
)

func main() {
	a := aaapi.NewPremium(
		"CONSUMER_KEY",
		"CONSUMER_SECRET",
		"ACCESS_TOKEN",
		"ACCESS_TOKEN_SECRET",
		"ENV_NAME",
	)
	r, err := a.PostWebhooks("https://example.com/webhook")
	if err != nil {
		// handle error
	}

	fmt.Println(r.ID) // => webhook id
}

Features

  • Premium AAAPI
  • Enterprise AAAPI

Premium AAAPI

  • Post webhooks
  • Get webhooks
  • Get webhooks with env name
  • Put webhooks
  • Post subscriptions
  • Get subscriptions count
  • Get subscriptions
  • Get subscriptions list
  • Delete webhooks
  • Delete webhooks
  • Delete subscriptions user