untweet

package module
v0.0.0-...-496fb79 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2018 License: MIT Imports: 10 Imported by: 0

README

Untweet

Get Direct Message who unfollowed you!

Go Report Card GoDoc

Install

  • Create an app on Twitter Developer]
  • go get -u github.com/Rhymond/untweet
  • cd $GOPATH\src\github.com\rhymond\untweet
  • dep init
  • Copy .env.example to .env and drop in API keys/tokens
  • go install and run untweet (make sure your $GOPATH/bin is in PATH)

Contributing

Thank you for considering contributing! Please use GitHub issues and Pull Requests for Contributing.

License

The MIT License (MIT). Please see License File for more information.

forthebadge

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Monitor

func Monitor(c *Client, userID string) error

Monitor user profile for changes

Types

type Client

type Client struct {
	*twittergo.Client
}

Client struct extends instance of TwitterGo

func NewClient

func NewClient(ck, cs, at, as string) *Client

NewClient creates new Client instance by using Customer Key, Customer Secret, Auth Token and Auth Secret

func (*Client) GetFollowersList

func (c *Client) GetFollowersList(userID string) (*FollowersList, error)

GetFollowersList gets followers list by given user ID

func (*Client) GetUserInfo

func (c *Client) GetUserInfo(userID string) (*twittergo.User, error)

GetUserInfo gets user information by given user ID

func (*Client) Notify

func (c *Client) Notify(userID, text string) error

Notify send direct message to given user ID

func (*Client) Send

func (c *Client) Send(reqType, endpoint string, query url.Values) (*twittergo.APIResponse, error)

Send sends request to twitter API using twitterGo package It logs request and rate limit data

type FollowersList

type FollowersList struct {
	Ids []int64
}

FollowersList keeps followers ID's list

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL