Versions in this module Expand all Collapse all v1 v1.0.3 Mar 13, 2022 v1.0.2 May 3, 2021 v1.0.1 May 1, 2021 Changes in this version + var ErrorApiKeyMissing = errors.New("API_KEY is missing") + var ErrorIDMissing = errors.New("id is missing") + func GetApiKey() string + func RetrieveAdminConfig() + func SetApiKeyHeader(req *http.Request) error + func UpdateAdminConfig() + type ArticleCreate struct + Article *ArticleCreateType + type ArticleCreateType struct + BodyMarkdown string + CanonicalURL string + Description string + MainImage string + OrganizationID int32 + Published bool + Series string + Tags []string + Title string + type ArticleEdit struct + Article *ArticleEditType + type ArticleEditType struct + BodyMarkdown string + CanonicalURL string + Description string + MainImage string + OrganizationID int32 + Published bool + Series string + Tags string + Title string + type ArticleMeResponse struct + BodyMarkdown string + CanonicalURL string + CommentsCount int32 + CoverImage string + Description string + FlareTag *FlareTagType + ID int32 + Organization *OrganizationType + PageViewsCount int32 + Path string + PositiveReactionsCount int32 + PublicReactionsCount int32 + Published bool + PublishedAt string + PublishedTimestamp string + ReadingTimeMinutes int32 + Slug string + TagList []string + Title string + TypeOf string + URL string + User *UserType + type ArticleResponse struct + BodyHtml string + BodyMarkdown string + CanonicalURL string + CommentsCount int32 + CoverImage string + CreatedAt string + CrosspostedAt string + Description string + EditedAt string + FlareTag *FlareTagType + ID int32 + LastCommentAt string + Organization *OrganizationType + Path string + PositiveReactionsCount int32 + PublicReactionsCount int32 + PublishedAt string + PublishedTimestamp string + ReadablePublishDate string + ReadingTimeMinutes int32 + Slug string + SocialImage string + TagList []string + Tags string + Title string + TypeOf string + URL string + User *UserType + type ArticleVideoResponse struct + CloudinaryVideoURL string + ID int32 + Path string + Title string + TypeOf string + User *UserType + VideoDurationInMinutes string + VideoSourceURL string + type ArticlesVideoResponse []*ArticleVideoResponse + func RetrieveArticlesVideo(id string) (*ArticlesVideoResponse, error) + type CommentQuery struct + AID int32 + PID int32 + type CommentType struct + BodyHtml string + Children []*CommentType + CreatedAt string + IDCode string + TypeOf string + User *UserType + func RetrieveComment(id string) (*CommentType, error) + type CommentsResponse []*CommentType + func RetrieveComments(queries *CommentQuery) (*CommentsResponse, error) + type CommonQuery struct + Page int32 + PerPage int32 + type ErrorResponse struct + Error string + Status int32 + type FlareTagType struct + BgColorHex string + Name string + TextColorHex string + type FollowTagsResponse []*FollowsTagType + func RetrieveTagsIFollow() (*FollowTagsResponse, error) + type FollowerType struct + CreatedAt string + ID int32 + Name string + Path string + ProfileImage string + TypeOf string + Username string + type FollowersQuery struct + Page int32 + PerPage int32 + Sort string + type FollowersResponse []*FollowerType + func RetrieveFollowers(query *FollowersQuery) (*FollowersResponse, error) + type FollowsTagType struct + ID int64 + Name string + Points float64 + type GetArticleQuery struct + CollectionID int32 + Page int32 + PerPage int32 + State string + Tag string + Tags string + TagsExclude string + Top int32 + Username string + type GetArticlesMeResponse []*ArticleMeResponse + func RetrieveMeArticles(queries *CommonQuery, pathToAdd string) (*GetArticlesMeResponse, error) + type GetArticlesResponse []*ArticleResponse + func RetrieveArticles(username string, queries *GetArticleQuery) (*GetArticlesResponse, error) + func RetrieveArticlesOnOrganization(username string, queries *CommonQuery) (*GetArticlesResponse, error) + func RetrieveLatestArticles(queries *CommonQuery) (*GetArticlesResponse, error) + type GetLatestArticleQuery CommonQuery + type ListingCreate struct + Listing *ListingCreateType + type ListingCreateType struct + Action string + BodyMarkdown string + Category string + Contact_via_connect bool + ExpiresAt string + Location string + OrganizationID int64 + TagList string + Tags []string + Title string + type ListingQuery struct + Category string + Page int32 + PerPage int32 + type ListingResponse []*ListingType + func RetrieveListingOnOrganization(username string, queries *OrganizationListingQuery) (*ListingResponse, error) + func RetrieveListings(queries *ListingQuery) (*ListingResponse, error) + func RetrieveListingsByID(id string) (*ListingResponse, error) + type ListingType struct + BodyMarkdown string + Category string + ID int64 + Organization *OrganizationType + ProcessedHtml string + Published bool + Slug string + TagList string + Tags []string + Title string + TypeOf string + User *UserType + func CreateListing(listing *ListingCreate) (*ListingType, error) + type ListingUpdate struct + Listing *ListingUpdateType + type ListingUpdateType struct + Action string + BodyMarkdown string + Category string + Contact_via_connect bool + ExpiresAt string + Location string + TagList []string + Tags string + Title string + type ModifiedArticle struct + BodyHtml string + BodyMarkdown string + CanonicalURL string + CommentsCount int32 + CoverImage string + CreatedAt string + CrosspostedAt string + Description string + EditedAt string + FlareTag *FlareTagType + ID int32 + LastCommentAt string + Organization *OrganizationType + Path string + PositiveReactionsCount int32 + PublicReactionsCount int32 + PublishedAt string + PublishedTimestamp string + ReadablePublishDate string + ReadingTimeMinutes int32 + Slug string + SocialImage string + TagList string + Tags []string + Title string + TypeOf string + URL string + User *UserType + func CreateArticle(article *ArticleCreate) (*ModifiedArticle, error) + func RetrieveArticleByID(id string) (*ModifiedArticle, error) + func UpdateArticle(id string, article *ArticleEdit) (*ModifiedArticle, error) + func UpdateListing(id string, listing *ListingUpdate) (*ModifiedArticle, error) + type OrganizationListingQuery struct + Category string + Page int32 + PerPage int32 + type OrganizationQuery CommonQuery + type OrganizationResponse struct + GithubUsername string + JoinedAt string + Location string + Name string + ProfileImage string + Story string + Summarry string + TagLine string + TechStack string + TwitterUsername string + TypeOf string + URL string + Username string + func RetrieveOrganizationByUsername(username string) (*OrganizationResponse, error) + type OrganizationType struct + Name string + ProfileImage string + ProfileImage90 string + Slug string + Username string + type PodcastEpisodesQuery struct + Page int32 + PerPage int32 + Username string + type PodcastResponse []*PodcastTypeResponse + func RetrievePodcastEpisodes(queries *PodcastEpisodesQuery) (*PodcastResponse, error) + type PodcastType struct + ImageURL string + Slug string + Title string + type PodcastTypeResponse struct + ID int32 + ImageURL string + Path string + Podcast *PodcastType + Title string + TypeOf string + type ProfileImageResponse struct + ImageOf string + ProfileImage string + ProfileImage90 string + TypeOf string + func RetrieveProfileImage(username string) (*ProfileImageResponse, error) + type ReadingListQuery CommonQuery + type ReadingListResponse []*ReadingListType + func RetrieveReadingList(queries *CommonQuery) (*ReadingListResponse, error) + type ReadingListType struct + Article *ArticleResponse + CreatedAt string + ID int32 + Status string + TypeOf string + type TagType struct + BgColorHex string + ID int64 + Name string + TextColorHex string + type TagsQuery CommonQuery + type TagsResponse []*TagType + func RetrieveTags(queries *CommonQuery) (*TagsResponse, error) + type UserOnOrganizationResponse []*UserOrganizationType + func RetrieveUsersOnOrganization(username string, queries *CommonQuery) (*UserOnOrganizationResponse, error) + type UserOrganizationType struct + GithubUsername string + ID int32 + JoinedAt string + Location string + Name string + ProfileImage string + Summary string + TwitterUsername string + TypeOf string + Username string + WebsiteURL string + type UserType struct + GithubUsername string + Name string + ProfileImage string + ProfileImage90 string + TwitterUsername string + Username string + WebsiteURL string + type WebhookCreatedResponse WebhookTypeBasic + func CreateWebhook(listing *WebhooksCreateType) (*WebhookCreatedResponse, error) + type WebhookDataCreate struct + Events []string + Source string + TargetURL string + type WebhookTypeBasic struct + CreatedAt string + Events string + ID int64 + Source string + TargetURL string + TypeOf string + User *UserType + func DeleteWebhook(id string) (*WebhookTypeBasic, error) + func RetrieveWebhookByID(id string) (*WebhookTypeBasic, error) + type WebhooksCreateType struct + WebhookEndpoint *WebhookDataCreate + type WebhooksResponse []*WebhooksType + func RetrieveWebhooks() (*WebhooksResponse, error) + type WebhooksType struct + CreatedAt string + Events string + ID int64 + Source string + TargetURL string + TypeOf string