Documentation ¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT.
Index ¶
- Constants
- func NewCreateArticleRequest(server string, body CreateArticleJSONRequestBody) (*http.Request, error)
- func NewCreateArticleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteApiPagesIdRequest(server string, id int32) (*http.Request, error)
- func NewGetApiDisplayAdsIdRequest(server string, id int32) (*http.Request, error)
- func NewGetApiDisplayAdsRequest(server string) (*http.Request, error)
- func NewGetApiPagesIdRequest(server string, id int32) (*http.Request, error)
- func NewGetApiPagesRequest(server string) (*http.Request, error)
- func NewGetArticleByIdRequest(server string, id int) (*http.Request, error)
- func NewGetArticleByPathRequest(server string, username string, slug string) (*http.Request, error)
- func NewGetArticlesRequest(server string, params *GetArticlesParams) (*http.Request, error)
- func NewGetCommentByIdRequest(server string, id int) (*http.Request, error)
- func NewGetCommentsByArticleIdRequest(server string, params *GetCommentsByArticleIdParams) (*http.Request, error)
- func NewGetFollowedTagsRequest(server string) (*http.Request, error)
- func NewGetFollowersRequest(server string, params *GetFollowersParams) (*http.Request, error)
- func NewGetLatestArticlesRequest(server string, params *GetLatestArticlesParams) (*http.Request, error)
- func NewGetOrgArticlesRequest(server string, username string, params *GetOrgArticlesParams) (*http.Request, error)
- func NewGetOrgUsersRequest(server string, username string, params *GetOrgUsersParams) (*http.Request, error)
- func NewGetOrganizationRequest(server string, username string) (*http.Request, error)
- func NewGetPodcastEpisodesRequest(server string, params *GetPodcastEpisodesParams) (*http.Request, error)
- func NewGetProfileImageRequest(server string, username string) (*http.Request, error)
- func NewGetReadinglistRequest(server string, params *GetReadinglistParams) (*http.Request, error)
- func NewGetTagsRequest(server string, params *GetTagsParams) (*http.Request, error)
- func NewGetUserAllArticlesRequest(server string, params *GetUserAllArticlesParams) (*http.Request, error)
- func NewGetUserArticlesRequest(server string, params *GetUserArticlesParams) (*http.Request, error)
- func NewGetUserMeRequest(server string) (*http.Request, error)
- func NewGetUserPublishedArticlesRequest(server string, params *GetUserPublishedArticlesParams) (*http.Request, error)
- func NewGetUserRequest(server string, id string) (*http.Request, error)
- func NewGetUserUnpublishedArticlesRequest(server string, params *GetUserUnpublishedArticlesParams) (*http.Request, error)
- func NewPostAdminUsersCreateRequest(server string, body PostAdminUsersCreateJSONRequestBody) (*http.Request, error)
- func NewPostAdminUsersCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiDisplayAdsRequest(server string, body PostApiDisplayAdsJSONRequestBody) (*http.Request, error)
- func NewPostApiDisplayAdsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiPagesRequest(server string, body PostApiPagesJSONRequestBody) (*http.Request, error)
- func NewPostApiPagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiReactionsRequest(server string, params *PostApiReactionsParams) (*http.Request, error)
- func NewPostApiReactionsToggleRequest(server string, params *PostApiReactionsToggleParams) (*http.Request, error)
- func NewPutApiDisplayAdsIdRequest(server string, id int32, body PutApiDisplayAdsIdJSONRequestBody) (*http.Request, error)
- func NewPutApiDisplayAdsIdRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)
- func NewPutApiDisplayAdsIdUnpublishRequest(server string, id int32) (*http.Request, error)
- func NewPutApiPagesIdRequest(server string, id int32, body PutApiPagesIdJSONRequestBody) (*http.Request, error)
- func NewPutApiPagesIdRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)
- func NewSuspendUserRequest(server string, id int32) (*http.Request, error)
- func NewUnpublishArticleRequest(server string, id int32, params *UnpublishArticleParams) (*http.Request, error)
- func NewUnpublishUserRequest(server string, id int32) (*http.Request, error)
- func NewUpdateArticleRequest(server string, id int32, body UpdateArticleJSONRequestBody) (*http.Request, error)
- func NewUpdateArticleRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)
- func NewVideosRequest(server string, params *VideosParams) (*http.Request, error)
- type Article
- type ArticleFlareTag
- type ArticleIndex
- type Client
- func (c *Client) CreateArticle(ctx context.Context, body CreateArticleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateArticleWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteApiPagesId(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiDisplayAds(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiDisplayAdsId(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiPages(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiPagesId(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetArticleById(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetArticleByPath(ctx context.Context, username string, slug string, ...) (*http.Response, error)
- func (c *Client) GetArticles(ctx context.Context, params *GetArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCommentById(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCommentsByArticleId(ctx context.Context, params *GetCommentsByArticleIdParams, ...) (*http.Response, error)
- func (c *Client) GetFollowedTags(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetFollowers(ctx context.Context, params *GetFollowersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLatestArticles(ctx context.Context, params *GetLatestArticlesParams, ...) (*http.Response, error)
- func (c *Client) GetOrgArticles(ctx context.Context, username string, params *GetOrgArticlesParams, ...) (*http.Response, error)
- func (c *Client) GetOrgUsers(ctx context.Context, username string, params *GetOrgUsersParams, ...) (*http.Response, error)
- func (c *Client) GetOrganization(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPodcastEpisodes(ctx context.Context, params *GetPodcastEpisodesParams, ...) (*http.Response, error)
- func (c *Client) GetProfileImage(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetReadinglist(ctx context.Context, params *GetReadinglistParams, ...) (*http.Response, error)
- func (c *Client) GetTags(ctx context.Context, params *GetTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUserAllArticles(ctx context.Context, params *GetUserAllArticlesParams, ...) (*http.Response, error)
- func (c *Client) GetUserArticles(ctx context.Context, params *GetUserArticlesParams, ...) (*http.Response, error)
- func (c *Client) GetUserMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUserPublishedArticles(ctx context.Context, params *GetUserPublishedArticlesParams, ...) (*http.Response, error)
- func (c *Client) GetUserUnpublishedArticles(ctx context.Context, params *GetUserUnpublishedArticlesParams, ...) (*http.Response, error)
- func (c *Client) PostAdminUsersCreate(ctx context.Context, body PostAdminUsersCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostAdminUsersCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiDisplayAds(ctx context.Context, body PostApiDisplayAdsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiDisplayAdsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiPages(ctx context.Context, body PostApiPagesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiPagesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiReactions(ctx context.Context, params *PostApiReactionsParams, ...) (*http.Response, error)
- func (c *Client) PostApiReactionsToggle(ctx context.Context, params *PostApiReactionsToggleParams, ...) (*http.Response, error)
- func (c *Client) PutApiDisplayAdsId(ctx context.Context, id int32, body PutApiDisplayAdsIdJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutApiDisplayAdsIdUnpublish(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PutApiDisplayAdsIdWithBody(ctx context.Context, id int32, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutApiPagesId(ctx context.Context, id int32, body PutApiPagesIdJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutApiPagesIdWithBody(ctx context.Context, id int32, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SuspendUser(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UnpublishArticle(ctx context.Context, id int32, params *UnpublishArticleParams, ...) (*http.Response, error)
- func (c *Client) UnpublishUser(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateArticle(ctx context.Context, id int32, body UpdateArticleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateArticleWithBody(ctx context.Context, id int32, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Videos(ctx context.Context, params *VideosParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateArticleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateArticleResponse, error)
- func (c *ClientWithResponses) CreateArticleWithResponse(ctx context.Context, body CreateArticleJSONRequestBody, ...) (*CreateArticleResponse, error)
- func (c *ClientWithResponses) DeleteApiPagesIdWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*DeleteApiPagesIdResponse, error)
- func (c *ClientWithResponses) GetApiDisplayAdsIdWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetApiDisplayAdsIdResponse, error)
- func (c *ClientWithResponses) GetApiDisplayAdsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiDisplayAdsResponse, error)
- func (c *ClientWithResponses) GetApiPagesIdWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetApiPagesIdResponse, error)
- func (c *ClientWithResponses) GetApiPagesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPagesResponse, error)
- func (c *ClientWithResponses) GetArticleByIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetArticleByIdResponse, error)
- func (c *ClientWithResponses) GetArticleByPathWithResponse(ctx context.Context, username string, slug string, ...) (*GetArticleByPathResponse, error)
- func (c *ClientWithResponses) GetArticlesWithResponse(ctx context.Context, params *GetArticlesParams, reqEditors ...RequestEditorFn) (*GetArticlesResponse, error)
- func (c *ClientWithResponses) GetCommentByIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetCommentByIdResponse, error)
- func (c *ClientWithResponses) GetCommentsByArticleIdWithResponse(ctx context.Context, params *GetCommentsByArticleIdParams, ...) (*GetCommentsByArticleIdResponse, error)
- func (c *ClientWithResponses) GetFollowedTagsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFollowedTagsResponse, error)
- func (c *ClientWithResponses) GetFollowersWithResponse(ctx context.Context, params *GetFollowersParams, reqEditors ...RequestEditorFn) (*GetFollowersResponse, error)
- func (c *ClientWithResponses) GetLatestArticlesWithResponse(ctx context.Context, params *GetLatestArticlesParams, ...) (*GetLatestArticlesResponse, error)
- func (c *ClientWithResponses) GetOrgArticlesWithResponse(ctx context.Context, username string, params *GetOrgArticlesParams, ...) (*GetOrgArticlesResponse, error)
- func (c *ClientWithResponses) GetOrgUsersWithResponse(ctx context.Context, username string, params *GetOrgUsersParams, ...) (*GetOrgUsersResponse, error)
- func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)
- func (c *ClientWithResponses) GetPodcastEpisodesWithResponse(ctx context.Context, params *GetPodcastEpisodesParams, ...) (*GetPodcastEpisodesResponse, error)
- func (c *ClientWithResponses) GetProfileImageWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*GetProfileImageResponse, error)
- func (c *ClientWithResponses) GetReadinglistWithResponse(ctx context.Context, params *GetReadinglistParams, ...) (*GetReadinglistResponse, error)
- func (c *ClientWithResponses) GetTagsWithResponse(ctx context.Context, params *GetTagsParams, reqEditors ...RequestEditorFn) (*GetTagsResponse, error)
- func (c *ClientWithResponses) GetUserAllArticlesWithResponse(ctx context.Context, params *GetUserAllArticlesParams, ...) (*GetUserAllArticlesResponse, error)
- func (c *ClientWithResponses) GetUserArticlesWithResponse(ctx context.Context, params *GetUserArticlesParams, ...) (*GetUserArticlesResponse, error)
- func (c *ClientWithResponses) GetUserMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserMeResponse, error)
- func (c *ClientWithResponses) GetUserPublishedArticlesWithResponse(ctx context.Context, params *GetUserPublishedArticlesParams, ...) (*GetUserPublishedArticlesResponse, error)
- func (c *ClientWithResponses) GetUserUnpublishedArticlesWithResponse(ctx context.Context, params *GetUserUnpublishedArticlesParams, ...) (*GetUserUnpublishedArticlesResponse, error)
- func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
- func (c *ClientWithResponses) PostAdminUsersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostAdminUsersCreateResponse, error)
- func (c *ClientWithResponses) PostAdminUsersCreateWithResponse(ctx context.Context, body PostAdminUsersCreateJSONRequestBody, ...) (*PostAdminUsersCreateResponse, error)
- func (c *ClientWithResponses) PostApiDisplayAdsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiDisplayAdsResponse, error)
- func (c *ClientWithResponses) PostApiDisplayAdsWithResponse(ctx context.Context, body PostApiDisplayAdsJSONRequestBody, ...) (*PostApiDisplayAdsResponse, error)
- func (c *ClientWithResponses) PostApiPagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiPagesResponse, error)
- func (c *ClientWithResponses) PostApiPagesWithResponse(ctx context.Context, body PostApiPagesJSONRequestBody, ...) (*PostApiPagesResponse, error)
- func (c *ClientWithResponses) PostApiReactionsToggleWithResponse(ctx context.Context, params *PostApiReactionsToggleParams, ...) (*PostApiReactionsToggleResponse, error)
- func (c *ClientWithResponses) PostApiReactionsWithResponse(ctx context.Context, params *PostApiReactionsParams, ...) (*PostApiReactionsResponse, error)
- func (c *ClientWithResponses) PutApiDisplayAdsIdUnpublishWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*PutApiDisplayAdsIdUnpublishResponse, error)
- func (c *ClientWithResponses) PutApiDisplayAdsIdWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, ...) (*PutApiDisplayAdsIdResponse, error)
- func (c *ClientWithResponses) PutApiDisplayAdsIdWithResponse(ctx context.Context, id int32, body PutApiDisplayAdsIdJSONRequestBody, ...) (*PutApiDisplayAdsIdResponse, error)
- func (c *ClientWithResponses) PutApiPagesIdWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, ...) (*PutApiPagesIdResponse, error)
- func (c *ClientWithResponses) PutApiPagesIdWithResponse(ctx context.Context, id int32, body PutApiPagesIdJSONRequestBody, ...) (*PutApiPagesIdResponse, error)
- func (c *ClientWithResponses) SuspendUserWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*SuspendUserResponse, error)
- func (c *ClientWithResponses) UnpublishArticleWithResponse(ctx context.Context, id int32, params *UnpublishArticleParams, ...) (*UnpublishArticleResponse, error)
- func (c *ClientWithResponses) UnpublishUserWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*UnpublishUserResponse, error)
- func (c *ClientWithResponses) UpdateArticleWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, ...) (*UpdateArticleResponse, error)
- func (c *ClientWithResponses) UpdateArticleWithResponse(ctx context.Context, id int32, body UpdateArticleJSONRequestBody, ...) (*UpdateArticleResponse, error)
- func (c *ClientWithResponses) VideosWithResponse(ctx context.Context, params *VideosParams, reqEditors ...RequestEditorFn) (*VideosResponse, error)
- type ClientWithResponsesInterface
- type Comment
- type CreateArticleJSONRequestBody
- type CreateArticleResponse
- type DeleteApiPagesIdResponse
- type DisplayAd
- type DisplayAdAudienceSegmentType
- type DisplayAdDisplayTo
- type DisplayAdPlacementArea
- type DisplayAdTypeOf
- type FollowedTag
- type GetApiDisplayAdsIdResponse
- type GetApiDisplayAdsResponse
- type GetApiPagesIdResponse
- type GetApiPagesResponse
- type GetArticleByIdResponse
- type GetArticleByPathResponse
- type GetArticlesParams
- type GetArticlesParamsState
- type GetArticlesResponse
- type GetCommentByIdResponse
- type GetCommentsByArticleIdParams
- type GetCommentsByArticleIdResponse
- type GetFollowedTagsResponse
- type GetFollowersParams
- type GetFollowersResponse
- type GetLatestArticlesParams
- type GetLatestArticlesResponse
- type GetOrgArticlesParams
- type GetOrgArticlesResponse
- type GetOrgUsersParams
- type GetOrgUsersResponse
- type GetOrganizationResponse
- type GetPodcastEpisodesParams
- type GetPodcastEpisodesResponse
- type GetProfileImageResponse
- type GetReadinglistParams
- type GetReadinglistResponse
- type GetTagsParams
- type GetTagsResponse
- type GetUserAllArticlesParams
- type GetUserAllArticlesResponse
- type GetUserArticlesParams
- type GetUserArticlesResponse
- type GetUserMeResponse
- type GetUserPublishedArticlesParams
- type GetUserPublishedArticlesResponse
- type GetUserResponse
- type GetUserUnpublishedArticlesParams
- type GetUserUnpublishedArticlesResponse
- type HttpRequestDoer
- type Organization
- type Page
- type PageParam
- type PageTemplate
- type PerPageParam10to1000
- type PerPageParam24to1000
- type PerPageParam30to1000
- type PodcastEpisodeIndex
- type PostAdminUsersCreateJSONRequestBody
- type PostAdminUsersCreateResponse
- type PostApiDisplayAdsJSONBody
- type PostApiDisplayAdsJSONRequestBody
- type PostApiDisplayAdsResponse
- type PostApiPagesJSONBody
- type PostApiPagesJSONBodyTemplate
- type PostApiPagesJSONRequestBody
- type PostApiPagesResponse
- type PostApiReactionsParams
- type PostApiReactionsParamsCategory
- type PostApiReactionsParamsReactableType
- type PostApiReactionsResponse
- type PostApiReactionsToggleParams
- type PostApiReactionsToggleParamsCategory
- type PostApiReactionsToggleParamsReactableType
- type PostApiReactionsToggleResponse
- type ProfileImage
- type PutApiDisplayAdsIdJSONBody
- type PutApiDisplayAdsIdJSONRequestBody
- type PutApiDisplayAdsIdResponse
- type PutApiDisplayAdsIdUnpublishResponse
- type PutApiPagesIdJSONRequestBody
- type PutApiPagesIdResponse
- type RequestEditorFn
- type SharedOrganization
- type SharedPodcast
- type SharedUser
- type SuspendUserResponse
- type Tag
- type UnpublishArticleParams
- type UnpublishArticleResponse
- type UnpublishUserResponse
- type UpdateArticleJSONRequestBody
- type UpdateArticleResponse
- type User
- type UserInviteParam
- type VideoArticle
- type VideosParams
- type VideosResponse
Constants ¶
const (
Api_keyScopes = "api_key.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewCreateArticleRequest ¶
func NewCreateArticleRequest(server string, body CreateArticleJSONRequestBody) (*http.Request, error)
NewCreateArticleRequest calls the generic CreateArticle builder with application/json body
func NewCreateArticleRequestWithBody ¶
func NewCreateArticleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateArticleRequestWithBody generates requests for CreateArticle with any type of body
func NewDeleteApiPagesIdRequest ¶
NewDeleteApiPagesIdRequest generates requests for DeleteApiPagesId
func NewGetApiDisplayAdsIdRequest ¶
NewGetApiDisplayAdsIdRequest generates requests for GetApiDisplayAdsId
func NewGetApiDisplayAdsRequest ¶
NewGetApiDisplayAdsRequest generates requests for GetApiDisplayAds
func NewGetApiPagesIdRequest ¶
NewGetApiPagesIdRequest generates requests for GetApiPagesId
func NewGetApiPagesRequest ¶
NewGetApiPagesRequest generates requests for GetApiPages
func NewGetArticleByIdRequest ¶
NewGetArticleByIdRequest generates requests for GetArticleById
func NewGetArticleByPathRequest ¶
NewGetArticleByPathRequest generates requests for GetArticleByPath
func NewGetArticlesRequest ¶
func NewGetArticlesRequest(server string, params *GetArticlesParams) (*http.Request, error)
NewGetArticlesRequest generates requests for GetArticles
func NewGetCommentByIdRequest ¶
NewGetCommentByIdRequest generates requests for GetCommentById
func NewGetCommentsByArticleIdRequest ¶
func NewGetCommentsByArticleIdRequest(server string, params *GetCommentsByArticleIdParams) (*http.Request, error)
NewGetCommentsByArticleIdRequest generates requests for GetCommentsByArticleId
func NewGetFollowedTagsRequest ¶
NewGetFollowedTagsRequest generates requests for GetFollowedTags
func NewGetFollowersRequest ¶
func NewGetFollowersRequest(server string, params *GetFollowersParams) (*http.Request, error)
NewGetFollowersRequest generates requests for GetFollowers
func NewGetLatestArticlesRequest ¶
func NewGetLatestArticlesRequest(server string, params *GetLatestArticlesParams) (*http.Request, error)
NewGetLatestArticlesRequest generates requests for GetLatestArticles
func NewGetOrgArticlesRequest ¶
func NewGetOrgArticlesRequest(server string, username string, params *GetOrgArticlesParams) (*http.Request, error)
NewGetOrgArticlesRequest generates requests for GetOrgArticles
func NewGetOrgUsersRequest ¶
func NewGetOrgUsersRequest(server string, username string, params *GetOrgUsersParams) (*http.Request, error)
NewGetOrgUsersRequest generates requests for GetOrgUsers
func NewGetOrganizationRequest ¶
NewGetOrganizationRequest generates requests for GetOrganization
func NewGetPodcastEpisodesRequest ¶
func NewGetPodcastEpisodesRequest(server string, params *GetPodcastEpisodesParams) (*http.Request, error)
NewGetPodcastEpisodesRequest generates requests for GetPodcastEpisodes
func NewGetProfileImageRequest ¶
NewGetProfileImageRequest generates requests for GetProfileImage
func NewGetReadinglistRequest ¶
func NewGetReadinglistRequest(server string, params *GetReadinglistParams) (*http.Request, error)
NewGetReadinglistRequest generates requests for GetReadinglist
func NewGetTagsRequest ¶
func NewGetTagsRequest(server string, params *GetTagsParams) (*http.Request, error)
NewGetTagsRequest generates requests for GetTags
func NewGetUserAllArticlesRequest ¶
func NewGetUserAllArticlesRequest(server string, params *GetUserAllArticlesParams) (*http.Request, error)
NewGetUserAllArticlesRequest generates requests for GetUserAllArticles
func NewGetUserArticlesRequest ¶
func NewGetUserArticlesRequest(server string, params *GetUserArticlesParams) (*http.Request, error)
NewGetUserArticlesRequest generates requests for GetUserArticles
func NewGetUserMeRequest ¶
NewGetUserMeRequest generates requests for GetUserMe
func NewGetUserPublishedArticlesRequest ¶
func NewGetUserPublishedArticlesRequest(server string, params *GetUserPublishedArticlesParams) (*http.Request, error)
NewGetUserPublishedArticlesRequest generates requests for GetUserPublishedArticles
func NewGetUserRequest ¶
NewGetUserRequest generates requests for GetUser
func NewGetUserUnpublishedArticlesRequest ¶
func NewGetUserUnpublishedArticlesRequest(server string, params *GetUserUnpublishedArticlesParams) (*http.Request, error)
NewGetUserUnpublishedArticlesRequest generates requests for GetUserUnpublishedArticles
func NewPostAdminUsersCreateRequest ¶
func NewPostAdminUsersCreateRequest(server string, body PostAdminUsersCreateJSONRequestBody) (*http.Request, error)
NewPostAdminUsersCreateRequest calls the generic PostAdminUsersCreate builder with application/json body
func NewPostAdminUsersCreateRequestWithBody ¶
func NewPostAdminUsersCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostAdminUsersCreateRequestWithBody generates requests for PostAdminUsersCreate with any type of body
func NewPostApiDisplayAdsRequest ¶
func NewPostApiDisplayAdsRequest(server string, body PostApiDisplayAdsJSONRequestBody) (*http.Request, error)
NewPostApiDisplayAdsRequest calls the generic PostApiDisplayAds builder with application/json body
func NewPostApiDisplayAdsRequestWithBody ¶
func NewPostApiDisplayAdsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiDisplayAdsRequestWithBody generates requests for PostApiDisplayAds with any type of body
func NewPostApiPagesRequest ¶
func NewPostApiPagesRequest(server string, body PostApiPagesJSONRequestBody) (*http.Request, error)
NewPostApiPagesRequest calls the generic PostApiPages builder with application/json body
func NewPostApiPagesRequestWithBody ¶
func NewPostApiPagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiPagesRequestWithBody generates requests for PostApiPages with any type of body
func NewPostApiReactionsRequest ¶
func NewPostApiReactionsRequest(server string, params *PostApiReactionsParams) (*http.Request, error)
NewPostApiReactionsRequest generates requests for PostApiReactions
func NewPostApiReactionsToggleRequest ¶
func NewPostApiReactionsToggleRequest(server string, params *PostApiReactionsToggleParams) (*http.Request, error)
NewPostApiReactionsToggleRequest generates requests for PostApiReactionsToggle
func NewPutApiDisplayAdsIdRequest ¶
func NewPutApiDisplayAdsIdRequest(server string, id int32, body PutApiDisplayAdsIdJSONRequestBody) (*http.Request, error)
NewPutApiDisplayAdsIdRequest calls the generic PutApiDisplayAdsId builder with application/json body
func NewPutApiDisplayAdsIdRequestWithBody ¶
func NewPutApiDisplayAdsIdRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)
NewPutApiDisplayAdsIdRequestWithBody generates requests for PutApiDisplayAdsId with any type of body
func NewPutApiDisplayAdsIdUnpublishRequest ¶
NewPutApiDisplayAdsIdUnpublishRequest generates requests for PutApiDisplayAdsIdUnpublish
func NewPutApiPagesIdRequest ¶
func NewPutApiPagesIdRequest(server string, id int32, body PutApiPagesIdJSONRequestBody) (*http.Request, error)
NewPutApiPagesIdRequest calls the generic PutApiPagesId builder with application/json body
func NewPutApiPagesIdRequestWithBody ¶
func NewPutApiPagesIdRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)
NewPutApiPagesIdRequestWithBody generates requests for PutApiPagesId with any type of body
func NewSuspendUserRequest ¶
NewSuspendUserRequest generates requests for SuspendUser
func NewUnpublishArticleRequest ¶
func NewUnpublishArticleRequest(server string, id int32, params *UnpublishArticleParams) (*http.Request, error)
NewUnpublishArticleRequest generates requests for UnpublishArticle
func NewUnpublishUserRequest ¶
NewUnpublishUserRequest generates requests for UnpublishUser
func NewUpdateArticleRequest ¶
func NewUpdateArticleRequest(server string, id int32, body UpdateArticleJSONRequestBody) (*http.Request, error)
NewUpdateArticleRequest calls the generic UpdateArticle builder with application/json body
func NewUpdateArticleRequestWithBody ¶
func NewUpdateArticleRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)
NewUpdateArticleRequestWithBody generates requests for UpdateArticle with any type of body
func NewVideosRequest ¶
func NewVideosRequest(server string, params *VideosParams) (*http.Request, error)
NewVideosRequest generates requests for Videos
Types ¶
type Article ¶
type Article struct { Article *struct { BodyMarkdown *string `json:"body_markdown,omitempty"` CanonicalUrl *string `json:"canonical_url"` Description *string `json:"description,omitempty"` MainImage *string `json:"main_image"` OrganizationId *int `json:"organization_id"` Published *bool `json:"published,omitempty"` Series *string `json:"series"` Tags *[]string `json:"tags,omitempty"` Title *string `json:"title,omitempty"` } `json:"article,omitempty"` }
Article Representation of an Article to be created/updated
type ArticleFlareTag ¶
type ArticleFlareTag struct { // BgColorHex Background color (hexadecimal) BgColorHex *string `json:"bg_color_hex"` Name *string `json:"name,omitempty"` // TextColorHex Text color (hexadecimal) TextColorHex *string `json:"text_color_hex"` }
ArticleFlareTag Flare tag of the article
type ArticleIndex ¶
type ArticleIndex struct { CanonicalUrl string `json:"canonical_url"` CoverImage *string `json:"cover_image"` CreatedAt time.Time `json:"created_at"` CrosspostedAt *time.Time `json:"crossposted_at"` Description string `json:"description"` EditedAt *time.Time `json:"edited_at"` // FlareTag Flare tag of the article FlareTag *ArticleFlareTag `json:"flare_tag,omitempty"` Id int32 `json:"id"` LastCommentAt time.Time `json:"last_comment_at"` // Organization The organization the resource belongs to Organization *SharedOrganization `json:"organization,omitempty"` Path string `json:"path"` PositiveReactionsCount int32 `json:"positive_reactions_count"` PublicReactionsCount int32 `json:"public_reactions_count"` PublishedAt time.Time `json:"published_at"` // PublishedTimestamp Crossposting or published date time PublishedTimestamp time.Time `json:"published_timestamp"` ReadablePublishDate string `json:"readable_publish_date"` // ReadingTimeMinutes Reading time, in minutes ReadingTimeMinutes int32 `json:"reading_time_minutes"` Slug string `json:"slug"` SocialImage string `json:"social_image"` TagList []string `json:"tag_list"` Tags string `json:"tags"` Title string `json:"title"` TypeOf string `json:"type_of"` Url string `json:"url"` // User The resource creator User SharedUser `json:"user"` }
ArticleIndex Representation of an article or post returned in a list
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CreateArticle ¶
func (c *Client) CreateArticle(ctx context.Context, body CreateArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateArticleWithBody ¶
func (*Client) DeleteApiPagesId ¶
func (*Client) GetApiDisplayAds ¶
func (*Client) GetApiDisplayAdsId ¶
func (*Client) GetApiPages ¶
func (*Client) GetApiPagesId ¶
func (*Client) GetArticleById ¶
func (*Client) GetArticleByPath ¶
func (*Client) GetArticles ¶
func (c *Client) GetArticles(ctx context.Context, params *GetArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCommentById ¶
func (*Client) GetCommentsByArticleId ¶
func (c *Client) GetCommentsByArticleId(ctx context.Context, params *GetCommentsByArticleIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFollowedTags ¶
func (*Client) GetFollowers ¶
func (c *Client) GetFollowers(ctx context.Context, params *GetFollowersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetLatestArticles ¶
func (c *Client) GetLatestArticles(ctx context.Context, params *GetLatestArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetOrgArticles ¶
func (c *Client) GetOrgArticles(ctx context.Context, username string, params *GetOrgArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetOrgUsers ¶
func (c *Client) GetOrgUsers(ctx context.Context, username string, params *GetOrgUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetOrganization ¶
func (*Client) GetPodcastEpisodes ¶
func (c *Client) GetPodcastEpisodes(ctx context.Context, params *GetPodcastEpisodesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetProfileImage ¶
func (*Client) GetReadinglist ¶
func (c *Client) GetReadinglist(ctx context.Context, params *GetReadinglistParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTags ¶
func (c *Client) GetTags(ctx context.Context, params *GetTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserAllArticles ¶
func (c *Client) GetUserAllArticles(ctx context.Context, params *GetUserAllArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserArticles ¶
func (c *Client) GetUserArticles(ctx context.Context, params *GetUserArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserPublishedArticles ¶
func (c *Client) GetUserPublishedArticles(ctx context.Context, params *GetUserPublishedArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserUnpublishedArticles ¶
func (c *Client) GetUserUnpublishedArticles(ctx context.Context, params *GetUserUnpublishedArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostAdminUsersCreate ¶
func (c *Client) PostAdminUsersCreate(ctx context.Context, body PostAdminUsersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostAdminUsersCreateWithBody ¶
func (*Client) PostApiDisplayAds ¶
func (c *Client) PostApiDisplayAds(ctx context.Context, body PostApiDisplayAdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiDisplayAdsWithBody ¶
func (*Client) PostApiPages ¶
func (c *Client) PostApiPages(ctx context.Context, body PostApiPagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiPagesWithBody ¶
func (*Client) PostApiReactions ¶
func (c *Client) PostApiReactions(ctx context.Context, params *PostApiReactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostApiReactionsToggle ¶
func (c *Client) PostApiReactionsToggle(ctx context.Context, params *PostApiReactionsToggleParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutApiDisplayAdsId ¶
func (c *Client) PutApiDisplayAdsId(ctx context.Context, id int32, body PutApiDisplayAdsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutApiDisplayAdsIdUnpublish ¶
func (*Client) PutApiDisplayAdsIdWithBody ¶
func (*Client) PutApiPagesId ¶
func (c *Client) PutApiPagesId(ctx context.Context, id int32, body PutApiPagesIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutApiPagesIdWithBody ¶
func (*Client) SuspendUser ¶
func (*Client) UnpublishArticle ¶
func (c *Client) UnpublishArticle(ctx context.Context, id int32, params *UnpublishArticleParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UnpublishUser ¶
func (*Client) UpdateArticle ¶
func (c *Client) UpdateArticle(ctx context.Context, id int32, body UpdateArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateArticleWithBody ¶
func (*Client) Videos ¶
func (c *Client) Videos(ctx context.Context, params *VideosParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // PostAdminUsersCreateWithBody request with any body PostAdminUsersCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostAdminUsersCreate(ctx context.Context, body PostAdminUsersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetArticles request GetArticles(ctx context.Context, params *GetArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateArticleWithBody request with any body CreateArticleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateArticle(ctx context.Context, body CreateArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetLatestArticles request GetLatestArticles(ctx context.Context, params *GetLatestArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUserArticles request GetUserArticles(ctx context.Context, params *GetUserArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUserAllArticles request GetUserAllArticles(ctx context.Context, params *GetUserAllArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUserPublishedArticles request GetUserPublishedArticles(ctx context.Context, params *GetUserPublishedArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUserUnpublishedArticles request GetUserUnpublishedArticles(ctx context.Context, params *GetUserUnpublishedArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetArticleById request GetArticleById(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateArticleWithBody request with any body UpdateArticleWithBody(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateArticle(ctx context.Context, id int32, body UpdateArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // UnpublishArticle request UnpublishArticle(ctx context.Context, id int32, params *UnpublishArticleParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetArticleByPath request GetArticleByPath(ctx context.Context, username string, slug string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCommentsByArticleId request GetCommentsByArticleId(ctx context.Context, params *GetCommentsByArticleIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCommentById request GetCommentById(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiDisplayAds request GetApiDisplayAds(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiDisplayAdsWithBody request with any body PostApiDisplayAdsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostApiDisplayAds(ctx context.Context, body PostApiDisplayAdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiDisplayAdsId request GetApiDisplayAdsId(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error) // PutApiDisplayAdsIdWithBody request with any body PutApiDisplayAdsIdWithBody(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PutApiDisplayAdsId(ctx context.Context, id int32, body PutApiDisplayAdsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PutApiDisplayAdsIdUnpublish request PutApiDisplayAdsIdUnpublish(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error) // GetFollowers request GetFollowers(ctx context.Context, params *GetFollowersParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetFollowedTags request GetFollowedTags(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetOrganization request GetOrganization(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetOrgArticles request GetOrgArticles(ctx context.Context, username string, params *GetOrgArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetOrgUsers request GetOrgUsers(ctx context.Context, username string, params *GetOrgUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiPages request GetApiPages(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiPagesWithBody request with any body PostApiPagesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostApiPages(ctx context.Context, body PostApiPagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteApiPagesId request DeleteApiPagesId(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiPagesId request GetApiPagesId(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error) // PutApiPagesIdWithBody request with any body PutApiPagesIdWithBody(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PutApiPagesId(ctx context.Context, id int32, body PutApiPagesIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetPodcastEpisodes request GetPodcastEpisodes(ctx context.Context, params *GetPodcastEpisodesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProfileImage request GetProfileImage(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiReactions request PostApiReactions(ctx context.Context, params *PostApiReactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PostApiReactionsToggle request PostApiReactionsToggle(ctx context.Context, params *PostApiReactionsToggleParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetReadinglist request GetReadinglist(ctx context.Context, params *GetReadinglistParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTags request GetTags(ctx context.Context, params *GetTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUserMe request GetUserMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUser request GetUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // SuspendUser request SuspendUser(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error) // UnpublishUser request UnpublishUser(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error) // Videos request Videos(ctx context.Context, params *VideosParams, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateArticleWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateArticleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateArticleResponse, error)
CreateArticleWithBodyWithResponse request with arbitrary body returning *CreateArticleResponse
func (*ClientWithResponses) CreateArticleWithResponse ¶
func (c *ClientWithResponses) CreateArticleWithResponse(ctx context.Context, body CreateArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateArticleResponse, error)
func (*ClientWithResponses) DeleteApiPagesIdWithResponse ¶
func (c *ClientWithResponses) DeleteApiPagesIdWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*DeleteApiPagesIdResponse, error)
DeleteApiPagesIdWithResponse request returning *DeleteApiPagesIdResponse
func (*ClientWithResponses) GetApiDisplayAdsIdWithResponse ¶
func (c *ClientWithResponses) GetApiDisplayAdsIdWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetApiDisplayAdsIdResponse, error)
GetApiDisplayAdsIdWithResponse request returning *GetApiDisplayAdsIdResponse
func (*ClientWithResponses) GetApiDisplayAdsWithResponse ¶
func (c *ClientWithResponses) GetApiDisplayAdsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiDisplayAdsResponse, error)
GetApiDisplayAdsWithResponse request returning *GetApiDisplayAdsResponse
func (*ClientWithResponses) GetApiPagesIdWithResponse ¶
func (c *ClientWithResponses) GetApiPagesIdWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetApiPagesIdResponse, error)
GetApiPagesIdWithResponse request returning *GetApiPagesIdResponse
func (*ClientWithResponses) GetApiPagesWithResponse ¶
func (c *ClientWithResponses) GetApiPagesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPagesResponse, error)
GetApiPagesWithResponse request returning *GetApiPagesResponse
func (*ClientWithResponses) GetArticleByIdWithResponse ¶
func (c *ClientWithResponses) GetArticleByIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetArticleByIdResponse, error)
GetArticleByIdWithResponse request returning *GetArticleByIdResponse
func (*ClientWithResponses) GetArticleByPathWithResponse ¶
func (c *ClientWithResponses) GetArticleByPathWithResponse(ctx context.Context, username string, slug string, reqEditors ...RequestEditorFn) (*GetArticleByPathResponse, error)
GetArticleByPathWithResponse request returning *GetArticleByPathResponse
func (*ClientWithResponses) GetArticlesWithResponse ¶
func (c *ClientWithResponses) GetArticlesWithResponse(ctx context.Context, params *GetArticlesParams, reqEditors ...RequestEditorFn) (*GetArticlesResponse, error)
GetArticlesWithResponse request returning *GetArticlesResponse
func (*ClientWithResponses) GetCommentByIdWithResponse ¶
func (c *ClientWithResponses) GetCommentByIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetCommentByIdResponse, error)
GetCommentByIdWithResponse request returning *GetCommentByIdResponse
func (*ClientWithResponses) GetCommentsByArticleIdWithResponse ¶
func (c *ClientWithResponses) GetCommentsByArticleIdWithResponse(ctx context.Context, params *GetCommentsByArticleIdParams, reqEditors ...RequestEditorFn) (*GetCommentsByArticleIdResponse, error)
GetCommentsByArticleIdWithResponse request returning *GetCommentsByArticleIdResponse
func (*ClientWithResponses) GetFollowedTagsWithResponse ¶
func (c *ClientWithResponses) GetFollowedTagsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFollowedTagsResponse, error)
GetFollowedTagsWithResponse request returning *GetFollowedTagsResponse
func (*ClientWithResponses) GetFollowersWithResponse ¶
func (c *ClientWithResponses) GetFollowersWithResponse(ctx context.Context, params *GetFollowersParams, reqEditors ...RequestEditorFn) (*GetFollowersResponse, error)
GetFollowersWithResponse request returning *GetFollowersResponse
func (*ClientWithResponses) GetLatestArticlesWithResponse ¶
func (c *ClientWithResponses) GetLatestArticlesWithResponse(ctx context.Context, params *GetLatestArticlesParams, reqEditors ...RequestEditorFn) (*GetLatestArticlesResponse, error)
GetLatestArticlesWithResponse request returning *GetLatestArticlesResponse
func (*ClientWithResponses) GetOrgArticlesWithResponse ¶
func (c *ClientWithResponses) GetOrgArticlesWithResponse(ctx context.Context, username string, params *GetOrgArticlesParams, reqEditors ...RequestEditorFn) (*GetOrgArticlesResponse, error)
GetOrgArticlesWithResponse request returning *GetOrgArticlesResponse
func (*ClientWithResponses) GetOrgUsersWithResponse ¶
func (c *ClientWithResponses) GetOrgUsersWithResponse(ctx context.Context, username string, params *GetOrgUsersParams, reqEditors ...RequestEditorFn) (*GetOrgUsersResponse, error)
GetOrgUsersWithResponse request returning *GetOrgUsersResponse
func (*ClientWithResponses) GetOrganizationWithResponse ¶
func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)
GetOrganizationWithResponse request returning *GetOrganizationResponse
func (*ClientWithResponses) GetPodcastEpisodesWithResponse ¶
func (c *ClientWithResponses) GetPodcastEpisodesWithResponse(ctx context.Context, params *GetPodcastEpisodesParams, reqEditors ...RequestEditorFn) (*GetPodcastEpisodesResponse, error)
GetPodcastEpisodesWithResponse request returning *GetPodcastEpisodesResponse
func (*ClientWithResponses) GetProfileImageWithResponse ¶
func (c *ClientWithResponses) GetProfileImageWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*GetProfileImageResponse, error)
GetProfileImageWithResponse request returning *GetProfileImageResponse
func (*ClientWithResponses) GetReadinglistWithResponse ¶
func (c *ClientWithResponses) GetReadinglistWithResponse(ctx context.Context, params *GetReadinglistParams, reqEditors ...RequestEditorFn) (*GetReadinglistResponse, error)
GetReadinglistWithResponse request returning *GetReadinglistResponse
func (*ClientWithResponses) GetTagsWithResponse ¶
func (c *ClientWithResponses) GetTagsWithResponse(ctx context.Context, params *GetTagsParams, reqEditors ...RequestEditorFn) (*GetTagsResponse, error)
GetTagsWithResponse request returning *GetTagsResponse
func (*ClientWithResponses) GetUserAllArticlesWithResponse ¶
func (c *ClientWithResponses) GetUserAllArticlesWithResponse(ctx context.Context, params *GetUserAllArticlesParams, reqEditors ...RequestEditorFn) (*GetUserAllArticlesResponse, error)
GetUserAllArticlesWithResponse request returning *GetUserAllArticlesResponse
func (*ClientWithResponses) GetUserArticlesWithResponse ¶
func (c *ClientWithResponses) GetUserArticlesWithResponse(ctx context.Context, params *GetUserArticlesParams, reqEditors ...RequestEditorFn) (*GetUserArticlesResponse, error)
GetUserArticlesWithResponse request returning *GetUserArticlesResponse
func (*ClientWithResponses) GetUserMeWithResponse ¶
func (c *ClientWithResponses) GetUserMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserMeResponse, error)
GetUserMeWithResponse request returning *GetUserMeResponse
func (*ClientWithResponses) GetUserPublishedArticlesWithResponse ¶
func (c *ClientWithResponses) GetUserPublishedArticlesWithResponse(ctx context.Context, params *GetUserPublishedArticlesParams, reqEditors ...RequestEditorFn) (*GetUserPublishedArticlesResponse, error)
GetUserPublishedArticlesWithResponse request returning *GetUserPublishedArticlesResponse
func (*ClientWithResponses) GetUserUnpublishedArticlesWithResponse ¶
func (c *ClientWithResponses) GetUserUnpublishedArticlesWithResponse(ctx context.Context, params *GetUserUnpublishedArticlesParams, reqEditors ...RequestEditorFn) (*GetUserUnpublishedArticlesResponse, error)
GetUserUnpublishedArticlesWithResponse request returning *GetUserUnpublishedArticlesResponse
func (*ClientWithResponses) GetUserWithResponse ¶
func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
GetUserWithResponse request returning *GetUserResponse
func (*ClientWithResponses) PostAdminUsersCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) PostAdminUsersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAdminUsersCreateResponse, error)
PostAdminUsersCreateWithBodyWithResponse request with arbitrary body returning *PostAdminUsersCreateResponse
func (*ClientWithResponses) PostAdminUsersCreateWithResponse ¶
func (c *ClientWithResponses) PostAdminUsersCreateWithResponse(ctx context.Context, body PostAdminUsersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAdminUsersCreateResponse, error)
func (*ClientWithResponses) PostApiDisplayAdsWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiDisplayAdsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiDisplayAdsResponse, error)
PostApiDisplayAdsWithBodyWithResponse request with arbitrary body returning *PostApiDisplayAdsResponse
func (*ClientWithResponses) PostApiDisplayAdsWithResponse ¶
func (c *ClientWithResponses) PostApiDisplayAdsWithResponse(ctx context.Context, body PostApiDisplayAdsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiDisplayAdsResponse, error)
func (*ClientWithResponses) PostApiPagesWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiPagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPagesResponse, error)
PostApiPagesWithBodyWithResponse request with arbitrary body returning *PostApiPagesResponse
func (*ClientWithResponses) PostApiPagesWithResponse ¶
func (c *ClientWithResponses) PostApiPagesWithResponse(ctx context.Context, body PostApiPagesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPagesResponse, error)
func (*ClientWithResponses) PostApiReactionsToggleWithResponse ¶
func (c *ClientWithResponses) PostApiReactionsToggleWithResponse(ctx context.Context, params *PostApiReactionsToggleParams, reqEditors ...RequestEditorFn) (*PostApiReactionsToggleResponse, error)
PostApiReactionsToggleWithResponse request returning *PostApiReactionsToggleResponse
func (*ClientWithResponses) PostApiReactionsWithResponse ¶
func (c *ClientWithResponses) PostApiReactionsWithResponse(ctx context.Context, params *PostApiReactionsParams, reqEditors ...RequestEditorFn) (*PostApiReactionsResponse, error)
PostApiReactionsWithResponse request returning *PostApiReactionsResponse
func (*ClientWithResponses) PutApiDisplayAdsIdUnpublishWithResponse ¶
func (c *ClientWithResponses) PutApiDisplayAdsIdUnpublishWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*PutApiDisplayAdsIdUnpublishResponse, error)
PutApiDisplayAdsIdUnpublishWithResponse request returning *PutApiDisplayAdsIdUnpublishResponse
func (*ClientWithResponses) PutApiDisplayAdsIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PutApiDisplayAdsIdWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiDisplayAdsIdResponse, error)
PutApiDisplayAdsIdWithBodyWithResponse request with arbitrary body returning *PutApiDisplayAdsIdResponse
func (*ClientWithResponses) PutApiDisplayAdsIdWithResponse ¶
func (c *ClientWithResponses) PutApiDisplayAdsIdWithResponse(ctx context.Context, id int32, body PutApiDisplayAdsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiDisplayAdsIdResponse, error)
func (*ClientWithResponses) PutApiPagesIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PutApiPagesIdWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiPagesIdResponse, error)
PutApiPagesIdWithBodyWithResponse request with arbitrary body returning *PutApiPagesIdResponse
func (*ClientWithResponses) PutApiPagesIdWithResponse ¶
func (c *ClientWithResponses) PutApiPagesIdWithResponse(ctx context.Context, id int32, body PutApiPagesIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiPagesIdResponse, error)
func (*ClientWithResponses) SuspendUserWithResponse ¶
func (c *ClientWithResponses) SuspendUserWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*SuspendUserResponse, error)
SuspendUserWithResponse request returning *SuspendUserResponse
func (*ClientWithResponses) UnpublishArticleWithResponse ¶
func (c *ClientWithResponses) UnpublishArticleWithResponse(ctx context.Context, id int32, params *UnpublishArticleParams, reqEditors ...RequestEditorFn) (*UnpublishArticleResponse, error)
UnpublishArticleWithResponse request returning *UnpublishArticleResponse
func (*ClientWithResponses) UnpublishUserWithResponse ¶
func (c *ClientWithResponses) UnpublishUserWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*UnpublishUserResponse, error)
UnpublishUserWithResponse request returning *UnpublishUserResponse
func (*ClientWithResponses) UpdateArticleWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateArticleWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateArticleResponse, error)
UpdateArticleWithBodyWithResponse request with arbitrary body returning *UpdateArticleResponse
func (*ClientWithResponses) UpdateArticleWithResponse ¶
func (c *ClientWithResponses) UpdateArticleWithResponse(ctx context.Context, id int32, body UpdateArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateArticleResponse, error)
func (*ClientWithResponses) VideosWithResponse ¶
func (c *ClientWithResponses) VideosWithResponse(ctx context.Context, params *VideosParams, reqEditors ...RequestEditorFn) (*VideosResponse, error)
VideosWithResponse request returning *VideosResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // PostAdminUsersCreateWithBodyWithResponse request with any body PostAdminUsersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAdminUsersCreateResponse, error) PostAdminUsersCreateWithResponse(ctx context.Context, body PostAdminUsersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAdminUsersCreateResponse, error) // GetArticlesWithResponse request GetArticlesWithResponse(ctx context.Context, params *GetArticlesParams, reqEditors ...RequestEditorFn) (*GetArticlesResponse, error) // CreateArticleWithBodyWithResponse request with any body CreateArticleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateArticleResponse, error) CreateArticleWithResponse(ctx context.Context, body CreateArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateArticleResponse, error) // GetLatestArticlesWithResponse request GetLatestArticlesWithResponse(ctx context.Context, params *GetLatestArticlesParams, reqEditors ...RequestEditorFn) (*GetLatestArticlesResponse, error) // GetUserArticlesWithResponse request GetUserArticlesWithResponse(ctx context.Context, params *GetUserArticlesParams, reqEditors ...RequestEditorFn) (*GetUserArticlesResponse, error) // GetUserAllArticlesWithResponse request GetUserAllArticlesWithResponse(ctx context.Context, params *GetUserAllArticlesParams, reqEditors ...RequestEditorFn) (*GetUserAllArticlesResponse, error) // GetUserPublishedArticlesWithResponse request GetUserPublishedArticlesWithResponse(ctx context.Context, params *GetUserPublishedArticlesParams, reqEditors ...RequestEditorFn) (*GetUserPublishedArticlesResponse, error) // GetUserUnpublishedArticlesWithResponse request GetUserUnpublishedArticlesWithResponse(ctx context.Context, params *GetUserUnpublishedArticlesParams, reqEditors ...RequestEditorFn) (*GetUserUnpublishedArticlesResponse, error) // GetArticleByIdWithResponse request GetArticleByIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetArticleByIdResponse, error) // UpdateArticleWithBodyWithResponse request with any body UpdateArticleWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateArticleResponse, error) UpdateArticleWithResponse(ctx context.Context, id int32, body UpdateArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateArticleResponse, error) // UnpublishArticleWithResponse request UnpublishArticleWithResponse(ctx context.Context, id int32, params *UnpublishArticleParams, reqEditors ...RequestEditorFn) (*UnpublishArticleResponse, error) // GetArticleByPathWithResponse request GetArticleByPathWithResponse(ctx context.Context, username string, slug string, reqEditors ...RequestEditorFn) (*GetArticleByPathResponse, error) // GetCommentsByArticleIdWithResponse request GetCommentsByArticleIdWithResponse(ctx context.Context, params *GetCommentsByArticleIdParams, reqEditors ...RequestEditorFn) (*GetCommentsByArticleIdResponse, error) // GetCommentByIdWithResponse request GetCommentByIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetCommentByIdResponse, error) // GetApiDisplayAdsWithResponse request GetApiDisplayAdsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiDisplayAdsResponse, error) // PostApiDisplayAdsWithBodyWithResponse request with any body PostApiDisplayAdsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiDisplayAdsResponse, error) PostApiDisplayAdsWithResponse(ctx context.Context, body PostApiDisplayAdsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiDisplayAdsResponse, error) // GetApiDisplayAdsIdWithResponse request GetApiDisplayAdsIdWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetApiDisplayAdsIdResponse, error) // PutApiDisplayAdsIdWithBodyWithResponse request with any body PutApiDisplayAdsIdWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiDisplayAdsIdResponse, error) PutApiDisplayAdsIdWithResponse(ctx context.Context, id int32, body PutApiDisplayAdsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiDisplayAdsIdResponse, error) // PutApiDisplayAdsIdUnpublishWithResponse request PutApiDisplayAdsIdUnpublishWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*PutApiDisplayAdsIdUnpublishResponse, error) // GetFollowersWithResponse request GetFollowersWithResponse(ctx context.Context, params *GetFollowersParams, reqEditors ...RequestEditorFn) (*GetFollowersResponse, error) // GetFollowedTagsWithResponse request GetFollowedTagsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFollowedTagsResponse, error) // GetOrganizationWithResponse request GetOrganizationWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error) // GetOrgArticlesWithResponse request GetOrgArticlesWithResponse(ctx context.Context, username string, params *GetOrgArticlesParams, reqEditors ...RequestEditorFn) (*GetOrgArticlesResponse, error) // GetOrgUsersWithResponse request GetOrgUsersWithResponse(ctx context.Context, username string, params *GetOrgUsersParams, reqEditors ...RequestEditorFn) (*GetOrgUsersResponse, error) // GetApiPagesWithResponse request GetApiPagesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPagesResponse, error) // PostApiPagesWithBodyWithResponse request with any body PostApiPagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiPagesResponse, error) PostApiPagesWithResponse(ctx context.Context, body PostApiPagesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiPagesResponse, error) // DeleteApiPagesIdWithResponse request DeleteApiPagesIdWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*DeleteApiPagesIdResponse, error) // GetApiPagesIdWithResponse request GetApiPagesIdWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetApiPagesIdResponse, error) // PutApiPagesIdWithBodyWithResponse request with any body PutApiPagesIdWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutApiPagesIdResponse, error) PutApiPagesIdWithResponse(ctx context.Context, id int32, body PutApiPagesIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutApiPagesIdResponse, error) // GetPodcastEpisodesWithResponse request GetPodcastEpisodesWithResponse(ctx context.Context, params *GetPodcastEpisodesParams, reqEditors ...RequestEditorFn) (*GetPodcastEpisodesResponse, error) // GetProfileImageWithResponse request GetProfileImageWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*GetProfileImageResponse, error) // PostApiReactionsWithResponse request PostApiReactionsWithResponse(ctx context.Context, params *PostApiReactionsParams, reqEditors ...RequestEditorFn) (*PostApiReactionsResponse, error) // PostApiReactionsToggleWithResponse request PostApiReactionsToggleWithResponse(ctx context.Context, params *PostApiReactionsToggleParams, reqEditors ...RequestEditorFn) (*PostApiReactionsToggleResponse, error) // GetReadinglistWithResponse request GetReadinglistWithResponse(ctx context.Context, params *GetReadinglistParams, reqEditors ...RequestEditorFn) (*GetReadinglistResponse, error) // GetTagsWithResponse request GetTagsWithResponse(ctx context.Context, params *GetTagsParams, reqEditors ...RequestEditorFn) (*GetTagsResponse, error) // GetUserMeWithResponse request GetUserMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserMeResponse, error) // GetUserWithResponse request GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error) // SuspendUserWithResponse request SuspendUserWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*SuspendUserResponse, error) // UnpublishUserWithResponse request UnpublishUserWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*UnpublishUserResponse, error) // VideosWithResponse request VideosWithResponse(ctx context.Context, params *VideosParams, reqEditors ...RequestEditorFn) (*VideosResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Comment ¶
type Comment struct { CreatedAt *time.Time `json:"created_at,omitempty"` IdCode *string `json:"id_code,omitempty"` // ImageUrl Podcast image url ImageUrl *string `json:"image_url,omitempty"` TypeOf *string `json:"type_of,omitempty"` }
Comment A Comment on an Article or Podcast Episode
type CreateArticleJSONRequestBody ¶
type CreateArticleJSONRequestBody = Article
CreateArticleJSONRequestBody defines body for CreateArticle for application/json ContentType.
type CreateArticleResponse ¶
func ParseCreateArticleResponse ¶
func ParseCreateArticleResponse(rsp *http.Response) (*CreateArticleResponse, error)
ParseCreateArticleResponse parses an HTTP response from a CreateArticleWithResponse call
func (CreateArticleResponse) Status ¶
func (r CreateArticleResponse) Status() string
Status returns HTTPResponse.Status
func (CreateArticleResponse) StatusCode ¶
func (r CreateArticleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiPagesIdResponse ¶
func ParseDeleteApiPagesIdResponse ¶
func ParseDeleteApiPagesIdResponse(rsp *http.Response) (*DeleteApiPagesIdResponse, error)
ParseDeleteApiPagesIdResponse parses an HTTP response from a DeleteApiPagesIdWithResponse call
func (DeleteApiPagesIdResponse) Status ¶
func (r DeleteApiPagesIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiPagesIdResponse) StatusCode ¶
func (r DeleteApiPagesIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DisplayAd ¶
type DisplayAd struct { // Approved Ad must be both published and approved to be in rotation Approved *bool `json:"approved,omitempty"` // ArticleExcludeIds Articles this ad should *not* appear on (blank means no articles are disallowed, and this ad can appear next to any/all articles). Comma-separated list of integer Article IDs ArticleExcludeIds *string `json:"article_exclude_ids"` // AudienceSegmentType Specifies an group of users to show this ad to (only works with logged-in users) AudienceSegmentType *DisplayAdAudienceSegmentType `json:"audience_segment_type,omitempty"` // BodyMarkdown The text (in markdown) of the ad (required) BodyMarkdown string `json:"body_markdown"` // CreatorId Identifies the user who created the ad. CreatorId *int `json:"creator_id"` // DisplayTo Potentially limits visitors to whom the ad is visible DisplayTo *DisplayAdDisplayTo `json:"display_to,omitempty"` // Id The ID of the Display Ad Id *int `json:"id,omitempty"` // Name For internal use, helps distinguish ads from one another Name string `json:"name"` // OrganizationId Identifies the organization to which the ad belongs OrganizationId *int `json:"organization_id"` // PlacementArea Identifies which area of site layout the ad can appear in PlacementArea DisplayAdPlacementArea `json:"placement_area"` // Published Ad must be both published and approved to be in rotation Published *bool `json:"published,omitempty"` // TagList Tags on which this ad can be displayed (blank is all/any tags) TagList *string `json:"tag_list,omitempty"` // TypeOf Types of the billboards: // in_house (created by admins), // community (created by an entity, appears on entity's content), // external ( created by an entity, or a non-entity, can appear everywhere) TypeOf *DisplayAdTypeOf `json:"type_of,omitempty"` }
DisplayAd A Display Ad, aka Billboard, aka Widget
type DisplayAdAudienceSegmentType ¶
type DisplayAdAudienceSegmentType string
DisplayAdAudienceSegmentType Specifies an group of users to show this ad to (only works with logged-in users)
const ( DarkTheme DisplayAdAudienceSegmentType = "dark_theme" Experience1 DisplayAdAudienceSegmentType = "experience1" Experience2 DisplayAdAudienceSegmentType = "experience2" Experience3 DisplayAdAudienceSegmentType = "experience3" Experience4 DisplayAdAudienceSegmentType = "experience4" Experience5 DisplayAdAudienceSegmentType = "experience5" LightTheme DisplayAdAudienceSegmentType = "light_theme" NoExperience DisplayAdAudienceSegmentType = "no_experience" NoPostsYet DisplayAdAudienceSegmentType = "no_posts_yet" Posted DisplayAdAudienceSegmentType = "posted" Testing DisplayAdAudienceSegmentType = "testing" Trusted DisplayAdAudienceSegmentType = "trusted" )
Defines values for DisplayAdAudienceSegmentType.
type DisplayAdDisplayTo ¶
type DisplayAdDisplayTo string
DisplayAdDisplayTo Potentially limits visitors to whom the ad is visible
const ( DisplayAdDisplayToAll DisplayAdDisplayTo = "all" DisplayAdDisplayToLoggedIn DisplayAdDisplayTo = "logged_in" DisplayAdDisplayToLoggedOut DisplayAdDisplayTo = "logged_out" )
Defines values for DisplayAdDisplayTo.
type DisplayAdPlacementArea ¶
type DisplayAdPlacementArea string
DisplayAdPlacementArea Identifies which area of site layout the ad can appear in
const ( FeedFirst DisplayAdPlacementArea = "feed_first" FeedSecond DisplayAdPlacementArea = "feed_second" FeedThird DisplayAdPlacementArea = "feed_third" PostComments DisplayAdPlacementArea = "post_comments" PostSidebar DisplayAdPlacementArea = "post_sidebar" SidebarLeft DisplayAdPlacementArea = "sidebar_left" SidebarLeft2 DisplayAdPlacementArea = "sidebar_left_2" SidebarRight DisplayAdPlacementArea = "sidebar_right" )
Defines values for DisplayAdPlacementArea.
type DisplayAdTypeOf ¶
type DisplayAdTypeOf string
DisplayAdTypeOf Types of the billboards: in_house (created by admins), community (created by an entity, appears on entity's content), external ( created by an entity, or a non-entity, can appear everywhere)
const ( Community DisplayAdTypeOf = "community" External DisplayAdTypeOf = "external" InHouse DisplayAdTypeOf = "in_house" )
Defines values for DisplayAdTypeOf.
type FollowedTag ¶
type FollowedTag struct { // Id Tag id Id int64 `json:"id"` Name string `json:"name"` Points float32 `json:"points"` }
FollowedTag Representation of a followed tag
type GetApiDisplayAdsIdResponse ¶
func ParseGetApiDisplayAdsIdResponse ¶
func ParseGetApiDisplayAdsIdResponse(rsp *http.Response) (*GetApiDisplayAdsIdResponse, error)
ParseGetApiDisplayAdsIdResponse parses an HTTP response from a GetApiDisplayAdsIdWithResponse call
func (GetApiDisplayAdsIdResponse) Status ¶
func (r GetApiDisplayAdsIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiDisplayAdsIdResponse) StatusCode ¶
func (r GetApiDisplayAdsIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiDisplayAdsResponse ¶
type GetApiDisplayAdsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]DisplayAd }
func ParseGetApiDisplayAdsResponse ¶
func ParseGetApiDisplayAdsResponse(rsp *http.Response) (*GetApiDisplayAdsResponse, error)
ParseGetApiDisplayAdsResponse parses an HTTP response from a GetApiDisplayAdsWithResponse call
func (GetApiDisplayAdsResponse) Status ¶
func (r GetApiDisplayAdsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiDisplayAdsResponse) StatusCode ¶
func (r GetApiDisplayAdsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiPagesIdResponse ¶
func ParseGetApiPagesIdResponse ¶
func ParseGetApiPagesIdResponse(rsp *http.Response) (*GetApiPagesIdResponse, error)
ParseGetApiPagesIdResponse parses an HTTP response from a GetApiPagesIdWithResponse call
func (GetApiPagesIdResponse) Status ¶
func (r GetApiPagesIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiPagesIdResponse) StatusCode ¶
func (r GetApiPagesIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiPagesResponse ¶
func ParseGetApiPagesResponse ¶
func ParseGetApiPagesResponse(rsp *http.Response) (*GetApiPagesResponse, error)
ParseGetApiPagesResponse parses an HTTP response from a GetApiPagesWithResponse call
func (GetApiPagesResponse) Status ¶
func (r GetApiPagesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiPagesResponse) StatusCode ¶
func (r GetApiPagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetArticleByIdResponse ¶
type GetArticleByIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetArticleByIdResponse ¶
func ParseGetArticleByIdResponse(rsp *http.Response) (*GetArticleByIdResponse, error)
ParseGetArticleByIdResponse parses an HTTP response from a GetArticleByIdWithResponse call
func (GetArticleByIdResponse) Status ¶
func (r GetArticleByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetArticleByIdResponse) StatusCode ¶
func (r GetArticleByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetArticleByPathResponse ¶
type GetArticleByPathResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetArticleByPathResponse ¶
func ParseGetArticleByPathResponse(rsp *http.Response) (*GetArticleByPathResponse, error)
ParseGetArticleByPathResponse parses an HTTP response from a GetArticleByPathWithResponse call
func (GetArticleByPathResponse) Status ¶
func (r GetArticleByPathResponse) Status() string
Status returns HTTPResponse.Status
func (GetArticleByPathResponse) StatusCode ¶
func (r GetArticleByPathResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetArticlesParams ¶
type GetArticlesParams struct { // Page Pagination page Page *PageParam `form:"page,omitempty" json:"page,omitempty"` // PerPage Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable. PerPage *PerPageParam30to1000 `form:"per_page,omitempty" json:"per_page,omitempty"` // Tag Using this parameter will retrieve articles that contain the requested tag. Articles // will be ordered by descending popularity.This parameter can be used in conjuction with `top`. Tag *string `form:"tag,omitempty" json:"tag,omitempty"` // Tags Using this parameter will retrieve articles with any of the comma-separated tags. // Articles will be ordered by descending popularity. Tags *string `form:"tags,omitempty" json:"tags,omitempty"` // TagsExclude Using this parameter will retrieve articles that do _not_ contain _any_ // of comma-separated tags. Articles will be ordered by descending popularity. TagsExclude *string `form:"tags_exclude,omitempty" json:"tags_exclude,omitempty"` // Username Using this parameter will retrieve articles belonging // to a User or Organization ordered by descending publication date. // If `state=all` the number of items returned will be `1000` instead of the default `30`. // This parameter can be used in conjuction with `state`. Username *string `form:"username,omitempty" json:"username,omitempty"` // State Using this parameter will allow the client to check which articles are fresh or rising. // If `state=fresh` the server will return fresh articles. // If `state=rising` the server will return rising articles. // This param can be used in conjuction with `username`, only if set to `all`. State *GetArticlesParamsState `form:"state,omitempty" json:"state,omitempty"` // Top Using this parameter will allow the client to return the most popular articles // in the last `N` days. // `top` indicates the number of days since publication of the articles returned. // This param can be used in conjuction with `tag`. Top *int32 `form:"top,omitempty" json:"top,omitempty"` // CollectionId Adding this will allow the client to return the list of articles // belonging to the requested collection, ordered by ascending publication date. CollectionId *int32 `form:"collection_id,omitempty" json:"collection_id,omitempty"` }
GetArticlesParams defines parameters for GetArticles.
type GetArticlesParamsState ¶
type GetArticlesParamsState string
GetArticlesParamsState defines parameters for GetArticles.
const ( GetArticlesParamsStateAll GetArticlesParamsState = "all" GetArticlesParamsStateFresh GetArticlesParamsState = "fresh" GetArticlesParamsStateRising GetArticlesParamsState = "rising" )
Defines values for GetArticlesParamsState.
type GetArticlesResponse ¶
type GetArticlesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]ArticleIndex }
func ParseGetArticlesResponse ¶
func ParseGetArticlesResponse(rsp *http.Response) (*GetArticlesResponse, error)
ParseGetArticlesResponse parses an HTTP response from a GetArticlesWithResponse call
func (GetArticlesResponse) Status ¶
func (r GetArticlesResponse) Status() string
Status returns HTTPResponse.Status
func (GetArticlesResponse) StatusCode ¶
func (r GetArticlesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCommentByIdResponse ¶
func ParseGetCommentByIdResponse ¶
func ParseGetCommentByIdResponse(rsp *http.Response) (*GetCommentByIdResponse, error)
ParseGetCommentByIdResponse parses an HTTP response from a GetCommentByIdWithResponse call
func (GetCommentByIdResponse) Status ¶
func (r GetCommentByIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetCommentByIdResponse) StatusCode ¶
func (r GetCommentByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCommentsByArticleIdParams ¶
type GetCommentsByArticleIdParams struct { // AId Article identifier. AId *string `form:"a_id,omitempty" json:"a_id,omitempty"` // PId Podcast Episode identifier. PId *string `form:"p_id,omitempty" json:"p_id,omitempty"` }
GetCommentsByArticleIdParams defines parameters for GetCommentsByArticleId.
type GetCommentsByArticleIdResponse ¶
type GetCommentsByArticleIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]Comment }
func ParseGetCommentsByArticleIdResponse ¶
func ParseGetCommentsByArticleIdResponse(rsp *http.Response) (*GetCommentsByArticleIdResponse, error)
ParseGetCommentsByArticleIdResponse parses an HTTP response from a GetCommentsByArticleIdWithResponse call
func (GetCommentsByArticleIdResponse) Status ¶
func (r GetCommentsByArticleIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetCommentsByArticleIdResponse) StatusCode ¶
func (r GetCommentsByArticleIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFollowedTagsResponse ¶
type GetFollowedTagsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]FollowedTag }
func ParseGetFollowedTagsResponse ¶
func ParseGetFollowedTagsResponse(rsp *http.Response) (*GetFollowedTagsResponse, error)
ParseGetFollowedTagsResponse parses an HTTP response from a GetFollowedTagsWithResponse call
func (GetFollowedTagsResponse) Status ¶
func (r GetFollowedTagsResponse) Status() string
Status returns HTTPResponse.Status
func (GetFollowedTagsResponse) StatusCode ¶
func (r GetFollowedTagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFollowersParams ¶
type GetFollowersParams struct { // Page Pagination page Page *PageParam `form:"page,omitempty" json:"page,omitempty"` // PerPage Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable. PerPage *PerPageParam30to1000 `form:"per_page,omitempty" json:"per_page,omitempty"` // Sort Default is 'created_at'. Specifies the sort order for the created_at param of the follow // relationship. To sort by newest followers first (descending order) specify // ?sort=-created_at. Sort *string `form:"sort,omitempty" json:"sort,omitempty"` }
GetFollowersParams defines parameters for GetFollowers.
type GetFollowersResponse ¶
type GetFollowersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]struct { Id *int32 `json:"id,omitempty"` // Name The follower's name Name *string `json:"name,omitempty"` // Path A path to the follower's profile Path *string `json:"path,omitempty"` // ProfileImage Profile image (640x640) ProfileImage *string `json:"profile_image,omitempty"` // TypeOf user_follower by default TypeOf *string `json:"type_of,omitempty"` // UserId The follower's user id UserId *int32 `json:"user_id,omitempty"` } }
func ParseGetFollowersResponse ¶
func ParseGetFollowersResponse(rsp *http.Response) (*GetFollowersResponse, error)
ParseGetFollowersResponse parses an HTTP response from a GetFollowersWithResponse call
func (GetFollowersResponse) Status ¶
func (r GetFollowersResponse) Status() string
Status returns HTTPResponse.Status
func (GetFollowersResponse) StatusCode ¶
func (r GetFollowersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLatestArticlesParams ¶
type GetLatestArticlesParams struct { // Page Pagination page Page *PageParam `form:"page,omitempty" json:"page,omitempty"` // PerPage Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable. PerPage *PerPageParam30to1000 `form:"per_page,omitempty" json:"per_page,omitempty"` }
GetLatestArticlesParams defines parameters for GetLatestArticles.
type GetLatestArticlesResponse ¶
type GetLatestArticlesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]ArticleIndex }
func ParseGetLatestArticlesResponse ¶
func ParseGetLatestArticlesResponse(rsp *http.Response) (*GetLatestArticlesResponse, error)
ParseGetLatestArticlesResponse parses an HTTP response from a GetLatestArticlesWithResponse call
func (GetLatestArticlesResponse) Status ¶
func (r GetLatestArticlesResponse) Status() string
Status returns HTTPResponse.Status
func (GetLatestArticlesResponse) StatusCode ¶
func (r GetLatestArticlesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrgArticlesParams ¶
type GetOrgArticlesParams struct { // Page Pagination page Page *PageParam `form:"page,omitempty" json:"page,omitempty"` // PerPage Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable. PerPage *PerPageParam30to1000 `form:"per_page,omitempty" json:"per_page,omitempty"` }
GetOrgArticlesParams defines parameters for GetOrgArticles.
type GetOrgArticlesResponse ¶
type GetOrgArticlesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]ArticleIndex }
func ParseGetOrgArticlesResponse ¶
func ParseGetOrgArticlesResponse(rsp *http.Response) (*GetOrgArticlesResponse, error)
ParseGetOrgArticlesResponse parses an HTTP response from a GetOrgArticlesWithResponse call
func (GetOrgArticlesResponse) Status ¶
func (r GetOrgArticlesResponse) Status() string
Status returns HTTPResponse.Status
func (GetOrgArticlesResponse) StatusCode ¶
func (r GetOrgArticlesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrgUsersParams ¶
type GetOrgUsersParams struct { // Page Pagination page Page *PageParam `form:"page,omitempty" json:"page,omitempty"` // PerPage Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable. PerPage *PerPageParam30to1000 `form:"per_page,omitempty" json:"per_page,omitempty"` }
GetOrgUsersParams defines parameters for GetOrgUsers.
type GetOrgUsersResponse ¶
func ParseGetOrgUsersResponse ¶
func ParseGetOrgUsersResponse(rsp *http.Response) (*GetOrgUsersResponse, error)
ParseGetOrgUsersResponse parses an HTTP response from a GetOrgUsersWithResponse call
func (GetOrgUsersResponse) Status ¶
func (r GetOrgUsersResponse) Status() string
Status returns HTTPResponse.Status
func (GetOrgUsersResponse) StatusCode ¶
func (r GetOrgUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrganizationResponse ¶
type GetOrganizationResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetOrganizationResponse ¶
func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error)
ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call
func (GetOrganizationResponse) Status ¶
func (r GetOrganizationResponse) Status() string
Status returns HTTPResponse.Status
func (GetOrganizationResponse) StatusCode ¶
func (r GetOrganizationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPodcastEpisodesParams ¶
type GetPodcastEpisodesParams struct { // Page Pagination page Page *PageParam `form:"page,omitempty" json:"page,omitempty"` // PerPage Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable. PerPage *PerPageParam30to1000 `form:"per_page,omitempty" json:"per_page,omitempty"` // Username Using this parameter will retrieve episodes belonging to a specific podcast. Username *string `form:"username,omitempty" json:"username,omitempty"` }
GetPodcastEpisodesParams defines parameters for GetPodcastEpisodes.
type GetPodcastEpisodesResponse ¶
type GetPodcastEpisodesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]PodcastEpisodeIndex }
func ParseGetPodcastEpisodesResponse ¶
func ParseGetPodcastEpisodesResponse(rsp *http.Response) (*GetPodcastEpisodesResponse, error)
ParseGetPodcastEpisodesResponse parses an HTTP response from a GetPodcastEpisodesWithResponse call
func (GetPodcastEpisodesResponse) Status ¶
func (r GetPodcastEpisodesResponse) Status() string
Status returns HTTPResponse.Status
func (GetPodcastEpisodesResponse) StatusCode ¶
func (r GetPodcastEpisodesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProfileImageResponse ¶
type GetProfileImageResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetProfileImageResponse ¶
func ParseGetProfileImageResponse(rsp *http.Response) (*GetProfileImageResponse, error)
ParseGetProfileImageResponse parses an HTTP response from a GetProfileImageWithResponse call
func (GetProfileImageResponse) Status ¶
func (r GetProfileImageResponse) Status() string
Status returns HTTPResponse.Status
func (GetProfileImageResponse) StatusCode ¶
func (r GetProfileImageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetReadinglistParams ¶
type GetReadinglistParams struct { // Page Pagination page Page *PageParam `form:"page,omitempty" json:"page,omitempty"` // PerPage Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable. PerPage *PerPageParam30to1000 `form:"per_page,omitempty" json:"per_page,omitempty"` }
GetReadinglistParams defines parameters for GetReadinglist.
type GetReadinglistResponse ¶
type GetReadinglistResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]ArticleIndex }
func ParseGetReadinglistResponse ¶
func ParseGetReadinglistResponse(rsp *http.Response) (*GetReadinglistResponse, error)
ParseGetReadinglistResponse parses an HTTP response from a GetReadinglistWithResponse call
func (GetReadinglistResponse) Status ¶
func (r GetReadinglistResponse) Status() string
Status returns HTTPResponse.Status
func (GetReadinglistResponse) StatusCode ¶
func (r GetReadinglistResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTagsParams ¶
type GetTagsParams struct { // Page Pagination page Page *PageParam `form:"page,omitempty" json:"page,omitempty"` // PerPage Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable. PerPage *PerPageParam10to1000 `form:"per_page,omitempty" json:"per_page,omitempty"` }
GetTagsParams defines parameters for GetTags.
type GetTagsResponse ¶
func ParseGetTagsResponse ¶
func ParseGetTagsResponse(rsp *http.Response) (*GetTagsResponse, error)
ParseGetTagsResponse parses an HTTP response from a GetTagsWithResponse call
func (GetTagsResponse) Status ¶
func (r GetTagsResponse) Status() string
Status returns HTTPResponse.Status
func (GetTagsResponse) StatusCode ¶
func (r GetTagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserAllArticlesParams ¶
type GetUserAllArticlesParams struct { // Page Pagination page Page *PageParam `form:"page,omitempty" json:"page,omitempty"` // PerPage Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable. PerPage *PerPageParam30to1000 `form:"per_page,omitempty" json:"per_page,omitempty"` }
GetUserAllArticlesParams defines parameters for GetUserAllArticles.
type GetUserAllArticlesResponse ¶
type GetUserAllArticlesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]ArticleIndex }
func ParseGetUserAllArticlesResponse ¶
func ParseGetUserAllArticlesResponse(rsp *http.Response) (*GetUserAllArticlesResponse, error)
ParseGetUserAllArticlesResponse parses an HTTP response from a GetUserAllArticlesWithResponse call
func (GetUserAllArticlesResponse) Status ¶
func (r GetUserAllArticlesResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserAllArticlesResponse) StatusCode ¶
func (r GetUserAllArticlesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserArticlesParams ¶
type GetUserArticlesParams struct { // Page Pagination page Page *PageParam `form:"page,omitempty" json:"page,omitempty"` // PerPage Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable. PerPage *PerPageParam30to1000 `form:"per_page,omitempty" json:"per_page,omitempty"` }
GetUserArticlesParams defines parameters for GetUserArticles.
type GetUserArticlesResponse ¶
type GetUserArticlesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]ArticleIndex }
func ParseGetUserArticlesResponse ¶
func ParseGetUserArticlesResponse(rsp *http.Response) (*GetUserArticlesResponse, error)
ParseGetUserArticlesResponse parses an HTTP response from a GetUserArticlesWithResponse call
func (GetUserArticlesResponse) Status ¶
func (r GetUserArticlesResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserArticlesResponse) StatusCode ¶
func (r GetUserArticlesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserMeResponse ¶
type GetUserMeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetUserMeResponse ¶
func ParseGetUserMeResponse(rsp *http.Response) (*GetUserMeResponse, error)
ParseGetUserMeResponse parses an HTTP response from a GetUserMeWithResponse call
func (GetUserMeResponse) Status ¶
func (r GetUserMeResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserMeResponse) StatusCode ¶
func (r GetUserMeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserPublishedArticlesParams ¶
type GetUserPublishedArticlesParams struct { // Page Pagination page Page *PageParam `form:"page,omitempty" json:"page,omitempty"` // PerPage Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable. PerPage *PerPageParam30to1000 `form:"per_page,omitempty" json:"per_page,omitempty"` }
GetUserPublishedArticlesParams defines parameters for GetUserPublishedArticles.
type GetUserPublishedArticlesResponse ¶
type GetUserPublishedArticlesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]ArticleIndex }
func ParseGetUserPublishedArticlesResponse ¶
func ParseGetUserPublishedArticlesResponse(rsp *http.Response) (*GetUserPublishedArticlesResponse, error)
ParseGetUserPublishedArticlesResponse parses an HTTP response from a GetUserPublishedArticlesWithResponse call
func (GetUserPublishedArticlesResponse) Status ¶
func (r GetUserPublishedArticlesResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserPublishedArticlesResponse) StatusCode ¶
func (r GetUserPublishedArticlesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserResponse ¶
type GetUserResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetUserResponse ¶
func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)
ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call
func (GetUserResponse) Status ¶
func (r GetUserResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserResponse) StatusCode ¶
func (r GetUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserUnpublishedArticlesParams ¶
type GetUserUnpublishedArticlesParams struct { // Page Pagination page Page *PageParam `form:"page,omitempty" json:"page,omitempty"` // PerPage Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable. PerPage *PerPageParam30to1000 `form:"per_page,omitempty" json:"per_page,omitempty"` }
GetUserUnpublishedArticlesParams defines parameters for GetUserUnpublishedArticles.
type GetUserUnpublishedArticlesResponse ¶
type GetUserUnpublishedArticlesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]ArticleIndex }
func ParseGetUserUnpublishedArticlesResponse ¶
func ParseGetUserUnpublishedArticlesResponse(rsp *http.Response) (*GetUserUnpublishedArticlesResponse, error)
ParseGetUserUnpublishedArticlesResponse parses an HTTP response from a GetUserUnpublishedArticlesWithResponse call
func (GetUserUnpublishedArticlesResponse) Status ¶
func (r GetUserUnpublishedArticlesResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserUnpublishedArticlesResponse) StatusCode ¶
func (r GetUserUnpublishedArticlesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Organization ¶
type Organization struct { GithubUsername *string `json:"github_username,omitempty"` JoinedAt *string `json:"joined_at,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Story *string `json:"story"` Summary *string `json:"summary,omitempty"` TagLine *string `json:"tag_line"` TechStack *string `json:"tech_stack,omitempty"` TwitterUsername *string `json:"twitter_username,omitempty"` TypeOf *string `json:"type_of,omitempty"` Url *string `json:"url,omitempty"` Username *string `json:"username,omitempty"` }
Organization Representation of an Organization
type Page ¶
type Page struct { // BodyJson For JSON pages, the JSON body BodyJson *string `json:"body_json"` // BodyMarkdown The text (in markdown) of the ad (required) BodyMarkdown *string `json:"body_markdown"` // Description For internal use, helps similar pages from one another Description string `json:"description"` // IsTopLevelPath If true, the page is available at '/{slug}' instead of '/page/{slug}', use with caution IsTopLevelPath *bool `json:"is_top_level_path,omitempty"` // Slug Used to link to this page in URLs, must be unique and URL-safe Slug string `json:"slug"` SocialImage *map[string]interface{} `json:"social_image"` // Template Controls what kind of layout the page is rendered in Template PageTemplate `json:"template"` // Title Title of the page Title string `json:"title"` }
Page Representation of a page object
type PageTemplate ¶
type PageTemplate string
PageTemplate Controls what kind of layout the page is rendered in
const ( PageTemplateContained PageTemplate = "contained" PageTemplateFullWithinLayout PageTemplate = "full_within_layout" PageTemplateJson PageTemplate = "json" )
Defines values for PageTemplate.
type PerPageParam10to1000 ¶
type PerPageParam10to1000 = int32
PerPageParam10to1000 defines model for perPageParam10to1000.
type PerPageParam24to1000 ¶
type PerPageParam24to1000 = int32
PerPageParam24to1000 defines model for perPageParam24to1000.
type PerPageParam30to1000 ¶
type PerPageParam30to1000 = int32
PerPageParam30to1000 defines model for perPageParam30to1000.
type PodcastEpisodeIndex ¶
type PodcastEpisodeIndex struct { ClassName string `json:"class_name"` Id int32 `json:"id"` // ImageUrl Podcast episode image url or podcast image url ImageUrl string `json:"image_url"` Path string `json:"path"` // Podcast The podcast that the resource belongs to Podcast SharedPodcast `json:"podcast"` Title string `json:"title"` TypeOf string `json:"type_of"` }
PodcastEpisodeIndex Representation of a podcast episode returned in a list
type PostAdminUsersCreateJSONRequestBody ¶
type PostAdminUsersCreateJSONRequestBody = UserInviteParam
PostAdminUsersCreateJSONRequestBody defines body for PostAdminUsersCreate for application/json ContentType.
type PostAdminUsersCreateResponse ¶
func ParsePostAdminUsersCreateResponse ¶
func ParsePostAdminUsersCreateResponse(rsp *http.Response) (*PostAdminUsersCreateResponse, error)
ParsePostAdminUsersCreateResponse parses an HTTP response from a PostAdminUsersCreateWithResponse call
func (PostAdminUsersCreateResponse) Status ¶
func (r PostAdminUsersCreateResponse) Status() string
Status returns HTTPResponse.Status
func (PostAdminUsersCreateResponse) StatusCode ¶
func (r PostAdminUsersCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiDisplayAdsJSONBody ¶
type PostApiDisplayAdsJSONBody = map[string]interface{}
PostApiDisplayAdsJSONBody defines parameters for PostApiDisplayAds.
type PostApiDisplayAdsJSONRequestBody ¶
type PostApiDisplayAdsJSONRequestBody = PostApiDisplayAdsJSONBody
PostApiDisplayAdsJSONRequestBody defines body for PostApiDisplayAds for application/json ContentType.
type PostApiDisplayAdsResponse ¶
type PostApiDisplayAdsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParsePostApiDisplayAdsResponse ¶
func ParsePostApiDisplayAdsResponse(rsp *http.Response) (*PostApiDisplayAdsResponse, error)
ParsePostApiDisplayAdsResponse parses an HTTP response from a PostApiDisplayAdsWithResponse call
func (PostApiDisplayAdsResponse) Status ¶
func (r PostApiDisplayAdsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiDisplayAdsResponse) StatusCode ¶
func (r PostApiDisplayAdsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiPagesJSONBody ¶
type PostApiPagesJSONBody struct { // BodyJson For JSON pages, the JSON body BodyJson *string `json:"body_json,omitempty"` // BodyMarkdown The text (in markdown) of the ad (required) BodyMarkdown *string `json:"body_markdown,omitempty"` // Description For internal use, helps similar pages from one another Description *string `json:"description,omitempty"` // IsTopLevelPath If true, the page is available at '/{slug}' instead of '/page/{slug}', use with caution IsTopLevelPath *bool `json:"is_top_level_path,omitempty"` // Slug Used to link to this page in URLs, must be unique and URL-safe Slug *string `json:"slug,omitempty"` // Template Controls what kind of layout the page is rendered in Template *PostApiPagesJSONBodyTemplate `json:"template,omitempty"` // Title Title of the page Title *string `json:"title,omitempty"` }
PostApiPagesJSONBody defines parameters for PostApiPages.
type PostApiPagesJSONBodyTemplate ¶
type PostApiPagesJSONBodyTemplate string
PostApiPagesJSONBodyTemplate defines parameters for PostApiPages.
const ( PostApiPagesJSONBodyTemplateContained PostApiPagesJSONBodyTemplate = "contained" PostApiPagesJSONBodyTemplateFullWithinLayout PostApiPagesJSONBodyTemplate = "full_within_layout" PostApiPagesJSONBodyTemplateJson PostApiPagesJSONBodyTemplate = "json" )
Defines values for PostApiPagesJSONBodyTemplate.
type PostApiPagesJSONRequestBody ¶
type PostApiPagesJSONRequestBody PostApiPagesJSONBody
PostApiPagesJSONRequestBody defines body for PostApiPages for application/json ContentType.
type PostApiPagesResponse ¶
func ParsePostApiPagesResponse ¶
func ParsePostApiPagesResponse(rsp *http.Response) (*PostApiPagesResponse, error)
ParsePostApiPagesResponse parses an HTTP response from a PostApiPagesWithResponse call
func (PostApiPagesResponse) Status ¶
func (r PostApiPagesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiPagesResponse) StatusCode ¶
func (r PostApiPagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiReactionsParams ¶
type PostApiReactionsParams struct { Category PostApiReactionsParamsCategory `form:"category" json:"category"` ReactableId int32 `form:"reactable_id" json:"reactable_id"` ReactableType PostApiReactionsParamsReactableType `form:"reactable_type" json:"reactable_type"` }
PostApiReactionsParams defines parameters for PostApiReactions.
type PostApiReactionsParamsCategory ¶
type PostApiReactionsParamsCategory string
PostApiReactionsParamsCategory defines parameters for PostApiReactions.
const ( PostApiReactionsParamsCategoryExplodingHead PostApiReactionsParamsCategory = "exploding_head" PostApiReactionsParamsCategoryFire PostApiReactionsParamsCategory = "fire" PostApiReactionsParamsCategoryLike PostApiReactionsParamsCategory = "like" PostApiReactionsParamsCategoryRaisedHands PostApiReactionsParamsCategory = "raised_hands" PostApiReactionsParamsCategoryUnicorn PostApiReactionsParamsCategory = "unicorn" )
Defines values for PostApiReactionsParamsCategory.
type PostApiReactionsParamsReactableType ¶
type PostApiReactionsParamsReactableType string
PostApiReactionsParamsReactableType defines parameters for PostApiReactions.
const ( PostApiReactionsParamsReactableTypeArticle PostApiReactionsParamsReactableType = "Article" PostApiReactionsParamsReactableTypeComment PostApiReactionsParamsReactableType = "Comment" PostApiReactionsParamsReactableTypeUser PostApiReactionsParamsReactableType = "User" )
Defines values for PostApiReactionsParamsReactableType.
type PostApiReactionsResponse ¶
func ParsePostApiReactionsResponse ¶
func ParsePostApiReactionsResponse(rsp *http.Response) (*PostApiReactionsResponse, error)
ParsePostApiReactionsResponse parses an HTTP response from a PostApiReactionsWithResponse call
func (PostApiReactionsResponse) Status ¶
func (r PostApiReactionsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiReactionsResponse) StatusCode ¶
func (r PostApiReactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiReactionsToggleParams ¶
type PostApiReactionsToggleParams struct { Category PostApiReactionsToggleParamsCategory `form:"category" json:"category"` ReactableId int32 `form:"reactable_id" json:"reactable_id"` ReactableType PostApiReactionsToggleParamsReactableType `form:"reactable_type" json:"reactable_type"` }
PostApiReactionsToggleParams defines parameters for PostApiReactionsToggle.
type PostApiReactionsToggleParamsCategory ¶
type PostApiReactionsToggleParamsCategory string
PostApiReactionsToggleParamsCategory defines parameters for PostApiReactionsToggle.
const ( PostApiReactionsToggleParamsCategoryExplodingHead PostApiReactionsToggleParamsCategory = "exploding_head" PostApiReactionsToggleParamsCategoryFire PostApiReactionsToggleParamsCategory = "fire" PostApiReactionsToggleParamsCategoryLike PostApiReactionsToggleParamsCategory = "like" PostApiReactionsToggleParamsCategoryRaisedHands PostApiReactionsToggleParamsCategory = "raised_hands" PostApiReactionsToggleParamsCategoryUnicorn PostApiReactionsToggleParamsCategory = "unicorn" )
Defines values for PostApiReactionsToggleParamsCategory.
type PostApiReactionsToggleParamsReactableType ¶
type PostApiReactionsToggleParamsReactableType string
PostApiReactionsToggleParamsReactableType defines parameters for PostApiReactionsToggle.
const ( PostApiReactionsToggleParamsReactableTypeArticle PostApiReactionsToggleParamsReactableType = "Article" PostApiReactionsToggleParamsReactableTypeComment PostApiReactionsToggleParamsReactableType = "Comment" PostApiReactionsToggleParamsReactableTypeUser PostApiReactionsToggleParamsReactableType = "User" )
Defines values for PostApiReactionsToggleParamsReactableType.
type PostApiReactionsToggleResponse ¶
func ParsePostApiReactionsToggleResponse ¶
func ParsePostApiReactionsToggleResponse(rsp *http.Response) (*PostApiReactionsToggleResponse, error)
ParsePostApiReactionsToggleResponse parses an HTTP response from a PostApiReactionsToggleWithResponse call
func (PostApiReactionsToggleResponse) Status ¶
func (r PostApiReactionsToggleResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiReactionsToggleResponse) StatusCode ¶
func (r PostApiReactionsToggleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProfileImage ¶
type ProfileImage struct { // ImageOf Determines the type of the profile image owner (user or organization) ImageOf *string `json:"image_of,omitempty"` // ProfileImage Profile image (640x640) ProfileImage *string `json:"profile_image,omitempty"` // ProfileImage90 Profile image (90x90) ProfileImage90 *string `json:"profile_image_90,omitempty"` // TypeOf Return profile_image TypeOf *string `json:"type_of,omitempty"` }
ProfileImage A profile image object
type PutApiDisplayAdsIdJSONBody ¶
type PutApiDisplayAdsIdJSONBody = map[string]interface{}
PutApiDisplayAdsIdJSONBody defines parameters for PutApiDisplayAdsId.
type PutApiDisplayAdsIdJSONRequestBody ¶
type PutApiDisplayAdsIdJSONRequestBody = PutApiDisplayAdsIdJSONBody
PutApiDisplayAdsIdJSONRequestBody defines body for PutApiDisplayAdsId for application/json ContentType.
type PutApiDisplayAdsIdResponse ¶
type PutApiDisplayAdsIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParsePutApiDisplayAdsIdResponse ¶
func ParsePutApiDisplayAdsIdResponse(rsp *http.Response) (*PutApiDisplayAdsIdResponse, error)
ParsePutApiDisplayAdsIdResponse parses an HTTP response from a PutApiDisplayAdsIdWithResponse call
func (PutApiDisplayAdsIdResponse) Status ¶
func (r PutApiDisplayAdsIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiDisplayAdsIdResponse) StatusCode ¶
func (r PutApiDisplayAdsIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiDisplayAdsIdUnpublishResponse ¶
func ParsePutApiDisplayAdsIdUnpublishResponse ¶
func ParsePutApiDisplayAdsIdUnpublishResponse(rsp *http.Response) (*PutApiDisplayAdsIdUnpublishResponse, error)
ParsePutApiDisplayAdsIdUnpublishResponse parses an HTTP response from a PutApiDisplayAdsIdUnpublishWithResponse call
func (PutApiDisplayAdsIdUnpublishResponse) Status ¶
func (r PutApiDisplayAdsIdUnpublishResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiDisplayAdsIdUnpublishResponse) StatusCode ¶
func (r PutApiDisplayAdsIdUnpublishResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutApiPagesIdJSONRequestBody ¶
type PutApiPagesIdJSONRequestBody = Page
PutApiPagesIdJSONRequestBody defines body for PutApiPagesId for application/json ContentType.
type PutApiPagesIdResponse ¶
func ParsePutApiPagesIdResponse ¶
func ParsePutApiPagesIdResponse(rsp *http.Response) (*PutApiPagesIdResponse, error)
ParsePutApiPagesIdResponse parses an HTTP response from a PutApiPagesIdWithResponse call
func (PutApiPagesIdResponse) Status ¶
func (r PutApiPagesIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutApiPagesIdResponse) StatusCode ¶
func (r PutApiPagesIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type SharedOrganization ¶
type SharedOrganization struct { string `json:"profile_image,omitempty"` // ProfileImage90 Profile image (90x90) }ProfileImage *
SharedOrganization The organization the resource belongs to
type SharedPodcast ¶
type SharedPodcast struct { // ImageUrl Podcast image url }
SharedPodcast The podcast that the resource belongs to
type SharedUser ¶
type SharedUser struct { string `json:"profile_image,omitempty"` // ProfileImage90 Profile image (90x90) }ProfileImage *
SharedUser The resource creator
type SuspendUserResponse ¶
func ParseSuspendUserResponse ¶
func ParseSuspendUserResponse(rsp *http.Response) (*SuspendUserResponse, error)
ParseSuspendUserResponse parses an HTTP response from a SuspendUserWithResponse call
func (SuspendUserResponse) Status ¶
func (r SuspendUserResponse) Status() string
Status returns HTTPResponse.Status
func (SuspendUserResponse) StatusCode ¶
func (r SuspendUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Tag ¶
type Tag struct { BgColorHex *string `json:"bg_color_hex"` // Id Tag id Id *int64 `json:"id,omitempty"` Name *string `json:"name,omitempty"` TextColorHex *string `json:"text_color_hex"` }
Tag Representation of a tag
type UnpublishArticleParams ¶
type UnpublishArticleParams struct { // Note Content for the note that's created along with unpublishing Note *string `form:"note,omitempty" json:"note,omitempty"` }
UnpublishArticleParams defines parameters for UnpublishArticle.
type UnpublishArticleResponse ¶
func ParseUnpublishArticleResponse ¶
func ParseUnpublishArticleResponse(rsp *http.Response) (*UnpublishArticleResponse, error)
ParseUnpublishArticleResponse parses an HTTP response from a UnpublishArticleWithResponse call
func (UnpublishArticleResponse) Status ¶
func (r UnpublishArticleResponse) Status() string
Status returns HTTPResponse.Status
func (UnpublishArticleResponse) StatusCode ¶
func (r UnpublishArticleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnpublishUserResponse ¶
func ParseUnpublishUserResponse ¶
func ParseUnpublishUserResponse(rsp *http.Response) (*UnpublishUserResponse, error)
ParseUnpublishUserResponse parses an HTTP response from a UnpublishUserWithResponse call
func (UnpublishUserResponse) Status ¶
func (r UnpublishUserResponse) Status() string
Status returns HTTPResponse.Status
func (UnpublishUserResponse) StatusCode ¶
func (r UnpublishUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateArticleJSONRequestBody ¶
type UpdateArticleJSONRequestBody = Article
UpdateArticleJSONRequestBody defines body for UpdateArticle for application/json ContentType.
type UpdateArticleResponse ¶
func ParseUpdateArticleResponse ¶
func ParseUpdateArticleResponse(rsp *http.Response) (*UpdateArticleResponse, error)
ParseUpdateArticleResponse parses an HTTP response from a UpdateArticleWithResponse call
func (UpdateArticleResponse) Status ¶
func (r UpdateArticleResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateArticleResponse) StatusCode ¶
func (r UpdateArticleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type User ¶
type User struct { GithubUsername *string `json:"github_username,omitempty"` Id *int64 `json:"id,omitempty"` JoinedAt *string `json:"joined_at,omitempty"` Location *string `json:"location"` Name *string `json:"name,omitempty"` ProfileImage *string `json:"profile_image,omitempty"` Summary *string `json:"summary"` TwitterUsername *string `json:"twitter_username,omitempty"` TypeOf *string `json:"type_of,omitempty"` Username *string `json:"username,omitempty"` WebsiteUrl *string `json:"website_url"` }
User The representation of a user
type UserInviteParam ¶
UserInviteParam User invite parameters
type VideoArticle ¶
type VideoArticle struct { CloudinaryVideoUrl *string `json:"cloudinary_video_url,omitempty"` Id *int64 `json:"id,omitempty"` Path *string `json:"path,omitempty"` Title *string `json:"title,omitempty"` TypeOf *string `json:"type_of,omitempty"` // User Author of the article User *struct { Name *string `json:"name,omitempty"` } `json:"user,omitempty"` UserId *int64 `json:"user_id,omitempty"` VideoDurationInMinutes *string `json:"video_duration_in_minutes,omitempty"` VideoSourceUrl *string `json:"video_source_url,omitempty"` }
VideoArticle Representation of an Article with video
type VideosParams ¶
type VideosParams struct { // Page Pagination page Page *PageParam `form:"page,omitempty" json:"page,omitempty"` // PerPage Page size (the number of items to return per page). The default maximum value can be overridden by "API_PER_PAGE_MAX" environment variable. PerPage *PerPageParam24to1000 `form:"per_page,omitempty" json:"per_page,omitempty"` }
VideosParams defines parameters for Videos.
type VideosResponse ¶
type VideosResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]VideoArticle }
func ParseVideosResponse ¶
func ParseVideosResponse(rsp *http.Response) (*VideosResponse, error)
ParseVideosResponse parses an HTTP response from a VideosWithResponse call
func (VideosResponse) Status ¶
func (r VideosResponse) Status() string
Status returns HTTPResponse.Status
func (VideosResponse) StatusCode ¶
func (r VideosResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode