Versions in this module Expand all Collapse all v1 v1.0.0 Oct 31, 2021 Changes in this version + const BASE_URL + type Action string + const Bump + const Publish + const Unpublish + type Article struct + BodyHTML string + BodyMarkdown string + CanonicalURL string + CommentsCount int32 + CoverImage string + CreatedAt string + CrosspostedAt string + Description string + EditedAt string + FlareTag *ArticleFlareTag + ID int32 + LastCommentAt string + Organization *Organization + Path string + PositiveReactionsCount int32 + PublicReactionsCount int32 + Published bool + PublishedAt string + PublishedTimestamp string + ReadablePublishDate string + ReadingTimeMinutes int32 + Slug string + SocialImage string + TagList []string + Tags string + Title string + TypeOf string + URL string + User *User + type ArticleBodySchema struct + Article struct{ ... } + type ArticleFlareTag struct + BGColorHEX string + Name string + TextColorHEX string + type ArticleQueryParams struct + CollectionID int32 + Page int32 + PerPage int32 + State State + Tag string + Tags string + TagsExclude string + Top int32 + Username string + type ArticleVariant struct + TagList string + Tags []string + type Client struct + BaseUrl *url.URL + Client *http.Client + Token string + func NewClient(token string) (*Client, error) + func NewTestClient() (*Client, error) + func (c *Client) CreateArticle(payload ArticleBodySchema, filepath interface{}) (*ArticleVariant, error) + func (c *Client) CreateListing(payload ListingBodySchema, filepath interface{}) (*Listing, error) + func (c *Client) CreateWebhook(payload WebhookBodySchema) (*Webhook, error) + func (c *Client) DeleteWebhook(webhookID string) error + func (c *Client) GetArticlesWithVideo(q ArticleQueryParams) ([]VideoArticle, error) + func (c *Client) GetAuthenticatedUser() (*User, error) + func (c *Client) GetComment(commentID string) (*Comment, error) + func (c *Client) GetComments(q CommentQueryParams) ([]Comment, error) + func (c *Client) GetFollowedTags() ([]Tag, error) + func (c *Client) GetListingByID(listingID string) (*Listing, error) + func (c *Client) GetOrganization(orgname string) (*Organization, error) + func (c *Client) GetOrganizationArticles(orgname string, q OrganizationQueryParams) ([]Article, error) + func (c *Client) GetOrganizationListings(orgname string, q OrganizationQueryParams) ([]Listing, error) + func (c *Client) GetOrganizationUsers(orgname string, q OrganizationQueryParams) ([]User, error) + func (c *Client) GetProfileImage(username string) (*ProfileImage, error) + func (c *Client) GetPublishedArticleByID(articleID string) (*ArticleVariant, error) + func (c *Client) GetPublishedArticleByPath(username, slug string) (*ArticleVariant, error) + func (c *Client) GetPublishedArticles(q ArticleQueryParams) ([]Article, error) + func (c *Client) GetPublishedArticlesSorted(q ArticleQueryParams) ([]Article, error) + func (c *Client) GetPublishedListings(q ListingQueryParams) ([]Listing, error) + func (c *Client) GetPublishedListingsByCategory(category string, q ListingQueryParams) ([]Listing, error) + func (c *Client) GetPublishedPodcastEpisodes(q PodcastQueryParams) ([]PodcastEpisode, error) + func (c *Client) GetUserArticles(q ArticleQueryParams) ([]Article, error) + func (c *Client) GetUserByID(userID string) (*User, error) + func (c *Client) GetUserByUsername(q UserQueryParams) (*User, error) + func (c *Client) GetUserFollowers(q UserQueryParams) ([]User, error) + func (c *Client) GetUserPublishedArticles(q ArticleQueryParams) ([]Article, error) + func (c *Client) GetUserReadingList(q ReadingListQueryParams) ([]ReadingList, error) + func (c *Client) GetUserUnPublishedArticles(q ArticleQueryParams) ([]Article, error) + func (c *Client) GetWebhookByID(webhookID string) (*Webhook, error) + func (c *Client) GetWebhooks() ([]Webhook, error) + func (c *Client) NewRequest(ctx context.Context, method, path string, payload interface{}) (*http.Request, error) + func (c *Client) SendHttpRequest(r *http.Request, v interface{}) error + func (c *Client) UpdateArticle(articleID string, payload ArticleBodySchema, filepath interface{}) (*ArticleVariant, error) + func (c *Client) UpdateListing(listingID string, payload ListingBodySchema, filepath interface{}) (*Listing, error) + type Comment struct + BodyHTML string + Children []Comment + CreatedAt string + IDCode string + TypeOf string + User *User + type CommentQueryParams struct + ArticleID int32 + PodcastID int32 + type DevAPIError struct + func (d *DevAPIError) Error() string + type Listing struct + BodyMarkdown string + Category ListingCategory + ID int64 + Organization *Organization + ProcessedHTML string + Published bool + Slug string + TagList string + Tags []string + Title string + TypeOf string + User *User + type ListingBodySchema struct + Listing struct{ ... } + type ListingCategory string + const Cfp + const Collabs + const Education + const Events + const Forhire + const Forsale + const Jobs + const Mentees + const Mentors + const Misc + const Products + type ListingQueryParams struct + Category string + Page int32 + PerPage int32 + type Organization struct + GithubUsername string + JoinedAt string + Location string + Name string + ProfileImage string + ProfileImage90 string + Slug string + Story string + Summary string + TagLine string + TechStack string + TwitterUsername string + TypeOf string + URL string + Username string + type OrganizationQueryParams struct + Category ListingCategory + Page int32 + PerPage int32 + type PodcastEpisode struct + ID int32 + ImageURL string + Path string + Podcast struct{ ... } + Title string + TypeOf string + type PodcastQueryParams struct + Page int32 + PerPage int32 + Username string + type ProfileImage struct + ImageOf string + ProfileImage string + ProfileImage90 string + TypeOf string + type ReadingList struct + Article *Article + ID int32 + Status ReadingListStatus + TypeOf string + type ReadingListQueryParams struct + Page int32 + PerPage int32 + type ReadingListStatus string + const Archived + const Confirmed + const InvalidValid + const Valid + type State string + const All + const Fresh + const Rising + type Tag struct + ID int64 + Name string + Points float64 + type User struct + GithubUsername string + ID int32 + JoinedAt string + Location string + Name string + ProfileImage string + Summary string + TwitterUsername string + TypeOf string + Username string + WebsiteURL string + type UserQueryParams struct + Page int32 + PerPage int32 + Sort string + URL string + type VideoArticle struct + CloudinaryVideoURL string + ID int32 + Path string + Title string + TypeOf string + User *User + UserID int32 + VideoDurationInMinutes string + VideoSourceURL string + type Webhook struct + CreatedAt string + Events []string + ID int64 + Source string + TargetURL string + TypeOf string + type WebhookBodySchema struct + WebhookEndpoint struct{ ... }