Documentation ¶
Index ¶
Constants ¶
View Source
const (
DevToEndpoint = "https://dev.to"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { TypeOf string `json:"type_of"` Id int `json:"id"` Title string `json:"title"` Description string `json:"description"` ReadablePublishDate string `json:"readable_publish_date"` Slug string `json:"slug"` Path string `json:"path"` Url string `json:"url"` CommentsCount int `json:"comments_count"` PublicReactionsCount int `json:"public_reactions_count"` PublishedTimestamp *time.Time `json:"published_timestamp"` PositiveReactionsCount int `json:"positive_reactions_count"` CoverImage string `json:"cover_image"` SocialImage string `json:"social_image"` CanonicalUrl string `json:"canonical_url"` CreatedAt *time.Time `json:"created_at"` EditedAt *time.Time `json:"*"` PublishedAt *time.Time `json:"published_at"` LastCommentAt *time.Time `json:"last_comment_at"` ReadingTimeMinutes int `json:"reading_time_minutes"` TagList any `json:"tag_list"` Tags any `json:"tags"` User User `json:"user"` BodyMarkdown *string `json:"body_markdown"` BodyHtml *string `json:"body_html"` }
type GetArticlesPrams ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service docs: https://developers.forem.com/api
func NewAuthenticatedService ¶
func NewService ¶
func (*Service) GetArticleById ¶
func (*Service) GetArticles ¶
GetArticles Docs: https://developers.forem.com/api/v1#tag/articles/operation/getArticles
type SubmitArticleRequest ¶
type User ¶
type User struct { Name string `json:"name"` Username string `json:"username"` TwitterUsername string `json:"twitter_username"` GithubUsername string `json:"github_username"` UserId int `json:"user_id"` WebsiteUrl string `json:"website_url"` ProfileImage string `json:"profile_image"` ProfileImage90 string `json:"profile_image_90"` }
Click to show internal directories.
Click to hide internal directories.