Documentation ¶
Index ¶
- Constants
- Variables
- type AuthTokenLogin
- type Client
- func (c *Client) AcceptChatInvitation(groupId string) (e error)
- func (c *Client) AcceptChatInvitationByTicket(groupId, ticketId string) (e error)
- func (c *Client) AcquireEncryptedAccessToken(featureType talk.Nc) (string, error)
- func (c *Client) AddOpInterrupt(optype talk.Af, fn func(*talk.Operation))
- func (c *Client) BlockContact(mid string) error
- func (c *Client) BlockRecommendation(mid string) error
- func (c *Client) CancelChatInvitation(groupId, mid string) (e error)
- func (c *Client) CreateChatRoomAnnouncement(reqSeq int32, chatRoomMid string, typeA1 talk.Y9, ...) (r *talk.ChatRoomAnnouncement, err error)
- func (c *Client) FindAndAddContactsByMid(mid string) (map[string]*talk.Contact, error)
- func (c *Client) FindChatByTicket(ticketId string) (*talk.Chat, error)
- func (c *Client) GetAllChatIds() ([]string, []string, error)
- func (c *Client) GetAllContactIds() ([]string, error)
- func (c *Client) GetBlockedContactIds() ([]string, error)
- func (c *Client) GetChat(groupId string) (*talk.Chat, error)
- func (c *Client) GetChatRoomAnnouncements(groupId string) ([]*talk.ChatRoomAnnouncement, error)
- func (c *Client) GetChats(groupIds []string) ([]*talk.Chat, error)
- func (c *Client) GetContact(mid string) (*talk.Contact, error)
- func (c *Client) GetContacts(midlist []string) ([]*talk.Contact, error)
- func (c *Client) GetProfile() (*talk.Profile, error)
- func (c *Client) GetSettings() (*talk.Settings, error)
- func (c *Client) InviteIntoChat(groupId string, midlist []string) (e error)
- func (c *Client) KickoutFromChat(groupId, mid string) (e error)
- func (c *Client) LeaveChat(groupId string) (e error)
- func (c *Client) Login(l LineLogin, options ...LoginOption) error
- func (c *Client) ReissueChatTicket(groupMid string) (string, error)
- func (c *Client) RejectChatInvitation(groupId string) (e error)
- func (c *Client) Run()
- func (c *Client) SendChatChecked(to, lastMessageId string, sessionId int8) error
- func (c *Client) SendMessage(msg *talk.Message) (*talk.Message, error)
- func (c *Client) SendText(to, text string) (*talk.Message, error)
- func (c *Client) SetOpInterrupt(opInterrupt map[talk.Af]func(*talk.Operation))
- func (c *Client) UnblockContact(mid string) error
- func (c *Client) UnblockRecommendation(mid string) error
- func (c *Client) UpdateChat(chat *talk.Chat, updateType talk.P9) (e error)
- type LineLogin
- type LoginOption
- type LoginType
- type OptionType
- type OptionWithMid
- type QrCodeLogin
Constants ¶
View Source
const ( LineHost = "https://legy-jp-addr.line.naver.jp" Register = "/api/v4/TalkService.do" Normal = LineHost + "/S4" Polling = LineHost + "/P4" SystemName = "lineGo" UserAgent = "Line/5.24.1" LineApp = "DESKTOPMAC\t5.24.1\tOS X\t10.15.1" )
Variables ¶
View Source
var QrCode = QrCodeLogin{}
Functions ¶
This section is empty.
Types ¶
type AuthTokenLogin ¶
type AuthTokenLogin string
func Token ¶
func Token(authToken string) AuthTokenLogin
func (AuthTokenLogin) Type ¶
func (a AuthTokenLogin) Type() LoginType
func (AuthTokenLogin) Value ¶
func (a AuthTokenLogin) Value() string
type Client ¶
type Client struct { Talk *talk.TalkServiceClient Poll *talk.TalkServiceClient Profile *talk.Profile Revision int64 OpInterrupt map[talk.Af]func(*talk.Operation) // contains filtered or unexported fields }
func (*Client) AcceptChatInvitation ¶
func (*Client) AcceptChatInvitationByTicket ¶
func (*Client) AcquireEncryptedAccessToken ¶
User
func (*Client) AddOpInterrupt ¶
func (*Client) BlockContact ¶
func (*Client) BlockRecommendation ¶
func (*Client) CancelChatInvitation ¶
func (*Client) CreateChatRoomAnnouncement ¶
func (c *Client) CreateChatRoomAnnouncement(reqSeq int32, chatRoomMid string, typeA1 talk.Y9, contents *talk.ChatRoomAnnouncementContents) (r *talk.ChatRoomAnnouncement, err error)
func (*Client) FindAndAddContactsByMid ¶
func (*Client) FindChatByTicket ¶
func (*Client) GetAllContactIds ¶
func (*Client) GetBlockedContactIds ¶
func (*Client) GetChatRoomAnnouncements ¶
func (c *Client) GetChatRoomAnnouncements(groupId string) ([]*talk.ChatRoomAnnouncement, error)
Chat
func (*Client) GetContacts ¶
func (*Client) InviteIntoChat ¶
func (*Client) KickoutFromChat ¶
func (*Client) ReissueChatTicket ¶
func (*Client) RejectChatInvitation ¶
func (*Client) SendChatChecked ¶
func (*Client) SendMessage ¶
Message
func (*Client) SetOpInterrupt ¶
Op Interrupt
func (*Client) UnblockContact ¶
func (*Client) UnblockRecommendation ¶
type LoginOption ¶
type LoginOption interface { Type() OptionType Value() string }
type OptionType ¶
type OptionType int
type OptionWithMid ¶
type OptionWithMid string
func WithMid ¶
func WithMid(mid string) OptionWithMid
func (OptionWithMid) Type ¶
func (o OptionWithMid) Type() OptionType
func (OptionWithMid) Value ¶
func (o OptionWithMid) Value() string
type QrCodeLogin ¶
type QrCodeLogin struct{}
func (QrCodeLogin) Type ¶
func (a QrCodeLogin) Type() LoginType
func (QrCodeLogin) Value ¶
func (a QrCodeLogin) Value() string
Click to show internal directories.
Click to hide internal directories.