FastComments.com

FastComments Go SDK

ื–ื” ื”-SDK ื”ืจืฉืžื™ ื‘-Go ืขื‘ื•ืจ FastComments.

ื”-SDK ื”ืจืฉืžื™ ื‘-Go ืขื‘ื•ืจ ื”-API ืฉืœ FastComments

ืžืื’ืจ

ืฆืคื” ื‘-GitHub


ื”ืชืงื ื” Internal Link

go get github.com/fastcomments/fastcomments-go

ืฉื™ืžื•ืฉ ื‘ืœืงื•ื— ื”-API

API ืฆื™ื‘ื•ืจื™ (ืœืœื ืื™ืžื•ืช)

PublicAPI ืžืืคืฉืจ ื’ื™ืฉื” ืœืœื ืื™ืžื•ืช ืœื ืงื•ื“ื•ืช ืงืฆื” ืฆื™ื‘ื•ืจื™ื•ืช:

package main

import (
    "context"
    "fmt"
    "github.com/fastcomments/fastcomments-go/client"
)

func main() {
    config := client.NewConfiguration()
    apiClient := client.NewAPIClient(config)

    // ืงื‘ืœืช ืชื’ื•ื‘ื•ืช ื‘ืืžืฆืขื•ืช PublicAPI
    response, httpResp, err := apiClient.PublicAPI.GetCommentsPublic(
        context.Background(),
        "your-tenant-id",
    ).UrlId("your-page-url-id").Execute()

    if err != nil {
        panic(err)
    }

    fmt.Printf("Status: %d\n", httpResp.StatusCode)
    fmt.Printf("Comments: %+v\n", response)
}

API ื‘ืจื™ืจืช ืžื—ื“ืœ (ื“ื•ืจืฉ ืžืคืชื— API)

DefaultAPI ื“ื•ืจืฉ ืื™ืžื•ืช ื‘ืืžืฆืขื•ืช ืžืคืชื— ื”-API ืฉืœืš:

package main

import (
    "context"
    "fmt"
    "github.com/fastcomments/fastcomments-go/client"
)

func main() {
    config := client.NewConfiguration()
    apiClient := client.NewAPIClient(config)

    // ืฆื•ืจ ื”ืงืฉืจ ืžืื•ืžืช ืขื ืžืคืชื— API
    auth := context.WithValue(
        context.Background(),
        client.ContextAPIKeys,
        map[string]client.APIKey{
            "api_key": {Key: "your-api-key-here"},
        },
    )

    // ืงื‘ืœืช ืชื’ื•ื‘ื•ืช ื‘ืืžืฆืขื•ืช DefaultAPI ื”ืžืื•ืžืช
    response, httpResp, err := apiClient.DefaultAPI.GetComments(auth).
        TenantId("your-tenant-id").
        UrlId("your-page-url-id").
        Execute()

    if err != nil {
        panic(err)
    }

    fmt.Printf("Status: %d\n", httpResp.StatusCode)
    fmt.Printf("Comments: %+v\n", response)
}

ืฉื™ืžื•ืฉ Internal Link

SSO ืคืฉื•ื˜

package main

import (
    "context"
    "fmt"
    "github.com/fastcomments/fastcomments-go/client"
    "github.com/fastcomments/fastcomments-go/sso"
)

func main() {
    // ืฆื•ืจ ืืกื™ืžื•ืŸ SSO ืคืฉื•ื˜
    user := &sso.SimpleSSOUserData{
        UserID: "user-123",
        Email:  "user@example.com",
        Avatar: "https://example.com/avatar.jpg",
    }

    ssoInstance := sso.NewSimple(user)
    token, err := ssoInstance.CreateToken()
    if err != nil {
        panic(err)
    }

    fmt.Println("SSO Token:", token)

    // ื”ืฉืชืžืฉ ื‘ืืกื™ืžื•ืŸ ื”-SSO ื›ื“ื™ ืœื‘ืฆืข ืงืจื™ืืช API ืžืื•ืžืชืช
    config := client.NewConfiguration()
    apiClient := client.NewAPIClient(config)

    response, httpResp, err := apiClient.PublicAPI.GetCommentsPublic(
        context.Background(),
        "your-tenant-id",
    ).UrlId("your-page-url-id").Sso(token).Execute()

    if err != nil {
        panic(err)
    }

    fmt.Printf("Status: %d\n", httpResp.StatusCode)
    fmt.Printf("Comments: %+v\n", response)
}

SSO ืžืื•ื‘ื˜ื—

package main

import (
    "context"
    "fmt"
    "github.com/fastcomments/fastcomments-go/client"
    "github.com/fastcomments/fastcomments-go/sso"
)

func main() {
    // ืฆื•ืจ ืืกื™ืžื•ืŸ SSO ืžืื•ื‘ื˜ื—
    user := &sso.SecureSSOUserData{
        UserID:   "user-123",
        Email:    "user@example.com",
        Username: "johndoe",
        Avatar:   "https://example.com/avatar.jpg",
    }

    apiKey := "your-api-key"
    ssoInstance, err := sso.NewSecure(apiKey, user)
    if err != nil {
        panic(err)
    }

    token, err := ssoInstance.CreateToken()
    if err != nil {
        panic(err)
    }

    fmt.Println("Secure SSO Token:", token)

    // ื”ืฉืชืžืฉ ื‘ืืกื™ืžื•ืŸ ื”-SSO ื›ื“ื™ ืœื‘ืฆืข ืงืจื™ืืช API ืžืื•ืžืชืช
    config := client.NewConfiguration()
    apiClient := client.NewAPIClient(config)

    response, httpResp, err := apiClient.PublicAPI.GetCommentsPublic(
        context.Background(),
        "your-tenant-id",
    ).UrlId("your-page-url-id").Sso(token).Execute()

    if err != nil {
        panic(err)
    }

    fmt.Printf("Status: %d\n", httpResp.StatusCode)
    fmt.Printf("Comments: %+v\n", response)
}

ืื’ืจื’ืฆื™ื” Internal Link

Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported.

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
parentTenantId string query ืœื
includeStats boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: AggregationResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-Aggregate
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 aggregationRequest := *openapiclient.NewAggregationRequest("ResourceName_example", []openapiclient.AggregationOperation{*openapiclient.NewAggregationOperation("Field_example", openapiclient.AggregationOpType("sum"))}) // AggregationRequest |
14 parentTenantId := "parentTenantId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 includeStats := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.Aggregate(context.Background()).TenantId(tenantId).AggregationRequest(aggregationRequest).ParentTenantId(parentTenantId).IncludeStats(includeStats).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.Aggregate``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`Aggregate`: AggregationResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.Aggregate`: %v\n", resp)
26}
27

ืงื‘ืœ ื™ื•ืžื ื™ ื‘ื™ืงื•ืจืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
limit number query ืœื
skip number query ืœื
order string query ืœื
after number query ืœื
before number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetAuditLogs200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetAuditLogs
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 limit := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
14 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
15 order := openapiclient.SORT_DIR("ASC") // SORTDIR | (ืื•ืคืฆื™ื•ื ืœื™)
16 after := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
17 before := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.DefaultAPI.GetAuditLogs(context.Background()).TenantId(tenantId).Limit(limit).Skip(skip).Order(order).After(after).Before(before).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetAuditLogs``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // ืชื’ื•ื‘ื” ืž-`GetAuditLogs`: GetAuditLogs200Response
27 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetAuditLogs`: %v\n", resp)
28}
29

ื—ืกื™ืžื” ืžืชื’ื•ื‘ื” (ืฆื™ื‘ื•ืจื™ืช) Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
commentId string path ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: BlockFromCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-BlockFromCommentPublic
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string |
14 publicBlockFromCommentParams := *openapiclient.NewPublicBlockFromCommentParams([]string{"CommentIds_example"}) // PublicBlockFromCommentParams |
15 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.BlockFromCommentPublic(context.Background(), commentId).TenantId(tenantId).PublicBlockFromCommentParams(publicBlockFromCommentParams).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.BlockFromCommentPublic``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // response from `BlockFromCommentPublic`: BlockFromCommentPublic200Response
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.BlockFromCommentPublic`: %v\n", resp)
26}
27

ื‘ื˜ืœ ื—ืกื™ืžื” ืžืชื’ื•ื‘ื” (ืฆื™ื‘ื•ืจื™ืช) Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ
commentId string path ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UnBlockCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UnBlockCommentPublic
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string |
14 publicBlockFromCommentParams := *openapiclient.NewPublicBlockFromCommentParams([]string{"CommentIds_example"}) // PublicBlockFromCommentParams |
15 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.UnBlockCommentPublic(context.Background(), commentId).TenantId(tenantId).PublicBlockFromCommentParams(publicBlockFromCommentParams).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UnBlockCommentPublic``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`UnBlockCommentPublic`: UnBlockCommentPublic200Response
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UnBlockCommentPublic`: %v\n", resp)
26}
27

ื‘ื“ื™ืงืช ืชื’ื•ื‘ื•ืช ื—ืกื•ืžื•ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query Yes
commentIds string query Yes ืจืฉื™ืžื” ืžื•ืคืจื“ืช ื‘ืคืกื™ืงื™ื ืฉืœ ืžื–ื”ื™ ื”ืขืจื•ืช.
sso string query No

ืชืฉื•ื‘ื”

ืžื—ื–ื™ืจ: CheckedCommentsForBlocked200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-CheckedCommentsForBlocked
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentIds := "commentIds_example" // string | ืจืฉื™ืžื” ืžื•ืคืจื“ืช ื‘ืคืกื™ืงื™ื ืฉืœ ืžื–ื”ื™ ื”ืขืจื•ืช.
14 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.PublicAPI.CheckedCommentsForBlocked(context.Background()).TenantId(tenantId).CommentIds(commentIds).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.CheckedCommentsForBlocked``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`CheckedCommentsForBlocked`: CheckedCommentsForBlocked200Response
24 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.CheckedCommentsForBlocked`: %v\n", resp)
25}
26

ื—ืกื•ื ืžืฉืชืžืฉ ืžื”ืชื’ื•ื‘ื” Internal Link


ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
userId string query ืœื
anonUserId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: BlockFromCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-BlockUserFromComment
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 blockFromCommentParams := *openapiclient.NewBlockFromCommentParams() // BlockFromCommentParams |
15 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16 anonUserId := "anonUserId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.DefaultAPI.BlockUserFromComment(context.Background(), id).TenantId(tenantId).BlockFromCommentParams(blockFromCommentParams).UserId(userId).AnonUserId(anonUserId).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.BlockUserFromComment``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // ืชื’ื•ื‘ื” ืž-`BlockFromComment`: BlockFromCommentPublic200Response
26 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.BlockUserFromComment`: %v\n", resp)
27}
28

ืฆื•ืจ ืชื’ื•ื‘ื” ืฆื™ื‘ื•ืจื™ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string path Yes
urlId string query Yes
broadcastId string query Yes
sessionId string query No
sso string query No

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-CreateCommentPublic
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 urlId := "urlId_example" // string |
14 broadcastId := "broadcastId_example" // string |
15 commentData := *openapiclient.NewCommentData("CommenterName_example", "Comment_example", "Url_example", "UrlId_example") // CommentData |
16 sessionId := "sessionId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.PublicAPI.CreateCommentPublic(context.Background(), tenantId).UrlId(urlId).BroadcastId(broadcastId).CommentData(commentData).SessionId(sessionId).Sso(sso).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.CreateCommentPublic``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // ืชื’ื•ื‘ื” ืž-`CreateCommentPublic`: CreateCommentPublic200Response
27 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.CreateCommentPublic`: %v\n", resp)
28}
29

ืžื—ืง ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
contextUserId string query ืœื
isLive boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteComment
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 contextUserId := "contextUserId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 isLive := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.DeleteComment(context.Background(), id).TenantId(tenantId).ContextUserId(contextUserId).IsLive(isLive).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteComment``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`DeleteComment`: DeleteComment200Response
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteComment`: %v\n", resp)
26}
27

ืžื—ืง ืชื’ื•ื‘ื” ืฆื™ื‘ื•ืจื™ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string path Yes
commentId string path Yes
broadcastId string query Yes
editKey string query No
sso string query No

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteCommentPublic
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string |
14 broadcastId := "broadcastId_example" // string |
15 editKey := "editKey_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.PublicAPI.DeleteCommentPublic(context.Background(), tenantId, commentId).BroadcastId(broadcastId).EditKey(editKey).Sso(sso).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.DeleteCommentPublic``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // ืชื’ื•ื‘ื” ืž-`DeleteCommentPublic`: DeleteCommentPublic200Response
26 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteCommentPublic`: %v\n", resp)
27}
28

ืžื—ืง ื”ืฆื‘ืขื” ืขืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
voteId string path ื›ืŸ
urlId string query ื›ืŸ
broadcastId string query ื›ืŸ
editKey string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื•ื—ื–ืจ: DeleteCommentVote200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteCommentVote
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string |
14 voteId := "voteId_example" // string |
15 urlId := "urlId_example" // string |
16 broadcastId := "broadcastId_example" // string |
17 editKey := "editKey_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
18 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
19
20 configuration := openapiclient.NewConfiguration()
21 apiClient := openapiclient.NewAPIClient(configuration)
22 resp, r, err := apiClient.PublicAPI.DeleteCommentVote(context.Background(), tenantId, commentId, voteId).UrlId(urlId).BroadcastId(broadcastId).EditKey(editKey).Sso(sso).Execute()
23 if err != nil {
24 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.DeleteCommentVote``: %v\n", err)
25 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
26 }
27 // ืชื’ื•ื‘ื” ืž-`DeleteCommentVote`: DeleteCommentVote200Response
28 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteCommentVote`: %v\n", resp)
29}
30

ื“ื•ื•ื— ืขืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
userId string query ืœื
anonUserId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-FlagComment
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 anonUserId := "anonUserId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.FlagComment(context.Background(), id).TenantId(tenantId).UserId(userId).AnonUserId(anonUserId).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.FlagComment``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`FlagComment`: FlagComment200Response
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.FlagComment`: %v\n", resp)
26}
27

ืงื‘ืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query Yes
id string path Yes

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetComment
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetComment(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetComment``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetComment`: GetComment200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetComment`: %v\n", resp)
24}
25

ืงื‘ืœ ืชื’ื•ื‘ื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
page integer query ืœื
limit integer query ืœื
skip integer query ืœื
asTree boolean query ืœื
skipChildren integer query ืœื
limitChildren integer query ืœื
maxTreeDepth integer query ืœื
urlId string query ืœื
userId string query ืœื
anonUserId string query ืœื
contextUserId string query ืœื
hashTag string query ืœื
parentId string query ืœื
direction string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetComments200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetComments
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 page := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
14 limit := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
15 skip := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
16 asTree := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
17 skipChildren := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
18 limitChildren := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
19 maxTreeDepth := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
20 urlId := "urlId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
21 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
22 anonUserId := "anonUserId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
23 contextUserId := "contextUserId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
24 hashTag := "hashTag_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
25 parentId := "parentId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
26 direction := openapiclient.SortDirections("OF") // SortDirections | (ืื•ืคืฆื™ื•ื ืœื™)
27
28 configuration := openapiclient.NewConfiguration()
29 apiClient := openapiclient.NewAPIClient(configuration)
30 resp, r, err := apiClient.DefaultAPI.GetComments(context.Background()).TenantId(tenantId).Page(page).Limit(limit).Skip(skip).AsTree(asTree).SkipChildren(skipChildren).LimitChildren(limitChildren).MaxTreeDepth(maxTreeDepth).UrlId(urlId).UserId(userId).AnonUserId(anonUserId).ContextUserId(contextUserId).HashTag(hashTag).ParentId(parentId).Direction(direction).Execute()
31 if err != nil {
32 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetComments``: %v\n", err)
33 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
34 }
35 // ืชื’ื•ื‘ื” ืž-`GetComments`: GetComments200Response
36 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetComments`: %v\n", resp)
37}
38

ืงื‘ืœ ืชื’ื•ื‘ื•ืช ืฆื™ื‘ื•ืจื™ื•ืช Internal Link

req tenantId urlId

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
urlId string query ื›ืŸ
page integer query ืœื
direction string query ืœื
sso string query ืœื
skip integer query ืœื
skipChildren integer query ืœื
limit integer query ืœื
limitChildren integer query ืœื
countChildren boolean query ืœื
fetchPageForCommentId string query ืœื
includeConfig boolean query ืœื
countAll boolean query ืœื
includei10n boolean query ืœื
locale string query ืœื
modules string query ืœื
isCrawler boolean query ืœื
includeNotificationCount boolean query ืœื
asTree boolean query ืœื
maxTreeDepth integer query ืœื
useFullTranslationIds boolean query ืœื
parentId string query ืœื
searchText string query ืœื
hashTags array query ืœื
userId string query ืœื
customConfigStr string query ืœื
afterCommentId string query ืœื
beforeCommentId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetCommentsPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetCommentsPublic
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 urlId := "urlId_example" // string |
14 page := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
15 direction := openapiclient.SortDirections("OF") // SortDirections | (ืื•ืคืฆื™ื•ื ืœื™)
16 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17 skip := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
18 skipChildren := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
19 limit := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
20 limitChildren := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
21 countChildren := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
22 fetchPageForCommentId := "fetchPageForCommentId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
23 includeConfig := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
24 countAll := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
25 includei10n := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
26 locale := "locale_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
27 modules := "modules_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
28 isCrawler := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
29 includeNotificationCount := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
30 asTree := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
31 maxTreeDepth := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
32 useFullTranslationIds := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
33 parentId := "parentId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
34 searchText := "searchText_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
35 hashTags := []string{"Inner_example"} // []string | (ืื•ืคืฆื™ื•ื ืœื™)
36 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
37 customConfigStr := "customConfigStr_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
38 afterCommentId := "afterCommentId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
39 beforeCommentId := "beforeCommentId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
40
41 configuration := openapiclient.NewConfiguration()
42 apiClient := openapiclient.NewAPIClient(configuration)
43 resp, r, err := apiClient.PublicAPI.GetCommentsPublic(context.Background(), tenantId).UrlId(urlId).Page(page).Direction(direction).Sso(sso).Skip(skip).SkipChildren(skipChildren).Limit(limit).LimitChildren(limitChildren).CountChildren(countChildren).FetchPageForCommentId(fetchPageForCommentId).IncludeConfig(includeConfig).CountAll(countAll).Includei10n(includei10n).Locale(locale).Modules(modules).IsCrawler(isCrawler).IncludeNotificationCount(includeNotificationCount).AsTree(asTree).MaxTreeDepth(maxTreeDepth).UseFullTranslationIds(useFullTranslationIds).ParentId(parentId).SearchText(searchText).HashTags(hashTags).UserId(userId).CustomConfigStr(customConfigStr).AfterCommentId(afterCommentId).BeforeCommentId(beforeCommentId).Execute()
44 if err != nil {
45 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetCommentsPublic``: %v\n", err)
46 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
47 }
48 // ืชื’ื•ื‘ื” ืž-`GetCommentsPublic`: GetCommentsPublic200Response
49 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentsPublic`: %v\n", resp)
50}
51

ืงื‘ืœ ื˜ืงืกื˜ ืฉืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
editKey string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetCommentText200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetCommentText
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
13 commentId := "commentId_example" // ืžื—ืจื•ื–ืช |
14 editKey := "editKey_example" // ืžื—ืจื•ื–ืช | (ืื•ืคืฆื™ื•ื ืœื™)
15 sso := "sso_example" // ืžื—ืจื•ื–ืช | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.GetCommentText(context.Background(), tenantId, commentId).EditKey(editKey).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetCommentText``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`GetCommentText`: GetCommentText200Response
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentText`: %v\n", resp)
26}
27

ืงื‘ืœ ืฉืžื•ืช ืžืฉืชืžืฉื™ื ืฉื”ืฆื‘ื™ืขื• ืขืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
dir integer query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetCommentVoteUserNames200Response

ื“ื•ื’ืžื”

GetCommentVoteUserNames ื“ื•ื’ืžื”
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string |
14 dir := int32(56) // int32 |
15 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.GetCommentVoteUserNames(context.Background(), tenantId, commentId).Dir(dir).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetCommentVoteUserNames``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`GetCommentVoteUserNames`: GetCommentVoteUserNames200Response
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentVoteUserNames`: %v\n", resp)
26}
27

ื ืขืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
broadcastId string query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: LockComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-LockComment
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string |
14 broadcastId := "broadcastId_example" // string |
15 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.LockComment(context.Background(), tenantId, commentId).BroadcastId(broadcastId).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.LockComment``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`LockComment`: LockComment200Response
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.LockComment`: %v\n", resp)
26}
27

ื ืขืฅ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
broadcastId string query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: PinComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช PinComment
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string |
14 broadcastId := "broadcastId_example" // string |
15 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.PinComment(context.Background(), tenantId, commentId).BroadcastId(broadcastId).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.PinComment``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`PinComment`: PinComment200Response
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.PinComment`: %v\n", resp)
26}
27

ืฉืžื•ืจ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
isLive boolean query ืœื
doSpamCheck boolean query ืœื
sendEmails boolean query ืœื
populateNotifications boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: SaveComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-SaveComment
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createCommentParams := *openapiclient.NewCreateCommentParams("CommenterName_example", "Comment_example", "Url_example", "UrlId_example", "Locale_example") // CreateCommentParams |
14 isLive := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
15 doSpamCheck := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
16 sendEmails := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
17 populateNotifications := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.DefaultAPI.SaveComment(context.Background()).TenantId(tenantId).CreateCommentParams(createCommentParams).IsLive(isLive).DoSpamCheck(doSpamCheck).SendEmails(sendEmails).PopulateNotifications(populateNotifications).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.SaveComment``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // ืชื’ื•ื‘ื” ืž-`SaveComment`: SaveComment200Response
27 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.SaveComment`: %v\n", resp)
28}
29

ืฉืžื•ืจ ืชื’ื•ื‘ื•ืช ื‘ื›ืžื•ืช ื’ื“ื•ืœื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
isLive boolean query ืœื
doSpamCheck boolean query ืœื
sendEmails boolean query ืœื
populateNotifications boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: []SaveComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-SaveCommentsBulk
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createCommentParams := []openapiclient.CreateCommentParams{*openapiclient.NewCreateCommentParams("CommenterName_example", "Comment_example", "Url_example", "UrlId_example", "Locale_example")} // []CreateCommentParams |
14 isLive := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
15 doSpamCheck := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
16 sendEmails := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
17 populateNotifications := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.DefaultAPI.SaveCommentsBulk(context.Background()).TenantId(tenantId).CreateCommentParams(createCommentParams).IsLive(isLive).DoSpamCheck(doSpamCheck).SendEmails(sendEmails).PopulateNotifications(populateNotifications).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.SaveCommentsBulk``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // ืชื’ื•ื‘ื” ืžึพ`SaveCommentsBulk`: []SaveComment200Response
27 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.SaveCommentsBulk`: %v\n", resp)
28}
29

ื”ื’ื“ืจ ื˜ืงืกื˜ ืฉืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
broadcastId string query ื›ืŸ
editKey string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: SetCommentText200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช SetCommentText
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string |
14 broadcastId := "broadcastId_example" // string |
15 commentTextUpdateRequest := *openapiclient.NewCommentTextUpdateRequest("Comment_example") // CommentTextUpdateRequest |
16 editKey := "editKey_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.PublicAPI.SetCommentText(context.Background(), tenantId, commentId).BroadcastId(broadcastId).CommentTextUpdateRequest(commentTextUpdateRequest).EditKey(editKey).Sso(sso).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.SetCommentText``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // ืชื’ื•ื‘ื” ืž-`SetCommentText`: SetCommentText200Response
27 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.SetCommentText`: %v\n", resp)
28}
29

ื‘ื˜ืœ ื—ืกื™ืžืช ืžืฉืชืžืฉ ืžื”ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
userId string query ืœื
anonUserId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UnBlockCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช UnBlockUserFromComment
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
13 id := "id_example" // ืžื—ืจื•ื–ืช |
14 unBlockFromCommentParams := *openapiclient.NewUnBlockFromCommentParams() // UnBlockFromCommentParams |
15 userId := "userId_example" // ืžื—ืจื•ื–ืช | (ืื•ืคืฆื™ื•ื ืœื™)
16 anonUserId := "anonUserId_example" // ืžื—ืจื•ื–ืช | (ืื•ืคืฆื™ื•ื ืœื™)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.DefaultAPI.UnBlockUserFromComment(context.Background(), id).TenantId(tenantId).UnBlockFromCommentParams(unBlockFromCommentParams).UserId(userId).AnonUserId(anonUserId).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UnBlockUserFromComment``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // ืชื’ื•ื‘ื” ืž-`UnBlockUserFromComment`: UnBlockCommentPublic200Response
26 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UnBlockUserFromComment`: %v\n", resp)
27}
28

ื”ืกืจ ื“ื™ื•ื•ื— ืขืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
userId string query ืœื
anonUserId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UnFlagComment
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 anonUserId := "anonUserId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.UnFlagComment(context.Background(), id).TenantId(tenantId).UserId(userId).AnonUserId(anonUserId).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UnFlagComment``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`UnFlagComment`: FlagComment200Response
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UnFlagComment`: %v\n", resp)
26}
27

ื‘ื˜ืœ ื ืขื™ืœืช ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
broadcastId string query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: LockComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UnLockComment
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string |
14 broadcastId := "broadcastId_example" // string |
15 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.UnLockComment(context.Background(), tenantId, commentId).BroadcastId(broadcastId).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UnLockComment``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`UnLockComment`: LockComment200Response
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UnLockComment`: %v\n", resp)
26}
27

ื‘ื˜ืœ ื ืขื™ืฆื” ืฉืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
broadcastId string query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: PinComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UnPinComment
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string |
14 broadcastId := "broadcastId_example" // string |
15 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.UnPinComment(context.Background(), tenantId, commentId).BroadcastId(broadcastId).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UnPinComment``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`UnPinComment`: PinComment200Response
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UnPinComment`: %v\n", resp)
26}
27

ืขื“ื›ืŸ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
contextUserId string query ืœื
doSpamCheck boolean query ืœื
isLive boolean query ืœื

ืชื’ื•ื‘ื”

ืžื•ื—ื–ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UpdateComment
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 body := PickAPICommentUpdatableCommentFields(987) // PickAPICommentUpdatableCommentFields |
15 contextUserId := "contextUserId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16 doSpamCheck := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
17 isLive := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.DefaultAPI.UpdateComment(context.Background(), id).TenantId(tenantId).Body(body).ContextUserId(contextUserId).DoSpamCheck(doSpamCheck).IsLive(isLive).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateComment``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // ืชื’ื•ื‘ื” ืž-`UpdateComment`: FlagCommentPublic200Response
27 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateComment`: %v\n", resp)
28}
29

ื”ืฆื‘ื™ืข ืขืœ ืชื’ื•ื‘ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
commentId string path ื›ืŸ
urlId string query ื›ืŸ
broadcastId string query ื›ืŸ
sessionId string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: VoteComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช VoteComment
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string |
14 urlId := "urlId_example" // string |
15 broadcastId := "broadcastId_example" // string |
16 voteBodyParams := *openapiclient.NewVoteBodyParams("CommenterEmail_example", "CommenterName_example", "VoteDir_example", "Url_example") // VoteBodyParams |
17 sessionId := "sessionId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
18 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
19
20 configuration := openapiclient.NewConfiguration()
21 apiClient := openapiclient.NewAPIClient(configuration)
22 resp, r, err := apiClient.PublicAPI.VoteComment(context.Background(), tenantId, commentId).UrlId(urlId).BroadcastId(broadcastId).VoteBodyParams(voteBodyParams).SessionId(sessionId).Sso(sso).Execute()
23 if err != nil {
24 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.VoteComment``: %v\n", err)
25 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
26 }
27 // ืชื’ื•ื‘ื” ืžึพ`VoteComment`: VoteComment200Response
28 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.VoteComment`: %v\n", resp)
29}
30

ื”ื•ืกืฃ ืชืฆื•ืจืช ื“ื•ืžื™ื™ืŸ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: AddDomainConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-AddDomainConfig
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 addDomainConfigParams := *openapiclient.NewAddDomainConfigParams("Domain_example") // AddDomainConfigParams |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.AddDomainConfig(context.Background()).TenantId(tenantId).AddDomainConfigParams(addDomainConfigParams).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AddDomainConfig``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`AddDomainConfig`: AddDomainConfig200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AddDomainConfig`: %v\n", resp)
24}
25

ืžื—ืง ืชืฆื•ืจืช ื“ื•ืžื™ื™ืŸ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ
domain string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteDomainConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteDomainConfig
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 domain := "domain_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.DeleteDomainConfig(context.Background(), domain).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteDomainConfig``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`DeleteDomainConfig`: DeleteDomainConfig200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteDomainConfig`: %v\n", resp)
24}
25

ืงื‘ืœ ืชืฆื•ืจืช ื“ื•ืžื™ื™ืŸ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
domain string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetDomainConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetDomainConfig
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 domain := "domain_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetDomainConfig(context.Background(), domain).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetDomainConfig``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืžึพ`GetDomainConfig`: GetDomainConfig200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetDomainConfig`: %v\n", resp)
24}
25

ืงื‘ืœ ืชืฆื•ืจื•ืช ื“ื•ืžื™ื™ืŸ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetDomainConfigs200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช GetDomainConfigs
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13
14 configuration := openapiclient.NewConfiguration()
15 apiClient := openapiclient.NewAPIClient(configuration)
16 resp, r, err := apiClient.DefaultAPI.GetDomainConfigs(context.Background()).TenantId(tenantId).Execute()
17 if err != nil {
18 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetDomainConfigs``: %v\n", err)
19 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
20 }
21 // ืชื’ื•ื‘ื” ืž-`GetDomainConfigs`: GetDomainConfigs200Response
22 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetDomainConfigs`: %v\n", resp)
23}
24

ืขื“ื›ืŸ ื—ืœืงื™ืช ืชืฆื•ืจืช ื“ื•ืžื™ื™ืŸ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ
domainToUpdate string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetDomainConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-PatchDomainConfig
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
13 domainToUpdate := "domainToUpdate_example" // ืžื—ืจื•ื–ืช |
14 patchDomainConfigParams := *openapiclient.NewPatchDomainConfigParams() // PatchDomainConfigParams |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.PatchDomainConfig(context.Background(), domainToUpdate).TenantId(tenantId).PatchDomainConfigParams(patchDomainConfigParams).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.PatchDomainConfig``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // response from `PatchDomainConfig`: GetDomainConfig200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PatchDomainConfig`: %v\n", resp)
25}
26

ื”ื—ืœืฃ ืชืฆื•ืจืช ื“ื•ืžื™ื™ืŸ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query Yes
domainToUpdate string path Yes

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetDomainConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-PutDomainConfig
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 domainToUpdate := "domainToUpdate_example" // string |
14 updateDomainConfigParams := *openapiclient.NewUpdateDomainConfigParams("Domain_example") // UpdateDomainConfigParams |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.PutDomainConfig(context.Background(), domainToUpdate).TenantId(tenantId).UpdateDomainConfigParams(updateDomainConfigParams).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.PutDomainConfig``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`PutDomainConfig`: GetDomainConfig200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PutDomainConfig`: %v\n", resp)
25}
26

ืฆื•ืจ ืชื‘ื ื™ืช ืื™ืžื™ื™ืœ Internal Link


ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateEmailTemplate200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-CreateEmailTemplate
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createEmailTemplateBody := *openapiclient.NewCreateEmailTemplateBody("EmailTemplateId_example", "DisplayName_example", "Ejs_example") // CreateEmailTemplateBody |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.CreateEmailTemplate(context.Background()).TenantId(tenantId).CreateEmailTemplateBody(createEmailTemplateBody).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateEmailTemplate``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืžึพ`CreateEmailTemplate`: CreateEmailTemplate200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateEmailTemplate`: %v\n", resp)
24}
25

ืžื—ืง ืชื‘ื ื™ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteEmailTemplate
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.DeleteEmailTemplate(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteEmailTemplate``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`DeleteEmailTemplate`: FlagCommentPublic200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteEmailTemplate`: %v\n", resp)
24}
25

ืžื—ืง ืฉื’ื™ืืช ืจื™ื ื“ื•ืจ ืฉืœ ืชื‘ื ื™ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
errorId string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteEmailTemplateRenderError
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 errorId := "errorId_example" // string |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.DeleteEmailTemplateRenderError(context.Background(), id, errorId).TenantId(tenantId).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteEmailTemplateRenderError``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // response from `DeleteEmailTemplateRenderError`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteEmailTemplateRenderError`: %v\n", resp)
25}
26

ืงื‘ืœ ืชื‘ื ื™ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetEmailTemplate200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetEmailTemplate
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetEmailTemplate(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetEmailTemplate``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetEmailTemplate`: GetEmailTemplate200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetEmailTemplate`: %v\n", resp)
24}
25

ืงื‘ืœ ื”ื’ื“ืจื•ืช ืชื‘ื ื™ื•ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetEmailTemplateDefinitions200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetEmailTemplateDefinitions
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
13
14 configuration := openapiclient.NewConfiguration()
15 apiClient := openapiclient.NewAPIClient(configuration)
16 resp, r, err := apiClient.DefaultAPI.GetEmailTemplateDefinitions(context.Background()).TenantId(tenantId).Execute()
17 if err != nil {
18 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetEmailTemplateDefinitions``: %v\n", err)
19 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
20 }
21 // ืชื’ื•ื‘ื” ืž-`GetEmailTemplateDefinitions`: GetEmailTemplateDefinitions200Response
22 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetEmailTemplateDefinitions`: %v\n", resp)
23}
24

ืงื‘ืœ ืฉื’ื™ืื•ืช ืจื™ื ื“ื•ืจ ืฉืœ ืชื‘ื ื™ื•ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query Yes
id string path Yes
skip number query No

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetEmailTemplateRenderErrors200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetEmailTemplateRenderErrors
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.GetEmailTemplateRenderErrors(context.Background(), id).TenantId(tenantId).Skip(skip).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetEmailTemplateRenderErrors``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืžึพ`GetEmailTemplateRenderErrors`: GetEmailTemplateRenderErrors200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetEmailTemplateRenderErrors`: %v\n", resp)
25}
26

ืงื‘ืœ ืชื‘ื ื™ื•ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetEmailTemplates200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetEmailTemplates
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetEmailTemplates(context.Background()).TenantId(tenantId).Skip(skip).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetEmailTemplates``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetEmailTemplates`: GetEmailTemplates200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetEmailTemplates`: %v\n", resp)
24}
25

ืจื ื“ืจ ืชื‘ื ื™ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
locale string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: RenderEmailTemplate200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช RenderEmailTemplate
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 renderEmailTemplateBody := *openapiclient.NewRenderEmailTemplateBody("EmailTemplateId_example", "Ejs_example") // RenderEmailTemplateBody |
14 locale := "locale_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.RenderEmailTemplate(context.Background()).TenantId(tenantId).RenderEmailTemplateBody(renderEmailTemplateBody).Locale(locale).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.RenderEmailTemplate``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืžึพ`RenderEmailTemplate`: RenderEmailTemplate200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.RenderEmailTemplate`: %v\n", resp)
25}
26

ืขื“ื›ืŸ ืชื‘ื ื™ืช ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UpdateEmailTemplate
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 updateEmailTemplateBody := *openapiclient.NewUpdateEmailTemplateBody() // UpdateEmailTemplateBody |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.UpdateEmailTemplate(context.Background(), id).TenantId(tenantId).UpdateEmailTemplateBody(updateEmailTemplateBody).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateEmailTemplate``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`UpdateEmailTemplate`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateEmailTemplate`: %v\n", resp)
25}
26

ืงื‘ืœ ื™ื•ืžืŸ ืื™ืจื•ืขื™ื Internal Link

req tenantId urlId userIdWS

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string path ื›ืŸ
urlId string query ื›ืŸ
userIdWS string query ื›ืŸ
startTime integer query ื›ืŸ
endTime integer query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetEventLog200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetEventLog
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 urlId := "urlId_example" // string |
14 userIdWS := "userIdWS_example" // string |
15 startTime := int64(789) // int64 |
16 endTime := int64(789) // int64 |
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.PublicAPI.GetEventLog(context.Background(), tenantId).UrlId(urlId).UserIdWS(userIdWS).StartTime(startTime).EndTime(endTime).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetEventLog``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // ืชื’ื•ื‘ื” ืž-`GetEventLog`: GetEventLog200Response
26 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetEventLog`: %v\n", resp)
27}
28

ืงื‘ืœ ื™ื•ืžืŸ ืื™ืจื•ืขื™ื ื’ืœื•ื‘ืœื™ Internal Link

req tenantId urlId userIdWS

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
urlId string query ื›ืŸ
userIdWS string query ื›ืŸ
startTime integer query ื›ืŸ
endTime integer query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetEventLog200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetGlobalEventLog
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 urlId := "urlId_example" // string |
14 userIdWS := "userIdWS_example" // string |
15 startTime := int64(789) // int64 |
16 endTime := int64(789) // int64 |
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.PublicAPI.GetGlobalEventLog(context.Background(), tenantId).UrlId(urlId).UserIdWS(userIdWS).StartTime(startTime).EndTime(endTime).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetGlobalEventLog``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // ืชื’ื•ื‘ื” ืž-`GetGlobalEventLog`: GetEventLog200Response
26 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetGlobalEventLog`: %v\n", resp)
27}
28

ืฆื•ืจ ืคื•ืกื˜ ื‘ืคื™ื“ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
broadcastId string query ืœื
isLive boolean query ืœื
doSpamCheck boolean query ืœื
skipDupCheck boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateFeedPost200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-CreateFeedPost
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createFeedPostParams := *openapiclient.NewCreateFeedPostParams() // CreateFeedPostParams |
14 broadcastId := "broadcastId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 isLive := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
16 doSpamCheck := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
17 skipDupCheck := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.DefaultAPI.CreateFeedPost(context.Background()).TenantId(tenantId).CreateFeedPostParams(createFeedPostParams).BroadcastId(broadcastId).IsLive(isLive).DoSpamCheck(doSpamCheck).SkipDupCheck(skipDupCheck).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateFeedPost``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // ืชื’ื•ื‘ื” ืž- `CreateFeedPost`: CreateFeedPost200Response
27 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateFeedPost`: %v\n", resp)
28}
29

ืฆื•ืจ ืคื•ืกื˜ ื‘ืคื™ื“ (ืฆื™ื‘ื•ืจื™) Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
broadcastId string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateFeedPostPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืฉืœ CreateFeedPostPublic
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createFeedPostParams := *openapiclient.NewCreateFeedPostParams() // CreateFeedPostParams |
14 broadcastId := "broadcastId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.CreateFeedPostPublic(context.Background(), tenantId).CreateFeedPostParams(createFeedPostParams).BroadcastId(broadcastId).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.CreateFeedPostPublic``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž `CreateFeedPostPublic`: CreateFeedPostPublic200Response
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.CreateFeedPostPublic`: %v\n", resp)
26}
27

ืžื—ืง ืคื•ืกื˜ ื‘ืคื™ื“ (ืฆื™ื‘ื•ืจื™) Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string path ื›ืŸ
postId string path ื›ืŸ
broadcastId string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteFeedPostPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืฉืœ DeleteFeedPostPublic
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 postId := "postId_example" // string |
14 broadcastId := "broadcastId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.DeleteFeedPostPublic(context.Background(), tenantId, postId).BroadcastId(broadcastId).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.DeleteFeedPostPublic``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืžึพ`DeleteFeedPostPublic`: DeleteFeedPostPublic200Response
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteFeedPostPublic`: %v\n", resp)
26}
27

ืงื‘ืœ ืคื•ืกื˜ื™ื ื‘ืคื™ื“ Internal Link

req tenantId afterId

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
afterId string query ืœื
limit integer query ืœื
tags array query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetFeedPosts200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetFeedPosts
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 afterId := "afterId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14 limit := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
15 tags := []string{"Inner_example"} // []string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.GetFeedPosts(context.Background()).TenantId(tenantId).AfterId(afterId).Limit(limit).Tags(tags).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetFeedPosts``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // response from `GetFeedPosts`: GetFeedPosts200Response
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetFeedPosts`: %v\n", resp)
26}
27

ืงื‘ืœ ืคื•ืกื˜ื™ื ื‘ืคื™ื“ (ืฆื™ื‘ื•ืจื™ื™ื) Internal Link

req tenantId afterId

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
afterId string query ืœื
limit integer query ืœื
tags array query ืœื
sso string query ืœื
isCrawler boolean query ืœื
includeUserInfo boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetFeedPostsPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetFeedPostsPublic
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 afterId := "afterId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14 limit := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
15 tags := []string{"Inner_example"} // []string | (ืื•ืคืฆื™ื•ื ืœื™)
16 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17 isCrawler := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
18 includeUserInfo := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
19
20 configuration := openapiclient.NewConfiguration()
21 apiClient := openapiclient.NewAPIClient(configuration)
22 resp, r, err := apiClient.PublicAPI.GetFeedPostsPublic(context.Background(), tenantId).AfterId(afterId).Limit(limit).Tags(tags).Sso(sso).IsCrawler(isCrawler).IncludeUserInfo(includeUserInfo).Execute()
23 if err != nil {
24 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetFeedPostsPublic``: %v\n", err)
25 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
26 }
27 // ืชื’ื•ื‘ื” ืž-`GetFeedPostsPublic`: GetFeedPostsPublic200Response
28 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetFeedPostsPublic`: %v\n", resp)
29}
30

ืงื‘ืœ ืกื˜ื˜ื™ืกื˜ื™ืงื•ืช ืคื•ืกื˜ื™ื ื‘ืคื™ื“ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string ื ืชื™ื‘ ื›ืŸ
postIds array ืฉืื™ืœืชื” ื›ืŸ
sso string ืฉืื™ืœืชื” ืœื

ืชืฉื•ื‘ื”

ืžื—ื–ื™ืจ: GetFeedPostsStats200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetFeedPostsStats
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 postIds := []string{"Inner_example"} // []string |
14 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.PublicAPI.GetFeedPostsStats(context.Background(), tenantId).PostIds(postIds).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetFeedPostsStats``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชืฉื•ื‘ื” ืž-`GetFeedPostsStats`: GetFeedPostsStats200Response
24 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetFeedPostsStats`: %v\n", resp)
25}
26

ืงื‘ืœ ืจื™ืืงืฆื™ื•ืช ืžืฉืชืžืฉ (ืฆื™ื‘ื•ืจื™ื•ืช) Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
postIds array query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserReactsPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetUserReactsPublic
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 postIds := []string{"Inner_example"} // []string | (ืื•ืคืฆื™ื•ื ืœื™)
14 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.PublicAPI.GetUserReactsPublic(context.Background(), tenantId).PostIds(postIds).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUserReactsPublic``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`GetUserReactsPublic`: GetUserReactsPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserReactsPublic`: %v\n", resp)
25}
26

ืขืฉื” ืจื™ืืงืฆื™ื” ืœืคื•ืกื˜ ื‘ืคื™ื“ (ืฆื™ื‘ื•ืจื™) Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
postId string path ื›ืŸ
isUndo boolean query ืœื
broadcastId string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: ReactFeedPostPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืฉืœ ReactFeedPostPublic
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 postId := "postId_example" // string |
14 reactBodyParams := *openapiclient.NewReactBodyParams() // ReactBodyParams |
15 isUndo := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
16 broadcastId := "broadcastId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.PublicAPI.ReactFeedPostPublic(context.Background(), tenantId, postId).ReactBodyParams(reactBodyParams).IsUndo(isUndo).BroadcastId(broadcastId).Sso(sso).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.ReactFeedPostPublic``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // response from `ReactFeedPostPublic`: ReactFeedPostPublic200Response
27 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.ReactFeedPostPublic`: %v\n", resp)
28}
29

ืขื“ื›ืŸ ืคื•ืกื˜ ื‘ืคื™ื“ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UpdateFeedPost
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 "time"
9 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
10)
11
12func main() {
13 tenantId := "tenantId_example" // string |
14 id := "id_example" // string |
15 feedPost := *openapiclient.NewFeedPost("Id_example", "TenantId_example", time.Now()) // FeedPost |
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.UpdateFeedPost(context.Background(), id).TenantId(tenantId).FeedPost(feedPost).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateFeedPost``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`UpdateFeedPost`: FlagCommentPublic200Response
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateFeedPost`: %v\n", resp)
26}
27

ืขื“ื›ืŸ ืคื•ืกื˜ ื‘ืคื™ื“ (ืฆื™ื‘ื•ืจื™) Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
postId string path ื›ืŸ
broadcastId string query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateFeedPostPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UpdateFeedPostPublic
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 postId := "postId_example" // string |
14 updateFeedPostParams := *openapiclient.NewUpdateFeedPostParams() // UpdateFeedPostParams |
15 broadcastId := "broadcastId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.PublicAPI.UpdateFeedPostPublic(context.Background(), tenantId, postId).UpdateFeedPostParams(updateFeedPostParams).BroadcastId(broadcastId).Sso(sso).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UpdateFeedPostPublic``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // response from `UpdateFeedPostPublic`: CreateFeedPostPublic200Response
26 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UpdateFeedPostPublic`: %v\n", resp)
27}
28

ื“ื•ื•ื— ืขืœ ืชื’ื•ื‘ื” (ืฆื™ื‘ื•ืจื™ืช) Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
commentId string path ื›ืŸ
isFlagged boolean query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช FlagCommentPublic
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string |
14 isFlagged := true // bool |
15 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.FlagCommentPublic(context.Background(), commentId).TenantId(tenantId).IsFlagged(isFlagged).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.FlagCommentPublic``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`FlagCommentPublic`: FlagCommentPublic200Response
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.FlagCommentPublic`: %v\n", resp)
26}
27

ื”ื•ืกืฃ ืชื’ื™ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query No

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: AddHashTag200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-AddHashTag
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
13 createHashTagBody := *openapiclient.NewCreateHashTagBody("Tag_example") // CreateHashTagBody | (ืื•ืคืฆื™ื•ื ืœื™)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.AddHashTag(context.Background()).TenantId(tenantId).CreateHashTagBody(createHashTagBody).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AddHashTag``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชืฉื•ื‘ื” ืž-`AddHashTag`: AddHashTag200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AddHashTag`: %v\n", resp)
24}
25

ื”ื•ืกืฃ ืชื’ื™ื•ืช ื‘ื›ืžื•ืช ื’ื“ื•ืœื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query No

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: AddHashTagsBulk200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-AddHashTagsBulk
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
13 bulkCreateHashTagsBody := *openapiclient.NewBulkCreateHashTagsBody([]openapiclient.BulkCreateHashTagsBodyTagsInner{*openapiclient.NewBulkCreateHashTagsBodyTagsInner("Tag_example")}) // BulkCreateHashTagsBody | (ืื•ืคืฆื™ื•ื ืœื™)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.AddHashTagsBulk(context.Background()).TenantId(tenantId).BulkCreateHashTagsBody(bulkCreateHashTagsBody).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AddHashTagsBulk``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`AddHashTagsBulk`: AddHashTagsBulk200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AddHashTagsBulk`: %v\n", resp)
24}
25

ืžื—ืง ืชื’ื™ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tag string path ื›ืŸ
tenantId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœึพDeleteHashTag
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tag := "tag_example" // string |
13 tenantId := "tenantId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14 deleteHashTagRequest := *openapiclient.NewDeleteHashTagRequest() // DeleteHashTagRequest | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.DeleteHashTag(context.Background(), tag).TenantId(tenantId).DeleteHashTagRequest(deleteHashTagRequest).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteHashTag``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืžึพ`DeleteHashTag`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteHashTag`: %v\n", resp)
25}
26

ืงื‘ืœ ืชื’ื™ื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
page number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetHashTags200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช GetHashTags
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 page := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetHashTags(context.Background()).TenantId(tenantId).Page(page).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetHashTags``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetHashTags`: GetHashTags200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetHashTags`: %v\n", resp)
24}
25

ืขื“ื›ืŸ ื—ืœืงื™ืช ืชื’ื™ืช Internal Link


ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tag string path ื›ืŸ
tenantId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: PatchHashTag200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-PatchHashTag
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tag := "tag_example" // string |
13 tenantId := "tenantId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14 updateHashTagBody := *openapiclient.NewUpdateHashTagBody() // UpdateHashTagBody | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.PatchHashTag(context.Background(), tag).TenantId(tenantId).UpdateHashTagBody(updateHashTagBody).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.PatchHashTag``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // response from `PatchHashTag`: PatchHashTag200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PatchHashTag`: %v\n", resp)
25}
26

ืฆื•ืจ ืžื•ื“ืจื˜ื•ืจ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateModerator200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-CreateModerator
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createModeratorBody := *openapiclient.NewCreateModeratorBody("Name_example", "Email_example") // CreateModeratorBody |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.CreateModerator(context.Background()).TenantId(tenantId).CreateModeratorBody(createModeratorBody).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateModerator``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`CreateModerator`: CreateModerator200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateModerator`: %v\n", resp)
24}
25

ืžื—ืง ืžื•ื“ืจื˜ื•ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query Yes
id string path Yes
sendEmail string query No

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteModerator
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 sendEmail := "sendEmail_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.DeleteModerator(context.Background(), id).TenantId(tenantId).SendEmail(sendEmail).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteModerator``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž- `DeleteModerator`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteModerator`: %v\n", resp)
25}
26

ืงื‘ืœ ืžื•ื“ืจื˜ื•ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetModerator200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช GetModerator
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetModerator(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetModerator``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetModerator`: GetModerator200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetModerator`: %v\n", resp)
24}
25

ืงื‘ืœ ืžื•ื“ืจื˜ื•ืจื™ื Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetModerators200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetModerators
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetModerators(context.Background()).TenantId(tenantId).Skip(skip).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetModerators``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetModerators`: GetModerators200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetModerators`: %v\n", resp)
24}
25

