FastComments.com

FastComments Go SDK

์ด๊ฒƒ์€ FastComments์˜ ๊ณต์‹ Go SDK์ž…๋‹ˆ๋‹ค.

FastComments API๋ฅผ ์œ„ํ•œ ๊ณต์‹ Go SDK

์ €์žฅ์†Œ

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() {
    // Simple 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


๋ฌธ์„œ๋ฅผ ๊ทธ๋ฃนํ™”(groupBy๊ฐ€ ์ œ๊ณต๋œ ๊ฒฝ์šฐ)ํ•˜๊ณ  ์—ฌ๋Ÿฌ ์—ฐ์‚ฐ์„ ์ ์šฉํ•˜์—ฌ ์ง‘๊ณ„ํ•ฉ๋‹ˆ๋‹ค. ๋‹ค์–‘ํ•œ ์—ฐ์‚ฐ(์˜ˆ: sum, countDistinct, avg ๋“ฑ)์„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string query ์˜ˆ
parentTenantId string query ์•„๋‹ˆ์˜ค
includeStats boolean query ์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: AggregationResponse

์˜ˆ์ œ

์ง‘๊ณ„ ์˜ˆ์ œ
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 // `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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
tenantId string query Yes
commentIds string query Yes ์‰ผํ‘œ๋กœ ๊ตฌ๋ถ„๋œ ๋Œ“๊ธ€ ID ๋ชฉ๋ก.
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 | ์‰ผํ‘œ๋กœ ๊ตฌ๋ถ„๋œ ๋Œ“๊ธ€ ID ๋ชฉ๋ก.
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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
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 // `BlockUserFromComment`์˜ ์‘๋‹ต: BlockFromCommentPublic200Response
26 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.BlockUserFromComment`: %v\n", resp)
27}
28

๊ณต๊ฐœ ๋Œ“๊ธ€ ์ƒ์„ฑ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string path ์˜ˆ
urlId string query ์˜ˆ
broadcastId string query ์˜ˆ
sessionId string query ์•„๋‹ˆ์š”
sso string query ์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
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


๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
tenantId string path ์˜ˆ
commentId string path ์˜ˆ
broadcastId string query ์˜ˆ
editKey string query ์•„๋‹ˆ์š”
sso string query ์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํƒ€์ž… ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํƒ€์ž… ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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 ๊ฒฝ๋กœ ์˜ˆ
commentId string ๊ฒฝ๋กœ ์˜ˆ
editKey string ์ฟผ๋ฆฌ ์•„๋‹ˆ์˜ค
sso string ์ฟผ๋ฆฌ ์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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" // string |
13 commentId := "commentId_example" // string |
14 editKey := "editKey_example" // string | (์„ ํƒ ์‚ฌํ•ญ)
15 sso := "sso_example" // string | (์„ ํƒ ์‚ฌํ•ญ)
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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 ๊ฒฝ๋กœ ์˜ˆ
commentId string ๊ฒฝ๋กœ ์˜ˆ
broadcastId string ์ฟผ๋ฆฌ ์˜ˆ
editKey string ์ฟผ๋ฆฌ ์•„๋‹ˆ์š”
sso string ์ฟผ๋ฆฌ ์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: 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" // string |
13 id := "id_example" // string |
14 unBlockFromCommentParams := *openapiclient.NewUnBlockFromCommentParams() // UnBlockFromCommentParams |
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.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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string path Yes
commentId string path Yes
broadcastId string query Yes
sso string query No

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
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 Yes
domain string path Yes

์‘๋‹ต

๋ฐ˜ํ™˜: 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


๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํƒ€์ž… ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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" // ๋ฌธ์ž์—ด |
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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
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" // string |
13 domainToUpdate := "domainToUpdate_example" // string |
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 ์˜ˆ
domainToUpdate string path ์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: 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 Yes

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํƒ€์ž… ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํƒ€์ž… ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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" // string |
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 ์˜ˆ
id string path ์˜ˆ
skip number query ์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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 // response from `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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํƒ€์ž… ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
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 // `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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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 // `ReactFeedPostPublic`์˜ ์‘๋‹ต: ReactFeedPostPublic200Response
27 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.ReactFeedPostPublic`: %v\n", resp)
28}
29

ํ”ผ๋“œ ๊ฒŒ์‹œ๋ฌผ ์—…๋ฐ์ดํŠธ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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 // `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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string query ์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string query ์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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

Parameters

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tag string path Yes
tenantId string query No

์‘๋‹ต

๋ฐ˜ํ™˜: 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 // `PatchHashTag`์˜ ์‘๋‹ต: PatchHashTag200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PatchHashTag`: %v\n", resp)
25}
26

์ค‘์žฌ์ž ์ƒ์„ฑ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string query Yes

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string ์ฟผ๋ฆฌ ์˜ˆ
id string ๊ฒฝ๋กœ ์˜ˆ
sendEmail string ์ฟผ๋ฆฌ ์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

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

์‘๋‹ต

๋ฐ˜ํ™˜: 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" // string |
13 id := "id_example" // string |
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string query Yes

์‘๋‹ต

๋ฐ˜ํ™˜: 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 // response from `AddPage`: AddPageAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AddPage`: %v\n", resp)
24}
25

ํŽ˜์ด์ง€ ์‚ญ์ œ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string query Yes
id string path Yes

์‘๋‹ต

๋ฐ˜ํ™˜: 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" // string |
13 id := "id_example" // string |
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 ID๋กœ ํŽ˜์ด์ง€ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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


๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํƒ€์ž… ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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" // string |
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 // `PatchPage`๋กœ๋ถ€ํ„ฐ์˜ ์‘๋‹ต: PatchPageAPIResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PatchPage`: %v\n", resp)
25}
26

๋Œ€๊ธฐ ์ค‘์ธ ์›นํ›… ์ด๋ฒคํŠธ ์‚ญ์ œ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string query Yes
id string path Yes

์‘๋‹ต

๋ฐ˜ํ™˜: 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 ์ฟผ๋ฆฌ ์˜ˆ
skip number ์ฟผ๋ฆฌ ์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: 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" // string |
13 id := "id_example" // string |
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 // response from `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" // string |
13 id := "id_example" // string |
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 Yes
id string path Yes

์‘๋‹ต

๋ฐ˜ํ™˜: 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 // response from `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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํƒ€์ž… ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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 ์ฟผ๋ฆฌ ์˜ˆ
email string ๊ฒฝ๋กœ ์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: 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 // `GetSSOUserByEmail`์˜ ์‘๋‹ต: GetSSOUserByEmailAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetSSOUserByEmail`: %v\n", resp)
24}
25

ID๋กœ SSO ์‚ฌ์šฉ์ž ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
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 // `CreateSubscription`์˜ ์‘๋‹ต: CreateSubscriptionAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateSubscription`: %v\n", resp)
24}
25

๊ตฌ๋… ์‚ญ์ œ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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 // `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 ์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: 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" // string |
13 id := "id_example" // string |
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string query ์˜ˆ
id string path ์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํƒ€์ž… ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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


๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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 // response from `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 // response from `UpdateTenantPackage`: FlagCommentPublic200Response
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateTenantPackage`: %v\n", resp)
25}
26

ํ…Œ๋„ŒํŠธ ์‚ฌ์šฉ์ž ์ƒ์„ฑ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
tenantId string ์ฟผ๋ฆฌ ์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: 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" // ๋ฌธ์ž์—ด |
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 // response from `CreateTenantUser`: CreateTenantUser200Response
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateTenantUser`: %v\n", resp)
24}
25

ํ…Œ๋„ŒํŠธ ์‚ฌ์šฉ์ž ์‚ญ์ œ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string ์ฟผ๋ฆฌ ์˜ˆ
id string ๊ฒฝ๋กœ ์˜ˆ
deleteComments string ์ฟผ๋ฆฌ ์•„๋‹ˆ์š”
commentDeleteMode string ์ฟผ๋ฆฌ ์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: 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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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" // ๋ฌธ์ž์—ด |
13 id := "id_example" // ๋ฌธ์ž์—ด |
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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
tenantId string query ์˜ˆ
id string path ์˜ˆ
updateComments string query ์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: FlagCommentPublic200Response

์˜ˆ์ œ

ReplaceTenantUser Example
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 // response from `ReplaceTenantUser`: FlagCommentPublic200Response
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ReplaceTenantUser`: %v\n", resp)
26}
27

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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 // response from `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" // string |
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

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

์‘๋‹ต

๋ฐ˜ํ™˜: 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

