Go Twitter Account Acticity API
$ go get github.com/dqn/aaapi
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
}
- Premium AAAPI
- Enterprise 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