ืฉืœื— ื”ื–ืžื ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
fromName string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช SendInvite
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 fromName := "fromName_example" // string |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.SendInvite(context.Background(), id).TenantId(tenantId).FromName(fromName).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.SendInvite``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืžึพ`SendInvite`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.SendInvite`: %v\n", resp)
25}
26

ืขื“ื›ืŸ ืžื•ื“ืจื˜ื•ืจ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœึพUpdateModerator
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 updateModeratorBody := *openapiclient.NewUpdateModeratorBody() // UpdateModeratorBody |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.UpdateModerator(context.Background(), id).TenantId(tenantId).UpdateModeratorBody(updateModeratorBody).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateModerator``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืžึพ`UpdateModerator`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateModerator`: %v\n", resp)
25}
26

ืžื—ืง ืกืคื™ืจืช ื”ืชืจืื•ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืขื‘ื•ืจ DeleteNotificationCount
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
13 id := "id_example" // ืžื—ืจื•ื–ืช |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.DeleteNotificationCount(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteNotificationCount``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`DeleteNotificationCount`: FlagCommentPublic200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteNotificationCount`: %v\n", resp)
24}
25

ืงื‘ืœ ืกืคื™ืจืช ื”ืชืจืื•ืช ื‘ืžื˜ืžื•ืŸ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetCachedNotificationCount200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetCachedNotificationCount
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetCachedNotificationCount(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetCachedNotificationCount``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetCachedNotificationCount`: GetCachedNotificationCount200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetCachedNotificationCount`: %v\n", resp)
24}
25

ืงื‘ืœ ืกืคื™ืจืช ื”ืชืจืื•ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื Type ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
userId string query ืœื
urlId string query ืœื
fromCommentId string query ืœื
viewed boolean query ืœื
type string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetNotificationCount200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetNotificationCount
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14 urlId := "urlId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 fromCommentId := "fromCommentId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16 viewed := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
17 type_ := "type__example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.DefaultAPI.GetNotificationCount(context.Background()).TenantId(tenantId).UserId(userId).UrlId(urlId).FromCommentId(fromCommentId).Viewed(viewed).Type_(type_).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetNotificationCount``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // ืชื’ื•ื‘ื” ืžึพ`GetNotificationCount`: GetNotificationCount200Response
27 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetNotificationCount`: %v\n", resp)
28}
29

ืงื‘ืœ ื”ืชืจืื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
userId string query ืœื
urlId string query ืœื
fromCommentId string query ืœื
viewed boolean query ืœื
type string query ืœื
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetNotifications200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetNotifications
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14 urlId := "urlId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 fromCommentId := "fromCommentId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16 viewed := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
17 type_ := "type__example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
18 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
19
20 configuration := openapiclient.NewConfiguration()
21 apiClient := openapiclient.NewAPIClient(configuration)
22 resp, r, err := apiClient.DefaultAPI.GetNotifications(context.Background()).TenantId(tenantId).UserId(userId).UrlId(urlId).FromCommentId(fromCommentId).Viewed(viewed).Type_(type_).Skip(skip).Execute()
23 if err != nil {
24 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetNotifications``: %v\n", err)
25 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
26 }
27 // ืชื’ื•ื‘ื” ืžึพ`GetNotifications`: GetNotifications200Response
28 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetNotifications`: %v\n", resp)
29}
30

ืขื“ื›ืŸ ื”ืชืจืื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
userId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช UpdateNotification
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 updateNotificationBody := *openapiclient.NewUpdateNotificationBody() // UpdateNotificationBody |
15 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.UpdateNotification(context.Background(), id).TenantId(tenantId).UpdateNotificationBody(updateNotificationBody).UserId(userId).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateNotification``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืžึพ`UpdateNotification`: FlagCommentPublic200Response
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateNotification`: %v\n", resp)
26}
27

ื”ื•ืกืฃ ื“ืฃ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: AddPageAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช AddPage
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createAPIPageData := *openapiclient.NewCreateAPIPageData("Title_example", "Url_example", "UrlId_example") // CreateAPIPageData |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.AddPage(context.Background()).TenantId(tenantId).CreateAPIPageData(createAPIPageData).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AddPage``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`AddPage`: AddPageAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AddPage`: %v\n", resp)
24}
25

ืžื—ืง ื“ืฃ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeletePageAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeletePage
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
13 id := "id_example" // ืžื—ืจื•ื–ืช |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.DeletePage(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeletePage``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`DeletePage`: DeletePageAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeletePage`: %v\n", resp)
24}
25

ืงื‘ืœ ื“ืฃ ืœืคื™ ืžื–ื”ื” URL Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
urlId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetPageByURLIdAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetPageByURLId
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 urlId := "urlId_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetPageByURLId(context.Background()).TenantId(tenantId).UrlId(urlId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetPageByURLId``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetPageByURLId`: GetPageByURLIdAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetPageByURLId`: %v\n", resp)
24}
25

ืงื‘ืœ ื“ืคื™ื Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetPagesAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetPages
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
13
14 configuration := openapiclient.NewConfiguration()
15 apiClient := openapiclient.NewAPIClient(configuration)
16 resp, r, err := apiClient.DefaultAPI.GetPages(context.Background()).TenantId(tenantId).Execute()
17 if err != nil {
18 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetPages``: %v\n", err)
19 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
20 }
21 // ืชื’ื•ื‘ื” ืž-`GetPages`: GetPagesAPIResponse
22 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetPages`: %v\n", resp)
23}
24

ืขื“ื›ืŸ ื—ืœืงื™ืช ื“ืฃ Internal Link


ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: PatchPageAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-PatchPage
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 updateAPIPageData := *openapiclient.NewUpdateAPIPageData() // UpdateAPIPageData |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.PatchPage(context.Background(), id).TenantId(tenantId).UpdateAPIPageData(updateAPIPageData).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.PatchPage``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // response from `PatchPage`: PatchPageAPIResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PatchPage`: %v\n", resp)
25}
26

ืžื—ืง ืื™ืจื•ืข ื•ื•ื‘ึพื”ื•ืง ื‘ื”ืžืชื ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื Type Location ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeletePendingWebhookEvent
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.DeletePendingWebhookEvent(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeletePendingWebhookEvent``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`DeletePendingWebhookEvent`: FlagCommentPublic200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeletePendingWebhookEvent`: %v\n", resp)
24}
25

ืงื‘ืœ ืกืคื™ืจืช ืื™ืจื•ืขื™ ื•ื•ื‘ึพื”ื•ืง ื‘ื”ืžืชื ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
commentId string query ืœื
externalId string query ืœื
eventType string query ืœื
type string query ืœื
domain string query ืœื
attemptCountGT number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetPendingWebhookEventCount200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetPendingWebhookEventCount
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14 externalId := "externalId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 eventType := "eventType_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16 type_ := "type__example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17 domain := "domain_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
18 attemptCountGT := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
19
20 configuration := openapiclient.NewConfiguration()
21 apiClient := openapiclient.NewAPIClient(configuration)
22 resp, r, err := apiClient.DefaultAPI.GetPendingWebhookEventCount(context.Background()).TenantId(tenantId).CommentId(commentId).ExternalId(externalId).EventType(eventType).Type_(type_).Domain(domain).AttemptCountGT(attemptCountGT).Execute()
23 if err != nil {
24 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetPendingWebhookEventCount``: %v\n", err)
25 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
26 }
27 // ืชื’ื•ื‘ื” ืž-`GetPendingWebhookEventCount`: GetPendingWebhookEventCount200Response
28 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetPendingWebhookEventCount`: %v\n", resp)
29}
30

ืงื‘ืœ ืื™ืจื•ืขื™ ื•ื•ื‘ึพื”ื•ืง ื‘ื”ืžืชื ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ
commentId string query ืœื
externalId string query ืœื
eventType string query ืœื
type string query ืœื
domain string query ืœื
attemptCountGT number query ืœื
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetPendingWebhookEvents200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetPendingWebhookEvents
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 commentId := "commentId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14 externalId := "externalId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 eventType := "eventType_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16 type_ := "type__example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17 domain := "domain_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
18 attemptCountGT := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
19 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
20
21 configuration := openapiclient.NewConfiguration()
22 apiClient := openapiclient.NewAPIClient(configuration)
23 resp, r, err := apiClient.DefaultAPI.GetPendingWebhookEvents(context.Background()).TenantId(tenantId).CommentId(commentId).ExternalId(externalId).EventType(eventType).Type_(type_).Domain(domain).AttemptCountGT(attemptCountGT).Skip(skip).Execute()
24 if err != nil {
25 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetPendingWebhookEvents``: %v\n", err)
26 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
27 }
28 // ืชื’ื•ื‘ื” ืžึพ`GetPendingWebhookEvents`: GetPendingWebhookEvents200Response
29 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetPendingWebhookEvents`: %v\n", resp)
30}
31

ืฆื•ืจ ืชืฆื•ืจืช ืฉืืœื” Internal Link


ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateQuestionConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-CreateQuestionConfig
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createQuestionConfigBody := *openapiclient.NewCreateQuestionConfigBody("Name_example", "Question_example", "Type_example", float64(123)) // CreateQuestionConfigBody |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.CreateQuestionConfig(context.Background()).TenantId(tenantId).CreateQuestionConfigBody(createQuestionConfigBody).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateQuestionConfig``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`CreateQuestionConfig`: CreateQuestionConfig200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateQuestionConfig`: %v\n", resp)
24}
25

ืžื—ืง ืชืฆื•ืจืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteQuestionConfig
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.DeleteQuestionConfig(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteQuestionConfig``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`DeleteQuestionConfig`: FlagCommentPublic200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteQuestionConfig`: %v\n", resp)
24}
25

ืงื‘ืœ ืชืฆื•ืจืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetQuestionConfig200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetQuestionConfig
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetQuestionConfig(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetQuestionConfig``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืžึพ`GetQuestionConfig`: GetQuestionConfig200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetQuestionConfig`: %v\n", resp)
24}
25

ืงื‘ืœ ืชืฆื•ืจื•ืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetQuestionConfigs200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetQuestionConfigs
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetQuestionConfigs(context.Background()).TenantId(tenantId).Skip(skip).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetQuestionConfigs``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetQuestionConfigs`: GetQuestionConfigs200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetQuestionConfigs`: %v\n", resp)
24}
25

ืขื“ื›ืŸ ืชืฆื•ืจืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UpdateQuestionConfig
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
13 id := "id_example" // ืžื—ืจื•ื–ืช |
14 updateQuestionConfigBody := *openapiclient.NewUpdateQuestionConfigBody() // UpdateQuestionConfigBody |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.UpdateQuestionConfig(context.Background(), id).TenantId(tenantId).UpdateQuestionConfigBody(updateQuestionConfigBody).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateQuestionConfig``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`UpdateQuestionConfig`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateQuestionConfig`: %v\n", resp)
25}
26

ืฆื•ืจ ืชื•ืฆืืช ืฉืืœื” Internal Link


ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateQuestionResult200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืฉืœ CreateQuestionResult
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createQuestionResultBody := *openapiclient.NewCreateQuestionResultBody("UrlId_example", float64(123), "QuestionId_example") // CreateQuestionResultBody |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.CreateQuestionResult(context.Background()).TenantId(tenantId).CreateQuestionResultBody(createQuestionResultBody).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateQuestionResult``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`CreateQuestionResult`: CreateQuestionResult200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateQuestionResult`: %v\n", resp)
24}
25

ืžื—ืง ืชื•ืฆืืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœึพDeleteQuestionResult
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
13 id := "id_example" // ืžื—ืจื•ื–ืช |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.DeleteQuestionResult(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteQuestionResult``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž`DeleteQuestionResult`: FlagCommentPublic200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteQuestionResult`: %v\n", resp)
24}
25

ืงื‘ืœ ืชื•ืฆืืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetQuestionResult200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetQuestionResult
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetQuestionResult(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetQuestionResult``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetQuestionResult`: GetQuestionResult200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetQuestionResult`: %v\n", resp)
24}
25

