# README
FANBOX GO
type customSecuritySource struct{}
func (s customSecuritySource) CsrfToken(ctx context.Context, operationName string) (CsrfToken, error) {
return CsrfToken{
APIKey: "CsrfToken",
}, nil
}
func (s customSecuritySource) SessionId(ctx context.Context, operationName string) (SessionId, error) {
return SessionId{
APIKey: "SessionId",
}, nil
}
func main() {
s := &customSecuritySource{}
c, err := NewClient("https://api.fanbox.cc", s)
if err != nil {
os.Exit(1)
}
res, err := c.ListManagedPosts(context.TODO(), ListManagedPostsParams{Origin: "https://www.fanbox.cc"})
if err != nil {
fmt.Printf(err.Error())
os.Exit(1)
}
fmt.Printf("res: %+v", res)
}
# Functions
NewClient initializes new Client defined by OAS.
NewOptCreateBody returns new OptCreateBody with value set to v.
NewOptCreatePostReq returns new OptCreatePostReq with value set to v.
NewOptDeletePostReq returns new OptDeletePostReq with value set to v.
NewOptInt returns new OptInt with value set to v.
NewOptNull returns new OptNull with value set to v.
NewOptPost returns new OptPost with value set to v.
NewOptPostBody returns new OptPostBody with value set to v.
NewOptPostBodyBlocksItemStylesItemType returns new OptPostBodyBlocksItemStylesItemType with value set to v.
NewOptPostBodyBlocksItemType returns new OptPostBodyBlocksItemType with value set to v.
NewOptPostBodyImageMap returns new OptPostBodyImageMap with value set to v.
NewOptPostBodyUrlEmbedMap returns new OptPostBodyUrlEmbedMap with value set to v.
NewOptPostBodyUrlEmbedMapItemPostInfo returns new OptPostBodyUrlEmbedMapItemPostInfo with value set to v.
NewOptPostBodyUrlEmbedMapItemType returns new OptPostBodyUrlEmbedMapItemType with value set to v.
NewOptPostStatus returns new OptPostStatus with value set to v.
NewOptString returns new OptString with value set to v.
NewOptUpdatePostReq returns new OptUpdatePostReq with value set to v.
NewOptUpdatePostReqStatus returns new OptUpdatePostReqStatus with value set to v.
WithClient specifies http client to use.
WithServerURL sets context key to override server URL.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Client implements OAS client.
No description provided by the author
No description provided by the author
CreatePostParams is parameters of createPost operation.
No description provided by the author
No description provided by the author
No description provided by the author
DeletePostParams is parameters of deletePost operation.
No description provided by the author
No description provided by the author
GetEditablePostParams is parameters of getEditablePost operation.
No description provided by the author
ListManagedPostsParams is parameters of listManagedPosts operation.
OptCreateBody is optional CreateBody.
OptCreatePostReq is optional CreatePostReq.
OptDeletePostReq is optional DeletePostReq.
OptInt is optional int.
OptNull is optional struct{}.
OptPost is optional Post.
OptPostBody is optional PostBody.
OptPostBodyBlocksItemStylesItemType is optional PostBodyBlocksItemStylesItemType.
OptPostBodyBlocksItemType is optional PostBodyBlocksItemType.
OptPostBodyImageMap is optional PostBodyImageMap.
OptPostBodyUrlEmbedMap is optional PostBodyUrlEmbedMap.
OptPostBodyUrlEmbedMapItemPostInfo is optional PostBodyUrlEmbedMapItemPostInfo.
OptPostBodyUrlEmbedMapItemType is optional PostBodyUrlEmbedMapItemType.
OptPostStatus is optional PostStatus.
OptString is optional string.
OptUpdatePostReq is optional UpdatePostReq.
OptUpdatePostReqStatus is optional UpdatePostReqStatus.
Ref: #/components/schemas/Post.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UpdatePostParams is parameters of updatePost operation.
No description provided by the author
# Interfaces
ClientOption is client config option.
No description provided by the author
No description provided by the author
No description provided by the author
Invoker invokes operations described by OpenAPI v3 specification.
No description provided by the author
Option is config option.
SecuritySource is provider of security values (tokens, passwords, etc.).
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author