์ด๋ฏธ์ง€ ์—…๋กœ๋“œ ๋ฐ ํฌ๊ธฐ ์กฐ์ •

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string path Yes
sizePreset string query No ํฌ๊ธฐ ํ”„๋ฆฌ์…‹: "Default" (1000x1000px) ๋˜๋Š” "CrossPlatform" (์ผ๋ฐ˜์ ์ธ ๋””๋ฐ”์ด์Šค์šฉ ํฌ๊ธฐ๋ฅผ ์ƒ์„ฑ)
urlId string query No ์—…๋กœ๋“œ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ํŽ˜์ด์ง€์˜ ID(๊ตฌ์„ฑ์šฉ)

์‘๋‹ต

๋ฐ˜ํ™˜: 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 | ์—…๋กœ๋“œ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ํŽ˜์ด์ง€์˜ ID(๊ตฌ์„ฑ์šฉ) (์„ ํƒ์‚ฌํ•ญ)
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

ID๋กœ ์‚ฌ์šฉ์ž ๋ฐฐ์ง€ ์ง„ํ–‰ ๊ฐ€์ ธ์˜ค๊ธฐ Internal Link

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
tenantId string query ์˜ˆ
id string path ์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: 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

์‚ฌ์šฉ์ž ID๋กœ ์‚ฌ์šฉ์ž ๋ฐฐ์ง€ ์ง„ํ–‰ ๊ฐ€์ ธ์˜ค๊ธฐ 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

๋งค๊ฐœ๋ณ€์ˆ˜

Name Type Location Required Description
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํƒ€์ž… ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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 Type Location Required Description
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

ํŠน์ • ๋Œ“๊ธ€์— ๋Œ€ํ•œ ์•Œ๋ฆผ์„ ํ™œ์„ฑํ™”ํ•˜๊ฑฐ๋‚˜ ๋น„ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ํ˜•์‹ ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
tenantId string ์ฟผ๋ฆฌ ์˜ˆ
notificationId string ๊ฒฝ๋กœ ์˜ˆ
optedInOrOut string ๊ฒฝ๋กœ ์˜ˆ
commentId string ์ฟผ๋ฆฌ ์˜ˆ
sso string ์ฟผ๋ฆฌ ์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: 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" // ๋ฌธ์ž์—ด |
13 notificationId := "notificationId_example" // ๋ฌธ์ž์—ด |
14 optedInOrOut := "optedInOrOut_example" // ๋ฌธ์ž์—ด |
15 commentId := "commentId_example" // ๋ฌธ์ž์—ด |
16 sso := "sso_example" // ๋ฌธ์ž์—ด | (์„ ํƒ ์‚ฌํ•ญ)
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 ์ฟผ๋ฆฌ ์˜ˆ
urlId string ์ฟผ๋ฆฌ ์˜ˆ
url string ์ฟผ๋ฆฌ ์˜ˆ
pageTitle string ์ฟผ๋ฆฌ ์˜ˆ
subscribedOrUnsubscribed string ๊ฒฝ๋กœ ์˜ˆ
sso string ์ฟผ๋ฆฌ ์•„๋‹ˆ์˜ค

์‘๋‹ต

๋ฐ˜ํ™˜: 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 // response from `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" // string |
13 id := "id_example" // string |
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 query ์˜ˆ
commentId string query ์˜ˆ
direction string query ์˜ˆ
userId string query ์•„๋‹ˆ์š”
anonUserId string query ์•„๋‹ˆ์š”

์‘๋‹ต

๋ฐ˜ํ™˜: 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" // string |
13 commentId := "commentId_example" // string |
14 direction := "direction_example" // string |
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.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


๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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 ์˜ˆ
urlId string query ์˜ˆ

์‘๋‹ต

๋ฐ˜ํ™˜: 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" // string |
13 urlId := "urlId_example" // string |
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

๋งค๊ฐœ๋ณ€์ˆ˜

์ด๋ฆ„ ์œ ํ˜• ์œ„์น˜ ํ•„์ˆ˜ ์„ค๋ช…
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

๋„์›€์ด ํ•„์š”ํ•˜์‹ ๊ฐ€์š”?

Go SDK์— ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜๊ฑฐ๋‚˜ ์งˆ๋ฌธ์ด ์žˆ๋Š” ๊ฒฝ์šฐ, ๋‹ค์Œ์„ ์ด์šฉํ•˜์„ธ์š”:

๊ธฐ์—ฌ

๊ธฐ์—ฌ๋ฅผ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค! ๊ธฐ์—ฌ ์ง€์นจ์€ GitHub ์ €์žฅ์†Œ๋ฅผ ๋ฐฉ๋ฌธํ•˜์„ธ์š”.