ืงื‘ืœ ืชื•ืฆืื•ืช ืฉืืœื•ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
urlId string query ืœื
userId string query ืœื
startDate string query ืœื
questionId string query ืœื
questionIds string query ืœื
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetQuestionResults200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช GetQuestionResults
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 urlId := "urlId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 startDate := "startDate_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16 questionId := "questionId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17 questionIds := "questionIds_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
18 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
19
20 configuration := openapiclient.NewConfiguration()
21 apiClient := openapiclient.NewAPIClient(configuration)
22 resp, r, err := apiClient.DefaultAPI.GetQuestionResults(context.Background()).TenantId(tenantId).UrlId(urlId).UserId(userId).StartDate(startDate).QuestionId(questionId).QuestionIds(questionIds).Skip(skip).Execute()
23 if err != nil {
24 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetQuestionResults``: %v\n", err)
25 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
26 }
27 // ืชื’ื•ื‘ื” ืž-`GetQuestionResults`: GetQuestionResults200Response
28 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetQuestionResults`: %v\n", resp)
29}
30

ืขื“ื›ืŸ ืชื•ืฆืืช ืฉืืœื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืฉืœ UpdateQuestionResult
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 updateQuestionResultBody := *openapiclient.NewUpdateQuestionResultBody() // UpdateQuestionResultBody |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.UpdateQuestionResult(context.Background(), id).TenantId(tenantId).UpdateQuestionResultBody(updateQuestionResultBody).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateQuestionResult``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`UpdateQuestionResult`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateQuestionResult`: %v\n", resp)
25}
26

ืื’ื“ ืชื•ืฆืื•ืช ืฉืืœื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
questionId string query ืœื
questionIds array query ืœื
urlId string query ืœื
timeBucket string query ืœื
startDate string query ืœื
forceRecalculate boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: AggregateQuestionResults200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-AggregateQuestionResults
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 "time"
9 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
10)
11
12func main() {
13 tenantId := "tenantId_example" // string |
14 questionId := "questionId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 questionIds := []string{"Inner_example"} // []string | (ืื•ืคืฆื™ื•ื ืœื™)
16 urlId := "urlId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17 timeBucket := openapiclient.AggregateTimeBucket("day") // AggregateTimeBucket | (ืื•ืคืฆื™ื•ื ืœื™)
18 startDate := time.Now() // time.Time | (ืื•ืคืฆื™ื•ื ืœื™)
19 forceRecalculate := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
20
21 configuration := openapiclient.NewConfiguration()
22 apiClient := openapiclient.NewAPIClient(configuration)
23 resp, r, err := apiClient.DefaultAPI.AggregateQuestionResults(context.Background()).TenantId(tenantId).QuestionId(questionId).QuestionIds(questionIds).UrlId(urlId).TimeBucket(timeBucket).StartDate(startDate).ForceRecalculate(forceRecalculate).Execute()
24 if err != nil {
25 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AggregateQuestionResults``: %v\n", err)
26 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
27 }
28 // ืชื’ื•ื‘ื” ืž-`AggregateQuestionResults`: AggregateQuestionResults200Response
29 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AggregateQuestionResults`: %v\n", resp)
30}
31

ืื’ืจื’ืฆื™ื” ื”ืžื•ื ื™ืช ืฉืœ ืชื•ืฆืื•ืช ืฉืืœื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
forceRecalculate boolean query ืœื

ืชืฉื•ื‘ื”

ืžื—ื–ื™ืจ: BulkAggregateQuestionResults200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-BulkAggregateQuestionResults
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 bulkAggregateQuestionResultsRequest := *openapiclient.NewBulkAggregateQuestionResultsRequest([]openapiclient.BulkAggregateQuestionItem{*openapiclient.NewBulkAggregateQuestionItem("AggId_example")}) // BulkAggregateQuestionResultsRequest |
14 forceRecalculate := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.BulkAggregateQuestionResults(context.Background()).TenantId(tenantId).BulkAggregateQuestionResultsRequest(bulkAggregateQuestionResultsRequest).ForceRecalculate(forceRecalculate).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.BulkAggregateQuestionResults``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž- `BulkAggregateQuestionResults`: BulkAggregateQuestionResults200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.BulkAggregateQuestionResults`: %v\n", resp)
25}
26

ืฉืœื‘ ืชื’ื•ื‘ื•ืช ืขื ืชื•ืฆืื•ืช ืฉืืœื•ืช Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
questionId string query ืœื
questionIds array query ืœื
urlId string query ืœื
startDate string query ืœื
forceRecalculate boolean query ืœื
minValue number query ืœื
maxValue number query ืœื
limit number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CombineCommentsWithQuestionResults200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช CombineCommentsWithQuestionResults
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 "time"
9 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
10)
11
12func main() {
13 tenantId := "tenantId_example" // string |
14 questionId := "questionId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 questionIds := []string{"Inner_example"} // []string | (ืื•ืคืฆื™ื•ื ืœื™)
16 urlId := "urlId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17 startDate := time.Now() // time.Time | (ืื•ืคืฆื™ื•ื ืœื™)
18 forceRecalculate := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
19 minValue := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
20 maxValue := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
21 limit := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
22
23 configuration := openapiclient.NewConfiguration()
24 apiClient := openapiclient.NewAPIClient(configuration)
25 resp, r, err := apiClient.DefaultAPI.CombineCommentsWithQuestionResults(context.Background()).TenantId(tenantId).QuestionId(questionId).QuestionIds(questionIds).UrlId(urlId).StartDate(startDate).ForceRecalculate(forceRecalculate).MinValue(minValue).MaxValue(maxValue).Limit(limit).Execute()
26 if err != nil {
27 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CombineCommentsWithQuestionResults``: %v\n", err)
28 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
29 }
30 // ืชืฉื•ื‘ื” ืž-`CombineCommentsWithQuestionResults`: CombineCommentsWithQuestionResults200Response
31 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CombineCommentsWithQuestionResults`: %v\n", resp)
32}
33

ื”ื•ืกืฃ ืžืฉืชืžืฉ SSO Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: AddSSOUserAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-AddSSOUser
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createAPISSOUserData := *openapiclient.NewCreateAPISSOUserData("Email_example", "Username_example", "Id_example") // CreateAPISSOUserData |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.AddSSOUser(context.Background()).TenantId(tenantId).CreateAPISSOUserData(createAPISSOUserData).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AddSSOUser``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`AddSSOUser`: AddSSOUserAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AddSSOUser`: %v\n", resp)
24}
25

ืžื—ืง ืžืฉืชืžืฉ SSO Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
deleteComments boolean query ืœื
commentDeleteMode string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteSSOUserAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteSSOUser
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 deleteComments := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
15 commentDeleteMode := "commentDeleteMode_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.DeleteSSOUser(context.Background(), id).TenantId(tenantId).DeleteComments(deleteComments).CommentDeleteMode(commentDeleteMode).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteSSOUser``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`DeleteSSOUser`: DeleteSSOUserAPIResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteSSOUser`: %v\n", resp)
26}
27

ืงื‘ืœ ืžืฉืชืžืฉ SSO ืœืคื™ ืื™ืžื™ื™ืœ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ
email string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetSSOUserByEmailAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetSSOUserByEmail
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 email := "email_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetSSOUserByEmail(context.Background(), email).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetSSOUserByEmail``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // response from `GetSSOUserByEmail`: GetSSOUserByEmailAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetSSOUserByEmail`: %v\n", resp)
24}
25

ืงื‘ืœ ืžืฉืชืžืฉ SSO ืœืคื™ ืžื–ื”ื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetSSOUserByIdAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetSSOUserById
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetSSOUserById(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetSSOUserById``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืžึพ`GetSSOUserById`: GetSSOUserByIdAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetSSOUserById`: %v\n", resp)
24}
25

ืงื‘ืœ ืžืฉืชืžืฉื™ SSO Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
skip integer query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetSSOUsers200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetSSOUsers
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 skip := int32(56) // int32 | (ืœื ื—ื•ื‘ื”)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetSSOUsers(context.Background()).TenantId(tenantId).Skip(skip).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetSSOUsers``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืžึพ`GetSSOUsers`: GetSSOUsers200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetSSOUsers`: %v\n", resp)
24}
25

ืขื“ื›ืŸ ื—ืœืงื™ืช ืžืฉืชืžืฉ SSO Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
updateComments boolean query ืœื

ืชืฉื•ื‘ื”

ืžื•ื—ื–ืจ: PatchSSOUserAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-PatchSSOUser
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 updateAPISSOUserData := *openapiclient.NewUpdateAPISSOUserData() // UpdateAPISSOUserData |
15 updateComments := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.PatchSSOUser(context.Background(), id).TenantId(tenantId).UpdateAPISSOUserData(updateAPISSOUserData).UpdateComments(updateComments).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.PatchSSOUser``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`PatchSSOUser`: PatchSSOUserAPIResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PatchSSOUser`: %v\n", resp)
26}
27

ื”ื—ืœืฃ ืžืฉืชืžืฉ SSO Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
updateComments boolean query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: PutSSOUserAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืฉืœ PutSSOUser
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 updateAPISSOUserData := *openapiclient.NewUpdateAPISSOUserData() // UpdateAPISSOUserData |
15 updateComments := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.PutSSOUser(context.Background(), id).TenantId(tenantId).UpdateAPISSOUserData(updateAPISSOUserData).UpdateComments(updateComments).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.PutSSOUser``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`PutSSOUser`: PutSSOUserAPIResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PutSSOUser`: %v\n", resp)
26}
27

ืฆื•ืจ ืžื ื•ื™ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateSubscriptionAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช CreateSubscription
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createAPIUserSubscriptionData := *openapiclient.NewCreateAPIUserSubscriptionData("UrlId_example") // CreateAPIUserSubscriptionData |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.CreateSubscription(context.Background()).TenantId(tenantId).CreateAPIUserSubscriptionData(createAPIUserSubscriptionData).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateSubscription``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // response from `CreateSubscription`: CreateSubscriptionAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateSubscription`: %v\n", resp)
24}
25

ืžื—ืง ืžื ื•ื™ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ Location ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
userId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteSubscriptionAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteSubscription
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.DeleteSubscription(context.Background(), id).TenantId(tenantId).UserId(userId).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteSubscription``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`DeleteSubscription`: DeleteSubscriptionAPIResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteSubscription`: %v\n", resp)
25}
26

ืงื‘ืœ ืžื ื•ื™ื™ื Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
userId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetSubscriptionsAPIResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืฉืœ GetSubscriptions
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetSubscriptions(context.Background()).TenantId(tenantId).UserId(userId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetSubscriptions``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // response from `GetSubscriptions`: GetSubscriptionsAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetSubscriptions`: %v\n", resp)
24}
25

ืงื‘ืœ ืฉื™ืžื•ืฉ ื™ื•ืžื™ ืฉืœ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
yearNumber number query ืœื
monthNumber number query ืœื
dayNumber number query ืœื
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetTenantDailyUsages200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetTenantDailyUsages
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 yearNumber := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
14 monthNumber := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
15 dayNumber := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
16 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.DefaultAPI.GetTenantDailyUsages(context.Background()).TenantId(tenantId).YearNumber(yearNumber).MonthNumber(monthNumber).DayNumber(dayNumber).Skip(skip).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenantDailyUsages``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // ืชื’ื•ื‘ื” ืž-`GetTenantDailyUsages`: GetTenantDailyUsages200Response
26 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantDailyUsages`: %v\n", resp)
27}
28

ืฆื•ืจ ื—ื‘ื™ืœืช ืฉื•ื›ืจ Internal Link


ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query Yes

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateTenantPackage200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืฉืœ CreateTenantPackage
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createTenantPackageBody := *openapiclient.NewCreateTenantPackageBody("Name_example", float64(123), float64(123), float64(123), float64(123), float64(123), float64(123), float64(123), float64(123), false, "ForWhoText_example", []string{"FeatureTaglines_example"}, false) // CreateTenantPackageBody |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.CreateTenantPackage(context.Background()).TenantId(tenantId).CreateTenantPackageBody(createTenantPackageBody).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateTenantPackage``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`CreateTenantPackage`: CreateTenantPackage200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateTenantPackage`: %v\n", resp)
24}
25

ืžื—ืง ื—ื‘ื™ืœืช ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteTenantPackage
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
13 id := "id_example" // ืžื—ืจื•ื–ืช |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.DeleteTenantPackage(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteTenantPackage``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`DeleteTenantPackage`: FlagCommentPublic200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteTenantPackage`: %v\n", resp)
24}
25

ืงื‘ืœ ื—ื‘ื™ืœืช ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

Returns: GetTenantPackage200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช GetTenantPackage
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetTenantPackage(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenantPackage``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetTenantPackage`: GetTenantPackage200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantPackage`: %v\n", resp)
24}
25

ืงื‘ืœ ื—ื‘ื™ืœื•ืช ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetTenantPackages200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetTenantPackages
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetTenantPackages(context.Background()).TenantId(tenantId).Skip(skip).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenantPackages``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetTenantPackages`: GetTenantPackages200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantPackages`: %v\n", resp)
24}
25

