twitter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package twitter contains implementation of Twitter API client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() api.Client

NewClient returns a new API Client for Twitter endpoint

Types

type Client added in v0.2.0

type Client struct {
	// contains filtered or unexported fields
}

Client is the implementation of api.Client for Twitter API endpoint

func (*Client) Check added in v0.2.0

func (t *Client) Check(name string) (*api.Account, error)

Check returns status of a Twitter account, i.e. is blocked or not

func (*Client) Get added in v0.2.0

func (t *Client) Get(name string) (*api.Account, error)

Get returns a blocked Twitter account based on the provided name, if found

func (*Client) List added in v0.2.0

func (t *Client) List() ([]*api.Account, error)

List returns list of blocked Twitter accounts

Jump to

Keyboard shortcuts

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