Versions in this module Expand all Collapse all v1 v1.0.0 Dec 7, 2015 Changes in this version + const DialogueURL + const DomainURL + const KnowledgeQAURL + const TrendContentsURL + const TrendGenreURL + const TrendRelatedURL + const TrendSearchURL + func NewContext(ctx context.Context, apiKey string) context.Context + type Client struct + Dialogue *DialogueService + KnowledgeQA *KnowledgeQAService + Trend *TrendService + func FromContext(ctx context.Context) *Client + func NewClient(apiKey string) *Client + func Stub(filename string, outRes interface{}) (*httptest.Server, *Client) + type DialogueRequest struct + Age *int + BirthdateD *int + BirthdateM *int + BirthdateY *int + Bloodtype *string + CharactorID *int + Constellations *string + Context *string + Mode *string + Nickname *string + NicknameYomi *string + Place *string + Sex *string + Utt *string + type DialogueResponse struct + Context string + Da string + Mode string + RequestError struct{ ... } + Utt string + Yomi string + type DialogueService struct + func (d *DialogueService) Get(req DialogueRequest, refreshContext bool) (*DialogueResponse, error) + func (d *DialogueService) SetContext(context string) + func (d *DialogueService) WithContext(ctx context.Context) *DialogueService + type Genre struct + Description string + GenreID int + Title string + type KnowledgeQARequest struct + QAText string + type KnowledgeQAResponse struct + Answers []struct{ ... } + Code ResponseCode + Message struct{ ... } + func (q KnowledgeQAResponse) Success() bool + type KnowledgeQAService struct + func (d *KnowledgeQAService) WithContext(ctx context.Context) *KnowledgeQAService + func (q *KnowledgeQAService) Get(req KnowledgeQARequest) (*KnowledgeQAResponse, error) + type ResponseCode string + const NoResponseCode + const OkResponseCode + type TrendContentsRequest struct + GenreID *int + Lang *string + Num *int + StartNo *int + type TrendContentsResponse struct + ArticleContents []struct{ ... } + IssueDate string + ItemsPerPage float64 + StartIndex float64 + TotalResults float64 + type TrendGenreRequest struct + Lang *string + type TrendGenreResponse struct + Genre []Genre + type TrendRelatedRequest struct + ContentID *int + type TrendRelatedResponse struct + ArticleContents []struct{ ... } + TotalResults int + type TrendSearchRequest struct + GenreID *int + Keyword *string + Lang *string + Num *int + StartNo *int + type TrendSearchResponse struct + ArticleContents []struct{ ... } + IssueDate string + ItemsPerPage int + StartIndex int + TotalResults int + type TrendService struct + func (d *TrendService) WithContext(ctx context.Context) *TrendService + func (t *TrendService) GetContents(req TrendContentsRequest) (*TrendContentsResponse, error) + func (t *TrendService) GetGenre(req TrendGenreRequest) (*TrendGenreResponse, error) + func (t *TrendService) GetRelated(req TrendRelatedRequest) (*TrendRelatedResponse, error) + func (t *TrendService) GetSearch(req TrendSearchRequest) (*TrendSearchResponse, error)