ื”ื—ืœืฃ ื—ื‘ื™ืœืช ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืฉืœ ReplaceTenantPackage
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 replaceTenantPackageBody := *openapiclient.NewReplaceTenantPackageBody("Name_example", float64(123), float64(123), float64(123), float64(123), float64(123), float64(123), float64(123), float64(123), float64(123), float64(123), false, "ForWhoText_example", []string{"FeatureTaglines_example"}, false) // ReplaceTenantPackageBody |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.ReplaceTenantPackage(context.Background(), id).TenantId(tenantId).ReplaceTenantPackageBody(replaceTenantPackageBody).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ReplaceTenantPackage``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืžึพ`ReplaceTenantPackage`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ReplaceTenantPackage`: %v\n", resp)
25}
26

ืขื“ื›ืŸ ื—ื‘ื™ืœืช ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UpdateTenantPackage
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 updateTenantPackageBody := *openapiclient.NewUpdateTenantPackageBody() // UpdateTenantPackageBody |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.UpdateTenantPackage(context.Background(), id).TenantId(tenantId).UpdateTenantPackageBody(updateTenantPackageBody).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateTenantPackage``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`UpdateTenantPackage`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateTenantPackage`: %v\n", resp)
25}
26

ืฆื•ืจ ืžืฉืชืžืฉ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateTenantUser200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช CreateTenantUser
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createTenantUserBody := *openapiclient.NewCreateTenantUserBody("Username_example", "Email_example") // CreateTenantUserBody |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.CreateTenantUser(context.Background()).TenantId(tenantId).CreateTenantUserBody(createTenantUserBody).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateTenantUser``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`CreateTenantUser`: CreateTenantUser200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateTenantUser`: %v\n", resp)
24}
25

ืžื—ืง ืžืฉืชืžืฉ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
deleteComments string query ืœื
commentDeleteMode string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteTenantUser
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 deleteComments := "deleteComments_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 commentDeleteMode := "commentDeleteMode_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.DeleteTenantUser(context.Background(), id).TenantId(tenantId).DeleteComments(deleteComments).CommentDeleteMode(commentDeleteMode).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteTenantUser``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`DeleteTenantUser`: FlagCommentPublic200Response
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteTenantUser`: %v\n", resp)
26}
27

ืงื‘ืœ ืžืฉืชืžืฉ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetTenantUser200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetTenantUser
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetTenantUser(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenantUser``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetTenantUser`: GetTenantUser200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantUser`: %v\n", resp)
24}
25

ืงื‘ืœ ืžืฉืชืžืฉื™ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetTenantUsers200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetTenantUsers
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetTenantUsers(context.Background()).TenantId(tenantId).Skip(skip).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenantUsers``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetTenantUsers`: GetTenantUsers200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantUsers`: %v\n", resp)
24}
25

ื”ื—ืœืฃ ืžืฉืชืžืฉ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
updateComments string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-ReplaceTenantUser
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 replaceTenantUserBody := *openapiclient.NewReplaceTenantUserBody("Username_example", "Email_example") // ReplaceTenantUserBody |
15 updateComments := "updateComments_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.ReplaceTenantUser(context.Background(), id).TenantId(tenantId).ReplaceTenantUserBody(replaceTenantUserBody).UpdateComments(updateComments).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ReplaceTenantUser``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืžึพ`ReplaceTenantUser`: FlagCommentPublic200Response
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ReplaceTenantUser`: %v\n", resp)
26}
27

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
redirectURL string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช SendLoginLink
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 redirectURL := "redirectURL_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.SendLoginLink(context.Background(), id).TenantId(tenantId).RedirectURL(redirectURL).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.SendLoginLink``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`SendLoginLink`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.SendLoginLink`: %v\n", resp)
25}
26

ืขื“ื›ืŸ ืžืฉืชืžืฉ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ
updateComments string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UpdateTenantUser
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 updateTenantUserBody := *openapiclient.NewUpdateTenantUserBody() // UpdateTenantUserBody |
15 updateComments := "updateComments_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.UpdateTenantUser(context.Background(), id).TenantId(tenantId).UpdateTenantUserBody(updateTenantUserBody).UpdateComments(updateComments).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateTenantUser``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`UpdateTenantUser`: FlagCommentPublic200Response
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateTenantUser`: %v\n", resp)
26}
27

ืฆื•ืจ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateTenant200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-CreateTenant
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 "time"
9 openapiclient "github.com/fastcomments/fastcomments-go/client"
10)
11
12func main() {
13 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
14 createTenantBody := *openapiclient.NewCreateTenantBody("Name_example", []openapiclient.APIDomainConfiguration{*openapiclient.NewAPIDomainConfiguration("Id_example", "Domain_example", time.Now())}) // CreateTenantBody |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.CreateTenant(context.Background()).TenantId(tenantId).CreateTenantBody(createTenantBody).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateTenant``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`CreateTenant`: CreateTenant200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateTenant`: %v\n", resp)
25}
26

ืžื—ืง ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
sure string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteTenant
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 sure := "sure_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.DeleteTenant(context.Background(), id).TenantId(tenantId).Sure(sure).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteTenant``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`DeleteTenant`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteTenant`: %v\n", resp)
25}
26

ืงื‘ืœ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetTenant200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช GetTenant
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetTenant(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenant``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž- `GetTenant`: GetTenant200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenant`: %v\n", resp)
24}
25

ืงื‘ืœ ืฉื•ื›ืจื™ื Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
meta string query ืœื
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetTenants200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetTenants
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 meta := "meta_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.GetTenants(context.Background()).TenantId(tenantId).Meta(meta).Skip(skip).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenants``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`GetTenants`: GetTenants200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenants`: %v\n", resp)
25}
26

ืขื“ื›ืŸ ืฉื•ื›ืจ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: FlagCommentPublic200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UpdateTenant
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 updateTenantBody := *openapiclient.NewUpdateTenantBody() // UpdateTenantBody |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.UpdateTenant(context.Background(), id).TenantId(tenantId).UpdateTenantBody(updateTenantBody).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateTenant``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`UpdateTenant`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateTenant`: %v\n", resp)
25}
26

ื”ืขืœื” ืชืžื•ื ื” Internal Link

ื”ืขืœืื” ื•ืฉื™ื ื•ื™ ื’ื•ื“ืœ ืฉืœ ืชืžื•ื ื”

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
sizePreset string query ืœื ื”ื’ื“ืจืช ื’ื•ื“ืœ ืžืจืืฉ: "Default" (1000x1000px) ืื• "CrossPlatform" (ื™ื•ืฆืจ ื’ื“ืœื™ื ืœืžื›ืฉื™ืจื™ื ืคื•ืคื•ืœืจื™ื™ื)
urlId string query ืœื ืžื–ื”ื” ื“ืฃ ืฉืžืžื ื• ืžืชื‘ืฆืขืช ื”ื”ืขืœืื”, ืœืฆื•ืจืš ืชืฆื•ืจื”

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UploadImageResponse

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช UploadImage
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 file := os.NewFile(1234, "some_file") // *os.File |
14 sizePreset := openapiclient.SizePreset("Default") // SizePreset | ื”ื’ื“ืจืช ื’ื•ื“ืœ ืžืจืืฉ: \"Default\" (1000x1000px) ืื• \"CrossPlatform\" (ื™ื•ืฆืจ ื’ื“ืœื™ื ืœืžื›ืฉื™ืจื™ื ืคื•ืคื•ืœืจื™ื™ื) (ืื•ืคืฆื™ื•ื ืœื™)
15 urlId := "urlId_example" // string | ืžื–ื”ื” ื”ื“ืฃ ืฉืžืžื ื• ืžืชื‘ืฆืขืช ื”ื”ืขืœืื”, ืœืฆื•ืจืš ืชืฆื•ืจื” (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.UploadImage(context.Background(), tenantId).File(file).SizePreset(sizePreset).UrlId(urlId).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UploadImage``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž`UploadImage`: UploadImageResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UploadImage`: %v\n", resp)
26}
27

ืงื‘ืœ ื”ืชืงื“ืžื•ืช ื”ืชื’ ืฉืœ ืžืฉืชืžืฉ ืœืคื™ ืžื–ื”ื” Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query Yes
id string path Yes

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserBadgeProgressById200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetUserBadgeProgressById
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetUserBadgeProgressById(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetUserBadgeProgressById``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืžึพ`GetUserBadgeProgressById`: GetUserBadgeProgressById200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadgeProgressById`: %v\n", resp)
24}
25

ืงื‘ืœ ื”ืชืงื“ืžื•ืช ืชื’ื™ ืžืฉืชืžืฉ ืœืคื™ ืžื–ื”ื” ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
userId string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserBadgeProgressById200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetUserBadgeProgressByUserId
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 userId := "userId_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetUserBadgeProgressByUserId(context.Background(), userId).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetUserBadgeProgressByUserId``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetUserBadgeProgressByUserId`: GetUserBadgeProgressById200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadgeProgressByUserId`: %v\n", resp)
24}
25

ืงื‘ืœ ืจืฉื™ืžืช ื”ืชืงื“ืžื•ืช ืชื’ื™ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
userId string query ืœื
limit number query ืœื
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserBadgeProgressList200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetUserBadgeProgressList
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14 limit := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
15 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.GetUserBadgeProgressList(context.Background()).TenantId(tenantId).UserId(userId).Limit(limit).Skip(skip).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetUserBadgeProgressList``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`GetUserBadgeProgressList`: GetUserBadgeProgressList200Response
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadgeProgressList`: %v\n", resp)
26}
27

ืฆื•ืจ ืชื’ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: CreateUserBadge200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-CreateUserBadge
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createUserBadgeParams := *openapiclient.NewCreateUserBadgeParams("UserId_example", "BadgeId_example") // CreateUserBadgeParams |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.CreateUserBadge(context.Background()).TenantId(tenantId).CreateUserBadgeParams(createUserBadgeParams).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateUserBadge``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`CreateUserBadge`: CreateUserBadge200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateUserBadge`: %v\n", resp)
24}
25

ืžื—ืง ืชื’ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string ืฉืื™ืœืชื” ื›ืŸ
id string ื ืชื™ื‘ ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UpdateUserBadge200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-DeleteUserBadge
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.DeleteUserBadge(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteUserBadge``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`DeleteUserBadge`: UpdateUserBadge200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteUserBadge`: %v\n", resp)
24}
25

ืงื‘ืœ ืชื’ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserBadge200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetUserBadge
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetUserBadge(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetUserBadge``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetUserBadge`: GetUserBadge200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadge`: %v\n", resp)
24}
25

ืงื‘ืœ ืชื’ื™ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
userId string query ืœื
badgeId string query ืœื
type number query ืœื
displayedOnComments boolean query ืœื
limit number query ืœื
skip number query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserBadges200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetUserBadges
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14 badgeId := "badgeId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 type_ := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
16 displayedOnComments := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
17 limit := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
18 skip := float64(1.2) // float64 | (ืื•ืคืฆื™ื•ื ืœื™)
19
20 configuration := openapiclient.NewConfiguration()
21 apiClient := openapiclient.NewAPIClient(configuration)
22 resp, r, err := apiClient.DefaultAPI.GetUserBadges(context.Background()).TenantId(tenantId).UserId(userId).BadgeId(badgeId).Type_(type_).DisplayedOnComments(displayedOnComments).Limit(limit).Skip(skip).Execute()
23 if err != nil {
24 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetUserBadges``: %v\n", err)
25 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
26 }
27 // ืชื’ื•ื‘ื” ืž-`GetUserBadges`: GetUserBadges200Response
28 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadges`: %v\n", resp)
29}
30

ืขื“ื›ืŸ ืชื’ ืžืฉืชืžืฉ Internal Link


ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UpdateUserBadge200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UpdateUserBadge
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 updateUserBadgeParams := *openapiclient.NewUpdateUserBadgeParams() // UpdateUserBadgeParams |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.UpdateUserBadge(context.Background(), id).TenantId(tenantId).UpdateUserBadgeParams(updateUserBadgeParams).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateUserBadge``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`UpdateUserBadge`: UpdateUserBadge200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateUserBadge`: %v\n", resp)
25}
26

