toutiao

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int64  `json:"expires_in"`
	Error       int64  `json:"error"`
	ErrCode     int64  `json:"errcode"`
	ErrMsg      string `json:"errmsg"`
	Message     string `json:"message"`
}

AccessToken model

type Client

type Client struct {
	AppId  string
	Secret string
}

Client Client

func NewClient

func NewClient(appId, secret string) *Client

NewClient NewClient 传入appId和appSecret

func (*Client) GetAccessToken

func (c *Client) GetAccessToken() (accessData *AccessToken, err error)

GetAccessToken 获得头条的接口登录凭证

Jump to

Keyboard shortcuts

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