ืงื‘ืœ ืกืคื™ืจืช ื”ืชืจืื•ืช ืฉืœ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserNotificationCount200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช GetUserNotificationCount
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.PublicAPI.GetUserNotificationCount(context.Background()).TenantId(tenantId).Sso(sso).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUserNotificationCount``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืžึพ`GetUserNotificationCount`: GetUserNotificationCount200Response
23 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserNotificationCount`: %v\n", resp)
24}
25

ืงื‘ืœ ื”ืชืจืื•ืช ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
pageSize integer query ืœื
afterId string query ืœื
includeContext boolean query ืœื
afterCreatedAt integer query ืœื
unreadOnly boolean query ืœื
dmOnly boolean query ืœื
noDm boolean query ืœื
includeTranslations boolean query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserNotifications200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetUserNotifications
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 pageSize := int32(56) // int32 | (ืื•ืคืฆื™ื•ื ืœื™)
14 afterId := "afterId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 includeContext := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
16 afterCreatedAt := int64(789) // int64 | (ืื•ืคืฆื™ื•ื ืœื™)
17 unreadOnly := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
18 dmOnly := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
19 noDm := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
20 includeTranslations := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
21 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
22
23 configuration := openapiclient.NewConfiguration()
24 apiClient := openapiclient.NewAPIClient(configuration)
25 resp, r, err := apiClient.PublicAPI.GetUserNotifications(context.Background()).TenantId(tenantId).PageSize(pageSize).AfterId(afterId).IncludeContext(includeContext).AfterCreatedAt(afterCreatedAt).UnreadOnly(unreadOnly).DmOnly(dmOnly).NoDm(noDm).IncludeTranslations(includeTranslations).Sso(sso).Execute()
26 if err != nil {
27 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUserNotifications``: %v\n", err)
28 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
29 }
30 // ืชื’ื•ื‘ื” ืž-`GetUserNotifications`: GetUserNotifications200Response
31 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserNotifications`: %v\n", resp)
32}
33

ืืคืก ืกืคื™ืจืช ื”ืชืจืื•ืช ืฉืœ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: ResetUserNotifications200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-ResetUserNotificationCount
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.PublicAPI.ResetUserNotificationCount(context.Background()).TenantId(tenantId).Sso(sso).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.ResetUserNotificationCount``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // response from `ResetUserNotificationCount`: ResetUserNotifications200Response
23 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.ResetUserNotificationCount`: %v\n", resp)
24}
25

ืืคืก ื”ืชืจืื•ืช ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
afterId string query ืœื
afterCreatedAt integer query ืœื
unreadOnly boolean query ืœื
dmOnly boolean query ืœื
noDm boolean query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: ResetUserNotifications200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-ResetUserNotifications
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 afterId := "afterId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
14 afterCreatedAt := int64(789) // int64 | (ืื•ืคืฆื™ื•ื ืœื™)
15 unreadOnly := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
16 dmOnly := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
17 noDm := true // bool | (ืื•ืคืฆื™ื•ื ืœื™)
18 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
19
20 configuration := openapiclient.NewConfiguration()
21 apiClient := openapiclient.NewAPIClient(configuration)
22 resp, r, err := apiClient.PublicAPI.ResetUserNotifications(context.Background()).TenantId(tenantId).AfterId(afterId).AfterCreatedAt(afterCreatedAt).UnreadOnly(unreadOnly).DmOnly(dmOnly).NoDm(noDm).Sso(sso).Execute()
23 if err != nil {
24 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.ResetUserNotifications``: %v\n", err)
25 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
26 }
27 // ืชื’ื•ื‘ื” ืž-`ResetUserNotifications`: ResetUserNotifications200Response
28 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.ResetUserNotifications`: %v\n", resp)
29}
30

ืขื“ื›ืŸ ืกื˜ื˜ื•ืก ืžื ื•ื™ ืœื”ืชืจืื•ืช ืชื’ื•ื‘ื•ืช ืฉืœ ืžืฉืชืžืฉ Internal Link

ื”ืคืขืœ ืื• ื”ืฉื‘ืช ื”ืชืจืื•ืช ืขื‘ื•ืจ ืชื’ื•ื‘ื” ืกืคืฆื™ืคื™ืช.

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
notificationId string path ื›ืŸ
optedInOrOut string path ื›ืŸ
commentId string query ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UpdateUserNotificationStatus200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UpdateUserNotificationCommentSubscriptionStatus
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 notificationId := "notificationId_example" // string |
14 optedInOrOut := "optedInOrOut_example" // string |
15 commentId := "commentId_example" // string |
16 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.PublicAPI.UpdateUserNotificationCommentSubscriptionStatus(context.Background(), notificationId, optedInOrOut).TenantId(tenantId).CommentId(commentId).Sso(sso).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UpdateUserNotificationCommentSubscriptionStatus``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // ืชื’ื•ื‘ื” ืž-`UpdateUserNotificationCommentSubscriptionStatus`: UpdateUserNotificationStatus200Response
26 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UpdateUserNotificationCommentSubscriptionStatus`: %v\n", resp)
27}
28

ืขื“ื›ืŸ ืกื˜ื˜ื•ืก ืžื ื•ื™ ืœื”ืชืจืื•ืช ื“ืฃ ืฉืœ ืžืฉืชืžืฉ Internal Link

ื”ืคืขืœ ืื• ื”ืฉื‘ืช ื”ืชืจืื•ืช ืขื‘ื•ืจ ื“ืฃ. ื›ืืฉืจ ืžืฉืชืžืฉื™ื ืžื ื•ื™ื™ื ืœื“ืฃ, ื ื•ืฆืจื•ืช ื”ืชืจืื•ืช ืขื‘ื•ืจ ืชื’ื•ื‘ื•ืช ืฉื•ืจืฉ ื—ื“ืฉื•ืช, ื•ื›ืŸ

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
urlId string query ื›ืŸ
url string query ื›ืŸ
pageTitle string query ื›ืŸ
subscribedOrUnsubscribed string path ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UpdateUserNotificationStatus200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UpdateUserNotificationPageSubscriptionStatus
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 urlId := "urlId_example" // string |
14 url := "url_example" // string |
15 pageTitle := "pageTitle_example" // string |
16 subscribedOrUnsubscribed := "subscribedOrUnsubscribed_example" // string |
17 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.PublicAPI.UpdateUserNotificationPageSubscriptionStatus(context.Background(), subscribedOrUnsubscribed).TenantId(tenantId).UrlId(urlId).Url(url).PageTitle(pageTitle).Sso(sso).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UpdateUserNotificationPageSubscriptionStatus``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // ืชื’ื•ื‘ื” ืž- `UpdateUserNotificationPageSubscriptionStatus`: UpdateUserNotificationStatus200Response
27 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UpdateUserNotificationPageSubscriptionStatus`: %v\n", resp)
28}
29

ืขื“ื›ืŸ ืกื˜ื˜ื•ืก ื”ืชืจืื•ืช ืฉืœ ืžืฉืชืžืฉ Internal Link


ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
notificationId string path ื›ืŸ
newStatus string path ื›ืŸ
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: UpdateUserNotificationStatus200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-UpdateUserNotificationStatus
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 notificationId := "notificationId_example" // string |
14 newStatus := "newStatus_example" // string |
15 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.UpdateUserNotificationStatus(context.Background(), notificationId, newStatus).TenantId(tenantId).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UpdateUserNotificationStatus``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`UpdateUserNotificationStatus`: UpdateUserNotificationStatus200Response
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UpdateUserNotificationStatus`: %v\n", resp)
26}
27

ืงื‘ืœ ืกื˜ื˜ื•ืกื™ื ืฉืœ ื ื•ื›ื—ื•ืช ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query ื›ืŸ
urlIdWS string query ื›ืŸ
userIds string query ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUserPresenceStatuses200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetUserPresenceStatuses
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 urlIdWS := "urlIdWS_example" // string |
14 userIds := "userIds_example" // string |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.PublicAPI.GetUserPresenceStatuses(context.Background()).TenantId(tenantId).UrlIdWS(urlIdWS).UserIds(userIds).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUserPresenceStatuses``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`GetUserPresenceStatuses`: GetUserPresenceStatuses200Response
24 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserPresenceStatuses`: %v\n", resp)
25}
26

ื—ืคืฉ ืžืฉืชืžืฉื™ื Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string path ื›ืŸ
urlId string query ื›ืŸ
usernameStartsWith string query ื›ืŸ
mentionGroupIds array query ืœื
sso string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: SearchUsers200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-SearchUsers
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 urlId := "urlId_example" // string |
14 usernameStartsWith := "usernameStartsWith_example" // string |
15 mentionGroupIds := []string{"Inner_example"} // []string | (ืื•ืคืฆื™ื•ื ืœื™)
16 sso := "sso_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.PublicAPI.SearchUsers(context.Background(), tenantId).UrlId(urlId).UsernameStartsWith(usernameStartsWith).MentionGroupIds(mentionGroupIds).Sso(sso).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.SearchUsers``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // ืชื’ื•ื‘ื” ืž-`SearchUsers`: SearchUsers200Response
26 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.SearchUsers`: %v\n", resp)
27}
28

ืงื‘ืœ ืžืฉืชืžืฉ Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื ื“ืจืฉ ืชื™ืื•ืจ
tenantId string query ื›ืŸ
id string path ื›ืŸ

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetUser200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช GetUser
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
13 id := "id_example" // ืžื—ืจื•ื–ืช |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetUser(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetUser``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetUser`: GetUser200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUser`: %v\n", resp)
24}
25

ืฆื•ืจ ื”ืฆื‘ืขื” Internal Link

ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string ืฉืื™ืœืชื” ื›ืŸ
commentId string ืฉืื™ืœืชื” ื›ืŸ
direction string ืฉืื™ืœืชื” ื›ืŸ
userId string ืฉืื™ืœืชื” ืœื
anonUserId string ืฉืื™ืœืชื” ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: VoteComment200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-CreateVote
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
13 commentId := "commentId_example" // ืžื—ืจื•ื–ืช |
14 direction := "direction_example" // ืžื—ืจื•ื–ืช |
15 userId := "userId_example" // ืžื—ืจื•ื–ืช | (ืื•ืคืฆื™ื•ื ืœื™)
16 anonUserId := "anonUserId_example" // ืžื—ืจื•ื–ืช | (ืื•ืคืฆื™ื•ื ืœื™)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.DefaultAPI.CreateVote(context.Background()).TenantId(tenantId).CommentId(commentId).Direction(direction).UserId(userId).AnonUserId(anonUserId).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateVote``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // ืชื’ื•ื‘ื” ืž-`CreateVote`: VoteComment200Response
26 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateVote`: %v\n", resp)
27}
28

ืžื—ืง ื”ืฆื‘ืขื” Internal Link


ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
id string path ื›ืŸ
editKey string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: DeleteCommentVote200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืขื‘ื•ืจ DeleteVote
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 editKey := "editKey_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.DeleteVote(context.Background(), id).TenantId(tenantId).EditKey(editKey).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteVote``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // ืชื’ื•ื‘ื” ืž-`DeleteVote`: DeleteCommentVote200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteVote`: %v\n", resp)
25}
26

ืงื‘ืœ ื”ืฆื‘ืขื•ืช Internal Link

ืคืจืžื˜ืจื™ื

ืฉื ืกื•ื’ ืžื™ืงื•ื ื—ื•ื‘ื” ืชื™ืื•ืจ
tenantId string query Yes
urlId string query Yes

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetVotes200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžืช GetVotes
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // ืžื—ืจื•ื–ืช |
13 urlId := "urlId_example" // ืžื—ืจื•ื–ืช |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetVotes(context.Background()).TenantId(tenantId).UrlId(urlId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetVotes``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // ืชื’ื•ื‘ื” ืž-`GetVotes`: GetVotes200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetVotes`: %v\n", resp)
24}
25

ืงื‘ืœ ื”ืฆื‘ืขื•ืช ืขื‘ื•ืจ ืžืฉืชืžืฉ Internal Link


ืคืจืžื˜ืจื™ื

Name Type Location Required Description
tenantId string query ื›ืŸ
urlId string query ื›ืŸ
userId string query ืœื
anonUserId string query ืœื

ืชื’ื•ื‘ื”

ืžื—ื–ื™ืจ: GetVotesForUser200Response

ื“ื•ื’ืžื”

ื“ื•ื’ืžื” ืœ-GetVotesForUser
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 urlId := "urlId_example" // string |
14 userId := "userId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
15 anonUserId := "anonUserId_example" // string | (ืื•ืคืฆื™ื•ื ืœื™)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.GetVotesForUser(context.Background()).TenantId(tenantId).UrlId(urlId).UserId(userId).AnonUserId(anonUserId).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetVotesForUser``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // ืชื’ื•ื‘ื” ืž-`GetVotesForUser`: GetVotesForUser200Response
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetVotesForUser`: %v\n", resp)
26}
27

ื–ืงื•ืง ืœืขื–ืจื”?

ืื ืชื™ืชืงืœื• ื‘ื‘ืขื™ื•ืช ืื• ื™ื”ื™ื• ืœื›ื ืฉืืœื•ืช ืœื’ื‘ื™ ื”-SDK ืฉืœ Go, ืื ื:

ืชืจื•ืžื”

ื ืฉืžื— ืœืชืจื•ืžื•ืช! ืื ื ื‘ืงืจื• ื‘-ืžืื’ืจ GitHub ืœื”ื ื—ื™ื•ืช ืœืชืจื•ืžืช ืงื•ื“.