FastComments.com

FastComments Go SDK

यह FastComments का आधिकारिक Go SDK है।

अपने Go एप्लिकेशन से कमेंट्स, यूज़र्स, SSO और मॉडरेशन को प्रबंधित करें।

रिपॉज़िटरी

GitHub पर देखें

AI कोडिंग एजेंट Internal Link

skills.sh

अपने कोडिंग एजेंट को FastComments का वह संदर्भ दें जिसकी उसे आवश्यकता है - विजेट्स, कॉन्फ़िगरेशन, Secure SSO, REST API, और SDKs:

npx skills add fastcomments/skills

यह Claude Code, Codex, Cursor, Copilot, Gemini, और skills CLI द्वारा समर्थित हर अन्य एजेंट के साथ काम करता है।

इंस्टॉलेशन Internal Link

go get github.com/fastcomments/fastcomments-go

API क्लाइंट का उपयोग करना

Public 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)
}

Default API (API Key आवश्यक)

DefaultAPI आपकी API key का उपयोग करके प्रमाणीकरण की आवश्यकता रखता है:

package main

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

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

    // API key के साथ प्रमाणित context बनाएं
    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)
}

Moderation API (मॉडरेटर डैशबोर्ड)

ModerationAPI लाइव और तेज़ मॉडरेशन APIs का एक विस्तृत सूट प्रदान करता है। सभी मॉडरेशन मेथड्स एक sso पैरामीटर स्वीकार करते हैं और SSO या FastComments.com सेशन कुकी के माध्यम से प्रमाणीकरण कर सकते हैं:

package main

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

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

    // ModerationAPI का उपयोग करके मॉडरेशन के लिए कमेंट्स सूचीबद्ध करें
    response, httpResp, err := apiClient.ModerationAPI.GetApiComments(
        context.Background(),
    ).Sso("your-sso-token").Execute()

    if err != nil {
        panic(err)
    }

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

उपयोग Internal Link

सरल SSO

package main

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

func main() {
    // सरल SSO टोकन बनाएँ
    user := &sso.SimpleSSOUserData{
        UserID: "user-123",
        Email:  "user@example.com",
        Avatar: "https://example.com/avatar.jpg",
    }

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

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

    // प्रमाणित API कॉल करने के लिए SSO टोकन का उपयोग करें
    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)

    // प्रमाणित API कॉल करने के लिए SSO टोकन का उपयोग करें
    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)
}

Aggregate Internal Link

groupBy दिए जाने पर दस्तावेज़ों को समूहित करके (grouping) और अनेक ऑपरेशन लागू करके उन्हें एकत्रित (aggregate) करता है। विभिन्न ऑपरेशन (जैसे sum, countDistinct, avg, आदि) समर्थित हैं।

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
parentTenantIdstringqueryनहीं
includeStatsbooleanqueryनहीं

प्रतिक्रिया

लौटाता है: AggregateResponse

उदाहरण

Aggregate उदाहरण
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 aggregationRequest := *openapiclient.NewAggregationRequest("ResourceName_example", []openapiclient.AggregationOperation{*openapiclient.NewAggregationOperation("Field_example", openapiclient.AggregationOpType("sum"))}) // AggregationRequest |
14 parentTenantId := "parentTenantId_example" // string | (optional)
15 includeStats := true // bool | (optional)
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` से प्रतिक्रिया: AggregateResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.Aggregate`: %v\n", resp)
26}
27

GetAuditLogs Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
limitnumberqueryनहीं
skipnumberqueryनहीं
orderstringqueryनहीं
afternumberqueryनहीं
beforenumberqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetAuditLogsResponse

उदाहरण

GetAuditLogs उदाहरण
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 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` से प्रतिक्रिया: GetAuditLogsResponse
27 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetAuditLogs`: %v\n", resp)
28}
29

LogoutPublic Internal Link

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

LogoutPublic उदाहरण
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
13 configuration := openapiclient.NewConfiguration()
14 apiClient := openapiclient.NewAPIClient(configuration)
15 resp, r, err := apiClient.PublicAPI.LogoutPublic(context.Background()).Execute()
16 if err != nil {
17 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.LogoutPublic``: %v\n", err)
18 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
19 }
20 // `LogoutPublic` से प्रतिक्रिया: APIEmptyResponse
21 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.LogoutPublic`: %v\n", resp)
22}
23

BlockFromCommentPublic Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: BlockSuccess

उदाहरण

BlockFromCommentPublic उदाहरण
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 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` से प्रतिक्रिया: BlockSuccess
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.BlockFromCommentPublic`: %v\n", resp)
26}
27

UnBlockCommentPublic Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: UnblockSuccess

उदाहरण

UnBlockCommentPublic उदाहरण
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 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` से प्रतिक्रिया: UnblockSuccess
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UnBlockCommentPublic`: %v\n", resp)
26}
27

CheckedCommentsForBlocked Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdsstringqueryहाँकमेंट आईडी की कॉमा से अलग की गई सूची।
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: CheckBlockedCommentsResponse

उदाहरण

CheckedCommentsForBlocked उदाहरण
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 commentIds := "commentIds_example" // string | कमेंट आईडी की कॉमा से अलग की गई सूची।
14 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.PublicAPI.CheckedCommentsForBlocked(context.Background()).TenantId(tenantId).CommentIds(commentIds).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.CheckedCommentsForBlocked``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `CheckedCommentsForBlocked` से प्रतिक्रिया: CheckBlockedCommentsResponse
24 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.CheckedCommentsForBlocked`: %v\n", resp)
25}
26

BlockUserFromComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
userIdstringqueryनहीं
anonUserIdstringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: BlockSuccess

उदाहरण

BlockUserFromComment उदाहरण
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 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` से प्रतिक्रिया: BlockSuccess
26 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.BlockUserFromComment`: %v\n", resp)
27}
28

CreateCommentPublic Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँ
broadcastIdstringqueryहाँ
sessionIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न: SaveCommentsResponseWithPresence

उदाहरण

CreateCommentPublic उदाहरण
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 broadcastId := "broadcastId_example" // string |
15 commentData := *openapiclient.NewCommentData("CommenterName_example", "Comment_example", "Url_example", "UrlId_example") // CommentData |
16 sessionId := "sessionId_example" // string | (optional)
17 sso := "sso_example" // string | (optional)
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 // response from `CreateCommentPublic`: SaveCommentsResponseWithPresence
27 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.CreateCommentPublic`: %v\n", resp)
28}
29

DeleteComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
contextUserIdstringqueryनहीं
isLivebooleanqueryनहीं

प्रतिक्रिया

रिटर्न करता है: DeleteCommentResult

उदाहरण

DeleteComment उदाहरण
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 contextUserId := "contextUserId_example" // string | (optional)
15 isLive := true // bool | (optional)
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` से प्रतिक्रिया: DeleteCommentResult
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteComment`: %v\n", resp)
26}
27

DeleteCommentPublic Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
commentIdstringpathहाँ
broadcastIdstringqueryहाँ
editKeystringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: PublicAPIDeleteCommentResponse

उदाहरण

DeleteCommentPublic उदाहरण
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 broadcastId := "broadcastId_example" // string |
15 editKey := "editKey_example" // string | (optional)
16 sso := "sso_example" // string | (optional)
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` से प्रतिक्रिया: PublicAPIDeleteCommentResponse
26 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteCommentPublic`: %v\n", resp)
27}
28

DeleteCommentVote Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
commentIdstringpathहाँ
voteIdstringpathहाँ
urlIdstringqueryहाँ
broadcastIdstringqueryहाँ
editKeystringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: VoteDeleteResponse

उदाहरण

DeleteCommentVote उदाहरण
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 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` से प्रतिक्रिया: VoteDeleteResponse
28 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteCommentVote`: %v\n", resp)
29}
30

FlagComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
userIdstringqueryनहीं
anonUserIdstringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: FlagCommentResponse

उदाहरण

FlagComment उदाहरण
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 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` से प्रतिक्रिया: FlagCommentResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.FlagComment`: %v\n", resp)
26}
27

GetComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

लौटाता है: APIGetCommentResponse

उदाहरण

GetComment उदाहरण
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.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` से प्रतिक्रिया: APIGetCommentResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetComment`: %v\n", resp)
24}
25

GetComments Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
pageintegerqueryनहीं
limitintegerqueryनहीं
skipintegerqueryनहीं
asTreebooleanqueryनहीं
skipChildrenintegerqueryनहीं
limitChildrenintegerqueryनहीं
maxTreeDepthintegerqueryनहीं
urlIdstringqueryनहीं
userIdstringqueryनहीं
anonUserIdstringqueryनहीं
contextUserIdstringqueryनहीं
hashTagstringqueryनहीं
parentIdstringqueryनहीं
directionstringqueryनहीं
fromDateintegerqueryनहीं
toDateintegerqueryनहीं

प्रतिक्रिया

रिटर्न करता है: APIGetCommentsResponse

उदाहरण

GetComments उदाहरण
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 := 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 fromDate := int64(789) // int64 | (वैकल्पिक)
28 toDate := int64(789) // int64 | (वैकल्पिक)
29
30 configuration := openapiclient.NewConfiguration()
31 apiClient := openapiclient.NewAPIClient(configuration)
32 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).FromDate(fromDate).ToDate(toDate).Execute()
33 if err != nil {
34 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetComments``: %v\n", err)
35 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
36 }
37 // `GetComments` से प्रतिक्रिया: APIGetCommentsResponse
38 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetComments`: %v\n", resp)
39}
40

GetCommentsPublic Internal Link

req tenantId urlId

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँ
pageintegerqueryनहीं
directionstringqueryनहीं
ssostringqueryनहीं
skipintegerqueryनहीं
skipChildrenintegerqueryनहीं
limitintegerqueryनहीं
limitChildrenintegerqueryनहीं
countChildrenbooleanqueryनहीं
fetchPageForCommentIdstringqueryनहीं
includeConfigbooleanqueryनहीं
countAllbooleanqueryनहीं
includei10nbooleanqueryनहीं
localestringqueryनहीं
modulesstringqueryनहीं
isCrawlerbooleanqueryनहीं
includeNotificationCountbooleanqueryनहीं
asTreebooleanqueryनहीं
maxTreeDepthintegerqueryनहीं
useFullTranslationIdsbooleanqueryनहीं
parentIdstringqueryनहीं
searchTextstringqueryनहीं
hashTagsarrayqueryनहीं
userIdstringqueryनहीं
customConfigStrstringqueryनहीं
afterCommentIdstringqueryनहीं
beforeCommentIdstringqueryनहीं

प्रतिक्रिया

लौटाता है: GetCommentsResponseWithPresencePublicComment

उदाहरण

GetCommentsPublic उदाहरण
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 page := int32(56) // int32 | (optional)
15 direction := openapiclient.SortDirections("OF") // SortDirections | (optional)
16 sso := "sso_example" // string | (optional)
17 skip := int32(56) // int32 | (optional)
18 skipChildren := int32(56) // int32 | (optional)
19 limit := int32(56) // int32 | (optional)
20 limitChildren := int32(56) // int32 | (optional)
21 countChildren := true // bool | (optional)
22 fetchPageForCommentId := "fetchPageForCommentId_example" // string | (optional)
23 includeConfig := true // bool | (optional)
24 countAll := true // bool | (optional)
25 includei10n := true // bool | (optional)
26 locale := "locale_example" // string | (optional)
27 modules := "modules_example" // string | (optional)
28 isCrawler := true // bool | (optional)
29 includeNotificationCount := true // bool | (optional)
30 asTree := true // bool | (optional)
31 maxTreeDepth := int32(56) // int32 | (optional)
32 useFullTranslationIds := true // bool | (optional)
33 parentId := "parentId_example" // string | (optional)
34 searchText := "searchText_example" // string | (optional)
35 hashTags := []string{"Inner_example"} // []string | (optional)
36 userId := "userId_example" // string | (optional)
37 customConfigStr := "customConfigStr_example" // string | (optional)
38 afterCommentId := "afterCommentId_example" // string | (optional)
39 beforeCommentId := "beforeCommentId_example" // string | (optional)
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 // response from `GetCommentsPublic`: GetCommentsResponseWithPresencePublicComment
49 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentsPublic`: %v\n", resp)
50}
51

GetCommentText Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
commentIdstringpathहाँ
editKeystringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न: PublicAPIGetCommentTextResponse

उदाहरण

GetCommentText उदाहरण
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 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` से प्रतिक्रिया: PublicAPIGetCommentTextResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentText`: %v\n", resp)
26}
27

GetCommentVoteUserNames Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
commentIdstringpathहाँ
dirintegerqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न: GetCommentVoteUserNamesSuccessResponse

उदाहरण

GetCommentVoteUserNames उदाहरण
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 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 // response from `GetCommentVoteUserNames`: GetCommentVoteUserNamesSuccessResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentVoteUserNames`: %v\n", resp)
26}
27

LockComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
commentIdstringpathहाँ
broadcastIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न: APIEmptyResponse

उदाहरण

LockComment उदाहरण
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 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` से प्रतिक्रिया: APIEmptyResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.LockComment`: %v\n", resp)
26}
27

PinComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
commentIdstringpathहाँ
broadcastIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: ChangeCommentPinStatusResponse

उदाहरण

PinComment उदाहरण
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 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 // response from `PinComment`: ChangeCommentPinStatusResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.PinComment`: %v\n", resp)
26}
27

SaveComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
isLivebooleanqueryनहीं
doSpamCheckbooleanqueryनहीं
sendEmailsbooleanqueryनहीं
populateNotificationsbooleanqueryनहीं

प्रतिक्रिया

रिटर्न करता है: APISaveCommentResponse

उदाहरण

SaveComment उदाहरण
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 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 // response from `SaveComment`: APISaveCommentResponse
27 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.SaveComment`: %v\n", resp)
28}
29

SaveCommentsBulk Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
isLivebooleanqueryनहीं
doSpamCheckbooleanqueryनहीं
sendEmailsbooleanqueryनहीं
populateNotificationsbooleanqueryनहीं

प्रतिक्रिया

रिटर्न करता है: []SaveCommentsBulkResponse

उदाहरण

SaveCommentsBulk उदाहरण
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 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 // response from `SaveCommentsBulk`: []SaveCommentsBulkResponse
27 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.SaveCommentsBulk`: %v\n", resp)
28}
29

SetCommentText Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
commentIdstringpathहाँ
broadcastIdstringqueryहाँ
editKeystringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: PublicAPISetCommentTextResponse

उदाहरण

SetCommentText उदाहरण
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 broadcastId := "broadcastId_example" // string |
15 commentTextUpdateRequest := *openapiclient.NewCommentTextUpdateRequest("Comment_example") // CommentTextUpdateRequest |
16 editKey := "editKey_example" // string | (optional)
17 sso := "sso_example" // string | (optional)
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` से प्रतिक्रिया: PublicAPISetCommentTextResponse
27 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.SetCommentText`: %v\n", resp)
28}
29

UnBlockUserFromComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
userIdstringqueryनहीं
anonUserIdstringqueryनहीं

प्रतिक्रिया

लौटाता है: UnblockSuccess

उदाहरण

UnBlockUserFromComment उदाहरण
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 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 // response from `UnBlockUserFromComment`: UnblockSuccess
26 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UnBlockUserFromComment`: %v\n", resp)
27}
28

UnFlagComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
userIdstringqueryनहीं
anonUserIdstringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: FlagCommentResponse

उदाहरण

UnFlagComment उदाहरण
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 userId := "userId_example" // string | (optional)
15 anonUserId := "anonUserId_example" // string | (optional)
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` से प्रतिक्रिया: FlagCommentResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UnFlagComment`: %v\n", resp)
26}
27

UnLockComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
commentIdstringpathहाँ
broadcastIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

UnLockComment उदाहरण
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 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 // response from `UnLockComment`: APIEmptyResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UnLockComment`: %v\n", resp)
26}
27

UnPinComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
commentIdstringpathहाँ
broadcastIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: ChangeCommentPinStatusResponse

उदाहरण

UnPinComment उदाहरण
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 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 // response from `UnPinComment`: ChangeCommentPinStatusResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UnPinComment`: %v\n", resp)
26}
27

UpdateComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
contextUserIdstringqueryनहीं
doSpamCheckbooleanqueryनहीं
isLivebooleanqueryनहीं

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

UpdateComment उदाहरण
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 updatableCommentParams := *openapiclient.NewUpdatableCommentParams() // UpdatableCommentParams |
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).UpdatableCommentParams(updatableCommentParams).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` से प्रतिक्रिया: APIEmptyResponse
27 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateComment`: %v\n", resp)
28}
29

VoteComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
commentIdstringpathहाँ
urlIdstringqueryहाँ
broadcastIdstringqueryहाँ
sessionIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न: VoteResponse

उदाहरण

VoteComment उदाहरण
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 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` से प्रतिक्रिया: VoteResponse
28 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.VoteComment`: %v\n", resp)
29}
30

GetCommentsForUser Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
userIdstringqueryनहीं
directionstringqueryनहीं
repliesToUserIdstringqueryनहीं
pagenumberqueryनहीं
includei10nbooleanqueryनहीं
localestringqueryनहीं
isCrawlerbooleanqueryनहीं

प्रतिक्रिया

लौटाता है: GetCommentsForUserResponse

उदाहरण

GetCommentsForUser उदाहरण
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 userId := "userId_example" // string | (वैकल्पिक)
13 direction := openapiclient.SortDirections("OF") // SortDirections | (वैकल्पिक)
14 repliesToUserId := "repliesToUserId_example" // string | (वैकल्पिक)
15 page := float64(1.2) // float64 | (वैकल्पिक)
16 includei10n := true // bool | (वैकल्पिक)
17 locale := "locale_example" // string | (वैकल्पिक)
18 isCrawler := true // bool | (वैकल्पिक)
19
20 configuration := openapiclient.NewConfiguration()
21 apiClient := openapiclient.NewAPIClient(configuration)
22 resp, r, err := apiClient.PublicAPI.GetCommentsForUser(context.Background()).UserId(userId).Direction(direction).RepliesToUserId(repliesToUserId).Page(page).Includei10n(includei10n).Locale(locale).IsCrawler(isCrawler).Execute()
23 if err != nil {
24 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetCommentsForUser``: %v\n", err)
25 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
26 }
27 // `GetCommentsForUser` से प्रतिक्रिया: GetCommentsForUserResponse
28 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetCommentsForUser`: %v\n", resp)
29}
30

AddDomainConfig Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

रिटर्न करता है: AddDomainConfigResponse

उदाहरण

AddDomainConfig उदाहरण
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 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` से प्रतिक्रिया: AddDomainConfigResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AddDomainConfig`: %v\n", resp)
24}
25

DeleteDomainConfig Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
domainstringpathहाँ

प्रतिक्रिया

लौटाता है: DeleteDomainConfigResponse

उदाहरण

DeleteDomainConfig उदाहरण
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 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` से प्रतिक्रिया: DeleteDomainConfigResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteDomainConfig`: %v\n", resp)
24}
25

GetDomainConfig Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
domainstringpathहाँ

प्रतिक्रिया

लौटाता है: GetDomainConfigResponse

उदाहरण

GetDomainConfig उदाहरण
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 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 // response from `GetDomainConfig`: GetDomainConfigResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetDomainConfig`: %v\n", resp)
24}
25

GetDomainConfigs Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: GetDomainConfigsResponse

उदाहरण

GetDomainConfigs उदाहरण
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.GetDomainConfigs(context.Background()).TenantId(tenantId).Execute()
17 if err != nil {
18 fmt.Fprintf(os.Stderr, "`DefaultAPI.GetDomainConfigs` को कॉल करते समय त्रुटि: %v\n", err)
19 fmt.Fprintf(os.Stderr, "पूर्ण HTTP प्रतिक्रिया: %v\n", r)
20 }
21 // response from `GetDomainConfigs`: GetDomainConfigsResponse
22 fmt.Fprintf(os.Stdout, "`DefaultAPI.GetDomainConfigs` से प्रतिक्रिया: %v\n", resp)
23}
24

PatchDomainConfig Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
domainToUpdatestringpathहाँ

प्रतिक्रिया

लौटाता है: PatchDomainConfigResponse

उदाहरण

PatchDomainConfig उदाहरण
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 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 // `PatchDomainConfig` से प्रतिक्रिया: PatchDomainConfigResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PatchDomainConfig`: %v\n", resp)
25}
26

PutDomainConfig Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
domainToUpdatestringpathहाँ

प्रतिक्रिया

लौटाता है: PutDomainConfigResponse

उदाहरण

PutDomainConfig उदाहरण
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 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` से प्रतिक्रिया: PutDomainConfigResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PutDomainConfig`: %v\n", resp)
25}
26

CreateEmailTemplate Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: CreateEmailTemplateResponse

उदाहरण

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` से प्रतिक्रिया: CreateEmailTemplateResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateEmailTemplate`: %v\n", resp)
24}
25

DeleteEmailTemplate Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

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 // response from `DeleteEmailTemplate`: APIEmptyResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteEmailTemplate`: %v\n", resp)
24}
25

DeleteEmailTemplateRenderError Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
errorIdstringpathहाँ

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

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`: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteEmailTemplateRenderError`: %v\n", resp)
25}
26

GetEmailTemplate Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

लौटाता है: GetEmailTemplateResponse

उदाहरण

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` से प्रतिक्रिया: GetEmailTemplateResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetEmailTemplate`: %v\n", resp)
24}
25

GetEmailTemplateDefinitions Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: GetEmailTemplateDefinitionsResponse

उदाहरण

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 // response from `GetEmailTemplateDefinitions`: GetEmailTemplateDefinitionsResponse
22 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetEmailTemplateDefinitions`: %v\n", resp)
23}
24

GetEmailTemplateRenderErrors Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
skipnumberqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetEmailTemplateRenderErrorsResponse

उदाहरण

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

GetEmailTemplates Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
skipnumberqueryनहीं

प्रतिक्रिया

लौटाता है: GetEmailTemplatesResponse

उदाहरण

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 // response from `GetEmailTemplates`: GetEmailTemplatesResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetEmailTemplates`: %v\n", resp)
24}
25

RenderEmailTemplate Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
localestringqueryनहीं

प्रतिक्रिया

लौटाता है: RenderEmailTemplateResponse

उदाहरण

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`: RenderEmailTemplateResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.RenderEmailTemplate`: %v\n", resp)
25}
26

UpdateEmailTemplate Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

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` से प्रतिक्रिया: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateEmailTemplate`: %v\n", resp)
25}
26

GetEventLog Internal Link

req tenantId urlId userIdWS

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँ
userIdWSstringqueryहाँ
startTimeintegerqueryहाँ
endTimeintegerqueryनहीं

प्रतिक्रिया

लौटाता है: GetEventLogResponse

उदाहरण

GetEventLog उदाहरण
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 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` से प्रतिक्रिया: GetEventLogResponse
26 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetEventLog`: %v\n", resp)
27}
28

GetGlobalEventLog Internal Link

req tenantId urlId userIdWS

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँ
userIdWSstringqueryहाँ
startTimeintegerqueryहाँ
endTimeintegerqueryनहीं

प्रतिक्रिया

लौटाता है: GetEventLogResponse

उदाहरण

GetGlobalEventLog उदाहरण
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 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 // response from `GetGlobalEventLog`: GetEventLogResponse
26 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetGlobalEventLog`: %v\n", resp)
27}
28

CreateFeedPost Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
broadcastIdstringqueryनहीं
isLivebooleanqueryनहीं
doSpamCheckbooleanqueryनहीं
skipDupCheckbooleanqueryनहीं

प्रतिक्रिया

लौटाता है: CreateFeedPostsResponse

उदाहरण

CreateFeedPost उदाहरण
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 createFeedPostParams := *openapiclient.NewCreateFeedPostParams() // CreateFeedPostParams |
14 broadcastId := "broadcastId_example" // string | (optional)
15 isLive := true // bool | (optional)
16 doSpamCheck := true // bool | (optional)
17 skipDupCheck := true // bool | (optional)
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 // response from `CreateFeedPost`: CreateFeedPostsResponse
27 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateFeedPost`: %v\n", resp)
28}
29

CreateFeedPostPublic Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: CreateFeedPostResponse

उदाहरण

CreateFeedPostPublic उदाहरण
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 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` से प्रतिक्रिया: CreateFeedPostResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.CreateFeedPostPublic`: %v\n", resp)
26}
27

DeleteFeedPostPublic Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
postIdstringpathहाँ
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: DeleteFeedPostPublicResponse

उदाहरण

DeleteFeedPostPublic उदाहरण
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 postId := "postId_example" // string |
14 broadcastId := "broadcastId_example" // string | (optional)
15 sso := "sso_example" // string | (optional)
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 // response from `DeleteFeedPostPublic`: DeleteFeedPostPublicResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteFeedPostPublic`: %v\n", resp)
26}
27

GetFeedPosts Internal Link

req tenantId afterId

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
afterIdstringqueryनहीं
limitintegerqueryनहीं
tagsarrayqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetFeedPostsResponse

उदाहरण

GetFeedPosts उदाहरण
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 afterId := "afterId_example" // string | (optional)
14 limit := int32(56) // int32 | (optional)
15 tags := []string{"Inner_example"} // []string | (optional)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.GetFeedPosts(context.Background()).TenantId(tenantId).AfterId(afterId).Limit(limit).Tags(tags).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetFeedPosts``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // response from `GetFeedPosts`: GetFeedPostsResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetFeedPosts`: %v\n", resp)
26}
27

GetFeedPostsPublic Internal Link

req tenantId afterId

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
afterIdstringqueryनहीं
limitintegerqueryनहीं
tagsarrayqueryनहीं
ssostringqueryनहीं
isCrawlerbooleanqueryनहीं
includeUserInfobooleanqueryनहीं

प्रतिक्रिया

रिटर्न करता है: PublicFeedPostsResponse

उदाहरण

GetFeedPostsPublic उदाहरण
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 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 // response from `GetFeedPostsPublic`: PublicFeedPostsResponse
28 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetFeedPostsPublic`: %v\n", resp)
29}
30

GetFeedPostsStats Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
postIdsarrayqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: FeedPostsStatsResponse

उदाहरण

GetFeedPostsStats उदाहरण
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 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` से प्रतिक्रिया: FeedPostsStatsResponse
24 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetFeedPostsStats`: %v\n", resp)
25}
26

GetUserReactsPublic Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
postIdsarrayqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: UserReactsResponse

उदाहरण

GetUserReactsPublic उदाहरण
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 postIds := []string{"Inner_example"} // []string | (optional)
14 sso := "sso_example" // string | (optional)
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` से प्रतिक्रिया: UserReactsResponse
24 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserReactsPublic`: %v\n", resp)
25}
26

ReactFeedPostPublic Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
postIdstringpathहाँ
isUndobooleanqueryनहीं
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: ReactFeedPostResponse

उदाहरण

ReactFeedPostPublic उदाहरण
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 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` से प्रतिक्रिया: ReactFeedPostResponse
27 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.ReactFeedPostPublic`: %v\n", resp)
28}
29

UpdateFeedPost Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

UpdateFeedPost उदाहरण
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 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` से प्रतिक्रिया: APIEmptyResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateFeedPost`: %v\n", resp)
26}
27

UpdateFeedPostPublic Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
postIdstringpathहाँ
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: CreateFeedPostResponse

उदाहरण

UpdateFeedPostPublic उदाहरण
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 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, "`PublicAPI.UpdateFeedPostPublic` को कॉल करते समय त्रुटि: %v\n", err)
23 fmt.Fprintf(os.Stderr, "पूर्ण HTTP प्रतिक्रिया: %v\n", r)
24 }
25 // `UpdateFeedPostPublic` से प्रतिक्रिया: CreateFeedPostResponse
26 fmt.Fprintf(os.Stdout, "`PublicAPI.UpdateFeedPostPublic` से प्रतिक्रिया: %v\n", resp)
27}
28

FlagCommentPublic Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
isFlaggedbooleanqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

FlagCommentPublic उदाहरण
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 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` से प्रतिक्रिया: APIEmptyResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.FlagCommentPublic`: %v\n", resp)
26}
27

GetGifLarge Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
largeInternalURLSanitizedstringqueryहाँ

प्रतिक्रिया

लौटाता है: GifGetLargeResponse

उदाहरण

GetGifLarge उदाहरण
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 largeInternalURLSanitized := "largeInternalURLSanitized_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.PublicAPI.GetGifLarge(context.Background(), tenantId).LargeInternalURLSanitized(largeInternalURLSanitized).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetGifLarge``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // response from `GetGifLarge`: GifGetLargeResponse
23 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetGifLarge`: %v\n", resp)
24}
25

GetGifsSearch Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
searchstringqueryहाँ
localestringqueryनहीं
ratingstringqueryनहीं
pagenumberqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetGifsSearchResponse

उदाहरण

GetGifsSearch उदाहरण
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 search := "search_example" // string |
14 locale := "locale_example" // string | (वैकल्पिक)
15 rating := "rating_example" // string | (वैकल्पिक)
16 page := float64(1.2) // float64 | (वैकल्पिक)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.PublicAPI.GetGifsSearch(context.Background(), tenantId).Search(search).Locale(locale).Rating(rating).Page(page).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetGifsSearch``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // response from `GetGifsSearch`: GetGifsSearchResponse
26 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetGifsSearch`: %v\n", resp)
27}
28

GetGifsTrending Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
localestringqueryनहीं
ratingstringqueryनहीं
pagenumberqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetGifsTrendingResponse

उदाहरण

GetGifsTrending उदाहरण
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 locale := "locale_example" // string | (optional)
14 rating := "rating_example" // string | (optional)
15 page := float64(1.2) // float64 | (optional)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.GetGifsTrending(context.Background(), tenantId).Locale(locale).Rating(rating).Page(page).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetGifsTrending``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // response from `GetGifsTrending`: GetGifsTrendingResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetGifsTrending`: %v\n", resp)
26}
27

AddHashTag Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

रिटर्न करता है: CreateHashTagResponse

उदाहरण

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` से प्रतिक्रिया: CreateHashTagResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AddHashTag`: %v\n", resp)
24}
25

AddHashTagsBulk Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: BulkCreateHashTagsResponse

उदाहरण

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 // response from `AddHashTagsBulk`: BulkCreateHashTagsResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AddHashTagsBulk`: %v\n", resp)
24}
25

DeleteHashTag Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
tagstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

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 tenantId := "tenantId_example" // string |
13 tag := "tag_example" // string |
14 deleteHashTagRequestBody := *openapiclient.NewDeleteHashTagRequestBody() // DeleteHashTagRequestBody | (optional)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.DeleteHashTag(context.Background(), tag).TenantId(tenantId).DeleteHashTagRequestBody(deleteHashTagRequestBody).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 // response from `DeleteHashTag`: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteHashTag`: %v\n", resp)
25}
26

GetHashTags Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
pagenumberqueryनहीं

प्रतिक्रिया

लौटाता है: GetHashTagsResponse

उदाहरण

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 // response from `GetHashTags`: GetHashTagsResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetHashTags`: %v\n", resp)
24}
25

PatchHashTag Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
tagstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: UpdateHashTagResponse

उदाहरण

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 tenantId := "tenantId_example" // string |
13 tag := "tag_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` से प्रतिक्रिया: UpdateHashTagResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PatchHashTag`: %v\n", resp)
25}
26

DeleteModerationVote Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
voteIdstringpathहाँ
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: VoteDeleteResponse

उदाहरण

DeleteModerationVote उदाहरण
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 voteId := "voteId_example" // string |
15 broadcastId := "broadcastId_example" // string | (optional)
16 sso := "sso_example" // string | (optional)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.ModerationAPI.DeleteModerationVote(context.Background(), commentId, voteId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.DeleteModerationVote``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // response from `DeleteModerationVote`: VoteDeleteResponse
26 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.DeleteModerationVote`: %v\n", resp)
27}
28

GetApiComments Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
pagenumberqueryनहीं
countnumberqueryनहीं
text-searchstringqueryनहीं
byIPFromCommentstringqueryनहीं
filtersstringqueryनहीं
searchFiltersstringqueryनहीं
sortsstringqueryनहीं
demobooleanqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: ModerationAPIGetCommentsResponse

उदाहरण

GetApiComments उदाहरण
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 count := float64(1.2) // float64 | (वैकल्पिक)
15 textSearch := "textSearch_example" // string | (वैकल्पिक)
16 byIPFromComment := "byIPFromComment_example" // string | (वैकल्पिक)
17 filters := "filters_example" // string | (वैकल्पिक)
18 searchFilters := "searchFilters_example" // string | (वैकल्पिक)
19 sorts := "sorts_example" // string | (वैकल्पिक)
20 demo := true // bool | (वैकल्पिक)
21 sso := "sso_example" // string | (वैकल्पिक)
22
23 configuration := openapiclient.NewConfiguration()
24 apiClient := openapiclient.NewAPIClient(configuration)
25 resp, r, err := apiClient.ModerationAPI.GetApiComments(context.Background()).TenantId(tenantId).Page(page).Count(count).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Demo(demo).Sso(sso).Execute()
26 if err != nil {
27 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetApiComments``: %v\n", err)
28 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
29 }
30 // response from `GetApiComments`: ModerationAPIGetCommentsResponse
31 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetApiComments`: %v\n", resp)
32}
33

GetApiExportStatus Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
batchJobIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न: ModerationExportStatusResponse

उदाहरण

GetApiExportStatus उदाहरण
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 batchJobId := "batchJobId_example" // string | (वैकल्पिक)
14 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.GetApiExportStatus(context.Background()).TenantId(tenantId).BatchJobId(batchJobId).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetApiExportStatus``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `GetApiExportStatus` से प्रतिक्रिया: ModerationExportStatusResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetApiExportStatus`: %v\n", resp)
25}
26

GetApiIds Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
text-searchstringqueryनहीं
byIPFromCommentstringqueryनहीं
filtersstringqueryनहीं
searchFiltersstringqueryनहीं
afterIdstringqueryनहीं
demobooleanqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: ModerationAPIGetCommentIdsResponse

उदाहरण

GetApiIds उदाहरण
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 textSearch := "textSearch_example" // string | (वैकल्पिक)
14 byIPFromComment := "byIPFromComment_example" // string | (वैकल्पिक)
15 filters := "filters_example" // string | (वैकल्पिक)
16 searchFilters := "searchFilters_example" // string | (वैकल्पिक)
17 afterId := "afterId_example" // string | (वैकल्पिक)
18 demo := true // bool | (वैकल्पिक)
19 sso := "sso_example" // string | (वैकल्पिक)
20
21 configuration := openapiclient.NewConfiguration()
22 apiClient := openapiclient.NewAPIClient(configuration)
23 resp, r, err := apiClient.ModerationAPI.GetApiIds(context.Background()).TenantId(tenantId).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).AfterId(afterId).Demo(demo).Sso(sso).Execute()
24 if err != nil {
25 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetApiIds``: %v\n", err)
26 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
27 }
28 // `GetApiIds` से प्रतिक्रिया: ModerationAPIGetCommentIdsResponse
29 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetApiIds`: %v\n", resp)
30}
31

GetBanUsersFromComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetBannedUsersFromCommentResponse

उदाहरण

GetBanUsersFromComment उदाहरण
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 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.GetBanUsersFromComment(context.Background(), commentId).TenantId(tenantId).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetBanUsersFromComment``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // response from `GetBanUsersFromComment`: GetBannedUsersFromCommentResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetBanUsersFromComment`: %v\n", resp)
25}
26

GetCommentBanStatus Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetCommentBanStatusResponse

उदाहरण

GetCommentBanStatus उदाहरण
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 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.GetCommentBanStatus(context.Background(), commentId).TenantId(tenantId).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetCommentBanStatus``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `GetCommentBanStatus` से प्रतिक्रिया: GetCommentBanStatusResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetCommentBanStatus`: %v\n", resp)
25}
26

GetCommentChildren Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: ModerationAPIChildCommentsResponse

उदाहरण

GetCommentChildren उदाहरण
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 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.GetCommentChildren(context.Background(), commentId).TenantId(tenantId).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetCommentChildren``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `GetCommentChildren` से प्रतिक्रिया: ModerationAPIChildCommentsResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetCommentChildren`: %v\n", resp)
25}
26

GetCount Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
text-searchstringqueryनहीं
byIPFromCommentstringqueryनहीं
filterstringqueryनहीं
searchFiltersstringqueryनहीं
demobooleanqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: ModerationAPICountCommentsResponse

उदाहरण

GetCount उदाहरण
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 textSearch := "textSearch_example" // string | (वैकल्पिक)
14 byIPFromComment := "byIPFromComment_example" // string | (वैकल्पिक)
15 filter := "filter_example" // string | (वैकल्पिक)
16 searchFilters := "searchFilters_example" // string | (वैकल्पिक)
17 demo := true // bool | (वैकल्पिक)
18 sso := "sso_example" // string | (वैकल्पिक)
19
20 configuration := openapiclient.NewConfiguration()
21 apiClient := openapiclient.NewAPIClient(configuration)
22 resp, r, err := apiClient.ModerationAPI.GetCount(context.Background()).TenantId(tenantId).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filter(filter).SearchFilters(searchFilters).Demo(demo).Sso(sso).Execute()
23 if err != nil {
24 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetCount``: %v\n", err)
25 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
26 }
27 // `GetCount` से प्रतिक्रिया: ModerationAPICountCommentsResponse
28 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetCount`: %v\n", resp)
29}
30

GetCounts Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: GetBannedUsersCountResponse

उदाहरण

GetCounts उदाहरण
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 sso := "sso_example" // string | (वैकल्पिक)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.ModerationAPI.GetCounts(context.Background()).TenantId(tenantId).Sso(sso).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetCounts``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // `GetCounts` से प्रतिक्रिया: GetBannedUsersCountResponse
23 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetCounts`: %v\n", resp)
24}
25

GetLogs Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: ModerationAPIGetLogsResponse

उदाहरण

GetLogs उदाहरण
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 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.GetLogs(context.Background(), commentId).TenantId(tenantId).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetLogs``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `GetLogs` से प्रतिक्रिया: ModerationAPIGetLogsResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetLogs`: %v\n", resp)
25}
26

GetManualBadges Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: GetTenantManualBadgesResponse

उदाहरण

GetManualBadges उदाहरण
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 sso := "sso_example" // string | (वैकल्पिक)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.ModerationAPI.GetManualBadges(context.Background()).TenantId(tenantId).Sso(sso).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetManualBadges``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // response from `GetManualBadges`: GetTenantManualBadgesResponse
23 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetManualBadges`: %v\n", resp)
24}
25

GetManualBadgesForUser Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
badgesUserIdstringqueryनहीं
commentIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetUserManualBadgesResponse

उदाहरण

GetManualBadgesForUser उदाहरण
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 badgesUserId := "badgesUserId_example" // string | (optional)
14 commentId := "commentId_example" // string | (optional)
15 sso := "sso_example" // string | (optional)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.ModerationAPI.GetManualBadgesForUser(context.Background()).TenantId(tenantId).BadgesUserId(badgesUserId).CommentId(commentId).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetManualBadgesForUser``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // response from `GetManualBadgesForUser`: GetUserManualBadgesResponse
25 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetManualBadgesForUser`: %v\n", resp)
26}
27

GetModerationComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
includeEmailbooleanqueryनहीं
includeIPbooleanqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: ModerationAPICommentResponse

उदाहरण

GetModerationComment उदाहरण
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 includeEmail := true // bool | (वैकल्पिक)
15 includeIP := true // bool | (वैकल्पिक)
16 sso := "sso_example" // string | (वैकल्पिक)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.ModerationAPI.GetModerationComment(context.Background(), commentId).TenantId(tenantId).IncludeEmail(includeEmail).IncludeIP(includeIP).Sso(sso).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetModerationComment``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // response from `GetModerationComment`: ModerationAPICommentResponse
26 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetModerationComment`: %v\n", resp)
27}
28

GetModerationCommentText Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetCommentTextResponse

उदाहरण

GetModerationCommentText उदाहरण
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 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.GetModerationCommentText(context.Background(), commentId).TenantId(tenantId).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetModerationCommentText``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `GetModerationCommentText` से प्रतिक्रिया: GetCommentTextResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetModerationCommentText`: %v\n", resp)
25}
26

GetPreBanSummary Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
includeByUserIdAndEmailbooleanqueryनहीं
includeByIPbooleanqueryनहीं
includeByEmailDomainbooleanqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: PreBanSummary

उदाहरण

GetPreBanSummary उदाहरण
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 includeByUserIdAndEmail := true // bool | (वैकल्पिक)
15 includeByIP := true // bool | (वैकल्पिक)
16 includeByEmailDomain := true // bool | (वैकल्पिक)
17 sso := "sso_example" // string | (वैकल्पिक)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.ModerationAPI.GetPreBanSummary(context.Background(), commentId).TenantId(tenantId).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetPreBanSummary``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // `GetPreBanSummary` से प्रतिक्रिया: PreBanSummary
27 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetPreBanSummary`: %v\n", resp)
28}
29

GetSearchCommentsSummary Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
valuestringqueryनहीं
filtersstringqueryनहीं
searchFiltersstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: ModerationCommentSearchResponse

उदाहरण

GetSearchCommentsSummary उदाहरण
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 value := "value_example" // string | (वैकल्पिक)
14 filters := "filters_example" // string | (वैकल्पिक)
15 searchFilters := "searchFilters_example" // string | (वैकल्पिक)
16 sso := "sso_example" // string | (वैकल्पिक)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.ModerationAPI.GetSearchCommentsSummary(context.Background()).TenantId(tenantId).Value(value).Filters(filters).SearchFilters(searchFilters).Sso(sso).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchCommentsSummary``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // `GetSearchCommentsSummary` से प्रतिक्रिया: ModerationCommentSearchResponse
26 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetSearchCommentsSummary`: %v\n", resp)
27}
28

GetSearchPages Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
valuestringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: ModerationPageSearchResponse

उदाहरण

GetSearchPages उदाहरण
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 value := "value_example" // string | (वैकल्पिक)
14 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.GetSearchPages(context.Background()).TenantId(tenantId).Value(value).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchPages``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `GetSearchPages` से प्रतिक्रिया: ModerationPageSearchResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetSearchPages`: %v\n", resp)
25}
26

GetSearchSites Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
valuestringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: ModerationSiteSearchResponse

उदाहरण

GetSearchSites उदाहरण
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 value := "value_example" // string | (optional)
14 sso := "sso_example" // string | (optional)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.GetSearchSites(context.Background()).TenantId(tenantId).Value(value).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchSites``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // response from `GetSearchSites`: ModerationSiteSearchResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetSearchSites`: %v\n", resp)
25}
26

GetSearchSuggest Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
text-searchstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: ModerationSuggestResponse

उदाहरण

GetSearchSuggest उदाहरण
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 textSearch := "textSearch_example" // string | (वैकल्पिक)
14 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.GetSearchSuggest(context.Background()).TenantId(tenantId).TextSearch(textSearch).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchSuggest``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `GetSearchSuggest` से प्रतिक्रिया: ModerationSuggestResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetSearchSuggest`: %v\n", resp)
25}
26

GetSearchUsers Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
valuestringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न: ModerationUserSearchResponse

उदाहरण

GetSearchUsers उदाहरण
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 value := "value_example" // string | (optional)
14 sso := "sso_example" // string | (optional)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.GetSearchUsers(context.Background()).TenantId(tenantId).Value(value).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchUsers``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // response from `GetSearchUsers`: ModerationUserSearchResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetSearchUsers`: %v\n", resp)
25}
26

GetTrustFactor Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
userIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: GetUserTrustFactorResponse

उदाहरण

GetTrustFactor उदाहरण
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 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.GetTrustFactor(context.Background()).TenantId(tenantId).UserId(userId).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetTrustFactor``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `GetTrustFactor` से प्रतिक्रिया: GetUserTrustFactorResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetTrustFactor`: %v\n", resp)
25}
26

GetUserBanPreference Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: APIModerateGetUserBanPreferencesResponse

उदाहरण

GetUserBanPreference उदाहरण
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 sso := "sso_example" // string | (वैकल्पिक)
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.ModerationAPI.GetUserBanPreference(context.Background()).TenantId(tenantId).Sso(sso).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetUserBanPreference``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // response from `GetUserBanPreference`: APIModerateGetUserBanPreferencesResponse
23 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetUserBanPreference`: %v\n", resp)
24}
25

GetUserInternalProfile Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: GetUserInternalProfileResponse

उदाहरण

GetUserInternalProfile उदाहरण
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 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.GetUserInternalProfile(context.Background()).TenantId(tenantId).CommentId(commentId).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetUserInternalProfile``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // response from `GetUserInternalProfile`: GetUserInternalProfileResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.GetUserInternalProfile`: %v\n", resp)
25}
26

PostAdjustCommentVotes Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न: AdjustVotesResponse

उदाहरण

PostAdjustCommentVotes उदाहरण
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 adjustCommentVotesParams := *openapiclient.NewAdjustCommentVotesParams(float64(123)) // AdjustCommentVotesParams |
15 broadcastId := "broadcastId_example" // string | (optional)
16 sso := "sso_example" // string | (optional)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.ModerationAPI.PostAdjustCommentVotes(context.Background(), commentId).TenantId(tenantId).AdjustCommentVotesParams(adjustCommentVotesParams).BroadcastId(broadcastId).Sso(sso).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostAdjustCommentVotes``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // response from `PostAdjustCommentVotes`: AdjustVotesResponse
26 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostAdjustCommentVotes`: %v\n", resp)
27}
28

PostApiExport Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
text-searchstringqueryनहीं
byIPFromCommentstringqueryनहीं
filtersstringqueryनहीं
searchFiltersstringqueryनहीं
sortsstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: ModerationExportResponse

उदाहरण

PostApiExport उदाहरण
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 textSearch := "textSearch_example" // string | (वैकल्पिक)
14 byIPFromComment := "byIPFromComment_example" // string | (वैकल्पिक)
15 filters := "filters_example" // string | (वैकल्पिक)
16 searchFilters := "searchFilters_example" // string | (वैकल्पिक)
17 sorts := "sorts_example" // string | (वैकल्पिक)
18 sso := "sso_example" // string | (वैकल्पिक)
19
20 configuration := openapiclient.NewConfiguration()
21 apiClient := openapiclient.NewAPIClient(configuration)
22 resp, r, err := apiClient.ModerationAPI.PostApiExport(context.Background()).TenantId(tenantId).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Sso(sso).Execute()
23 if err != nil {
24 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostApiExport``: %v\n", err)
25 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
26 }
27 // `PostApiExport` से प्रतिक्रिया: ModerationExportResponse
28 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostApiExport`: %v\n", resp)
29}
30

PostBanUserFromComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
banEmailbooleanqueryनहीं
banEmailDomainbooleanqueryनहीं
banIPbooleanqueryनहीं
deleteAllUsersCommentsbooleanqueryनहीं
bannedUntilstringqueryनहीं
isShadowBanbooleanqueryनहीं
updateIdstringqueryनहीं
banReasonstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: BanUserFromCommentResult

उदाहरण

PostBanUserFromComment उदाहरण
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 banEmail := true // bool | (optional)
15 banEmailDomain := true // bool | (optional)
16 banIP := true // bool | (optional)
17 deleteAllUsersComments := true // bool | (optional)
18 bannedUntil := "bannedUntil_example" // string | (optional)
19 isShadowBan := true // bool | (optional)
20 updateId := "updateId_example" // string | (optional)
21 banReason := "banReason_example" // string | (optional)
22 sso := "sso_example" // string | (optional)
23
24 configuration := openapiclient.NewConfiguration()
25 apiClient := openapiclient.NewAPIClient(configuration)
26 resp, r, err := apiClient.ModerationAPI.PostBanUserFromComment(context.Background(), commentId).TenantId(tenantId).BanEmail(banEmail).BanEmailDomain(banEmailDomain).BanIP(banIP).DeleteAllUsersComments(deleteAllUsersComments).BannedUntil(bannedUntil).IsShadowBan(isShadowBan).UpdateId(updateId).BanReason(banReason).Sso(sso).Execute()
27 if err != nil {
28 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostBanUserFromComment``: %v\n", err)
29 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
30 }
31 // response from `PostBanUserFromComment`: BanUserFromCommentResult
32 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostBanUserFromComment`: %v\n", resp)
33}
34

PostBanUserUndo Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

PostBanUserUndo उदाहरण
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 banUserUndoParams := *openapiclient.NewBanUserUndoParams(*openapiclient.NewAPIBanUserChangeLog()) // BanUserUndoParams |
14 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.PostBanUserUndo(context.Background()).TenantId(tenantId).BanUserUndoParams(banUserUndoParams).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostBanUserUndo``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `PostBanUserUndo` से प्रतिक्रिया: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostBanUserUndo`: %v\n", resp)
25}
26

PostBulkPreBanSummary Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
includeByUserIdAndEmailbooleanqueryनहीं
includeByIPbooleanqueryनहीं
includeByEmailDomainbooleanqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: BulkPreBanSummary

उदाहरण

PostBulkPreBanSummary उदाहरण
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 bulkPreBanParams := *openapiclient.NewBulkPreBanParams([]string{"CommentIds_example"}) // BulkPreBanParams |
14 includeByUserIdAndEmail := true // bool | (वैकल्पिक)
15 includeByIP := true // bool | (वैकल्पिक)
16 includeByEmailDomain := true // bool | (वैकल्पिक)
17 sso := "sso_example" // string | (वैकल्पिक)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.ModerationAPI.PostBulkPreBanSummary(context.Background()).TenantId(tenantId).BulkPreBanParams(bulkPreBanParams).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostBulkPreBanSummary``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // `PostBulkPreBanSummary` से प्रतिक्रिया: BulkPreBanSummary
27 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostBulkPreBanSummary`: %v\n", resp)
28}
29

PostCommentsByIds Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: ModerationAPIChildCommentsResponse

उदाहरण

PostCommentsByIds उदाहरण
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 commentsByIdsParams := *openapiclient.NewCommentsByIdsParams([]string{"Ids_example"}) // CommentsByIdsParams |
14 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.PostCommentsByIds(context.Background()).TenantId(tenantId).CommentsByIdsParams(commentsByIdsParams).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostCommentsByIds``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `PostCommentsByIds` से प्रतिक्रिया: ModerationAPIChildCommentsResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostCommentsByIds`: %v\n", resp)
25}
26

PostFlagComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

PostFlagComment उदाहरण
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 broadcastId := "broadcastId_example" // string | (optional)
15 sso := "sso_example" // string | (optional)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.ModerationAPI.PostFlagComment(context.Background(), commentId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostFlagComment``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // response from `PostFlagComment`: APIEmptyResponse
25 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostFlagComment`: %v\n", resp)
26}
27

PostRemoveComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: PostRemoveCommentApiResponse

उदाहरण

PostRemoveComment उदाहरण
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 broadcastId := "broadcastId_example" // string | (optional)
15 sso := "sso_example" // string | (optional)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.ModerationAPI.PostRemoveComment(context.Background(), commentId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostRemoveComment``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // response from `PostRemoveComment`: PostRemoveCommentApiResponse
25 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostRemoveComment`: %v\n", resp)
26}
27

PostRestoreDeletedComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

PostRestoreDeletedComment उदाहरण
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 broadcastId := "broadcastId_example" // string | (वैकल्पिक)
15 sso := "sso_example" // string | (वैकल्पिक)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.ModerationAPI.PostRestoreDeletedComment(context.Background(), commentId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostRestoreDeletedComment``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // `PostRestoreDeletedComment` से प्रतिक्रिया: APIEmptyResponse
25 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostRestoreDeletedComment`: %v\n", resp)
26}
27

PostSetCommentApprovalStatus Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
approvedbooleanqueryनहीं
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: SetCommentApprovedResponse

उदाहरण

PostSetCommentApprovalStatus उदाहरण
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 approved := true // bool | (वैकल्पिक)
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.ModerationAPI.PostSetCommentApprovalStatus(context.Background(), commentId).TenantId(tenantId).Approved(approved).BroadcastId(broadcastId).Sso(sso).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostSetCommentApprovalStatus``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // `PostSetCommentApprovalStatus` से प्रतिक्रिया: SetCommentApprovedResponse
26 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostSetCommentApprovalStatus`: %v\n", resp)
27}
28

PostSetCommentReviewStatus Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
reviewedbooleanqueryनहीं
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

PostSetCommentReviewStatus उदाहरण
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 reviewed := true // bool | (वैकल्पिक)
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.ModerationAPI.PostSetCommentReviewStatus(context.Background(), commentId).TenantId(tenantId).Reviewed(reviewed).BroadcastId(broadcastId).Sso(sso).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostSetCommentReviewStatus``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // `PostSetCommentReviewStatus` से प्रतिक्रिया: APIEmptyResponse
26 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostSetCommentReviewStatus`: %v\n", resp)
27}
28

PostSetCommentSpamStatus Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
spambooleanqueryनहीं
permNotSpambooleanqueryनहीं
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

PostSetCommentSpamStatus उदाहरण
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 spam := true // bool | (वैकल्पिक)
15 permNotSpam := 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.ModerationAPI.PostSetCommentSpamStatus(context.Background(), commentId).TenantId(tenantId).Spam(spam).PermNotSpam(permNotSpam).BroadcastId(broadcastId).Sso(sso).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostSetCommentSpamStatus``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // `PostSetCommentSpamStatus` से प्रतिक्रिया: APIEmptyResponse
27 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostSetCommentSpamStatus`: %v\n", resp)
28}
29

PostSetCommentText Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: SetCommentTextResponse

उदाहरण

PostSetCommentText उदाहरण
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 setCommentTextParams := *openapiclient.NewSetCommentTextParams("Comment_example") // SetCommentTextParams |
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.ModerationAPI.PostSetCommentText(context.Background(), commentId).TenantId(tenantId).SetCommentTextParams(setCommentTextParams).BroadcastId(broadcastId).Sso(sso).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostSetCommentText``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // `PostSetCommentText` से प्रतिक्रिया: SetCommentTextResponse
26 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostSetCommentText`: %v\n", resp)
27}
28

PostUnFlagComment Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न: APIEmptyResponse

उदाहरण

PostUnFlagComment उदाहरण
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 broadcastId := "broadcastId_example" // string | (optional)
15 sso := "sso_example" // string | (optional)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.ModerationAPI.PostUnFlagComment(context.Background(), commentId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostUnFlagComment``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // `PostUnFlagComment` से प्रतिक्रिया: APIEmptyResponse
25 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostUnFlagComment`: %v\n", resp)
26}
27

PostVote Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringpathहाँ
directionstringqueryनहीं
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: VoteResponse

उदाहरण

PostVote उदाहरण
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 broadcastId := "broadcastId_example" // string | (वैकल्पिक)
16 sso := "sso_example" // string | (वैकल्पिक)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.ModerationAPI.PostVote(context.Background(), commentId).TenantId(tenantId).Direction(direction).BroadcastId(broadcastId).Sso(sso).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostVote``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // `PostVote` से प्रतिक्रिया: VoteResponse
26 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostVote`: %v\n", resp)
27}
28

PutAwardBadge Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
badgeIdstringqueryहाँ
userIdstringqueryनहीं
commentIdstringqueryनहीं
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: AwardUserBadgeResponse

उदाहरण

PutAwardBadge उदाहरण
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 badgeId := "badgeId_example" // string |
14 userId := "userId_example" // string | (optional)
15 commentId := "commentId_example" // string | (optional)
16 broadcastId := "broadcastId_example" // string | (optional)
17 sso := "sso_example" // string | (optional)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.ModerationAPI.PutAwardBadge(context.Background()).TenantId(tenantId).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PutAwardBadge``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // response from `PutAwardBadge`: AwardUserBadgeResponse
27 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PutAwardBadge`: %v\n", resp)
28}
29

PutCloseThread Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
urlIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

PutCloseThread उदाहरण
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 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.PutCloseThread(context.Background()).TenantId(tenantId).UrlId(urlId).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PutCloseThread``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `PutCloseThread` से प्रतिक्रिया: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PutCloseThread`: %v\n", resp)
25}
26

PutRemoveBadge Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
badgeIdstringqueryहाँ
userIdstringqueryनहीं
commentIdstringqueryनहीं
broadcastIdstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: RemoveUserBadgeResponse

उदाहरण

PutRemoveBadge उदाहरण
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 badgeId := "badgeId_example" // string |
14 userId := "userId_example" // string | (optional)
15 commentId := "commentId_example" // string | (optional)
16 broadcastId := "broadcastId_example" // string | (optional)
17 sso := "sso_example" // string | (optional)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.ModerationAPI.PutRemoveBadge(context.Background()).TenantId(tenantId).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PutRemoveBadge``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // response from `PutRemoveBadge`: RemoveUserBadgeResponse
27 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PutRemoveBadge`: %v\n", resp)
28}
29

PutReopenThread Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
urlIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

PutReopenThread उदाहरण
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 sso := "sso_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.ModerationAPI.PutReopenThread(context.Background()).TenantId(tenantId).UrlId(urlId).Sso(sso).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PutReopenThread``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `PutReopenThread` से प्रतिक्रिया: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PutReopenThread`: %v\n", resp)
25}
26

SetTrustFactor Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
userIdstringqueryनहीं
trustFactorstringqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: SetUserTrustFactorResponse

उदाहरण

SetTrustFactor उदाहरण
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 trustFactor := "trustFactor_example" // string | (वैकल्पिक)
15 sso := "sso_example" // string | (वैकल्पिक)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.ModerationAPI.SetTrustFactor(context.Background()).TenantId(tenantId).UserId(userId).TrustFactor(trustFactor).Sso(sso).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.SetTrustFactor``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // `SetTrustFactor` से प्रतिक्रिया: SetUserTrustFactorResponse
25 fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.SetTrustFactor`: %v\n", resp)
26}
27

CreateModerator Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: CreateModeratorResponse

उदाहरण

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 // response from `CreateModerator`: CreateModeratorResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateModerator`: %v\n", resp)
24}
25

DeleteModerator Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
sendEmailstringqueryनहीं

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

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` से प्रतिक्रिया: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteModerator`: %v\n", resp)
25}
26

GetModerator Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

लौटाता है: GetModeratorResponse

उदाहरण

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` से प्रतिक्रिया: GetModeratorResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetModerator`: %v\n", resp)
24}
25

GetModerators Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
skipnumberqueryनहीं

प्रतिक्रिया

लौटाता है: GetModeratorsResponse

उदाहरण

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 | (optional)
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 // response from `GetModerators`: GetModeratorsResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetModerators`: %v\n", resp)
24}
25

SendInvite Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
fromNamestringqueryहाँ

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

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` से प्रतिक्रिया: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.SendInvite`: %v\n", resp)
25}
26

UpdateModerator Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

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` से प्रतिक्रिया: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateModerator`: %v\n", resp)
25}
26

DeleteNotificationCount Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

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` से प्रतिक्रिया: APIEmptyResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteNotificationCount`: %v\n", resp)
24}
25

GetCachedNotificationCount Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: GetCachedNotificationCountResponse

उदाहरण

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 // response from `GetCachedNotificationCount`: GetCachedNotificationCountResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetCachedNotificationCount`: %v\n", resp)
24}
25

GetNotificationCount Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
userIdstringqueryनहीं
urlIdstringqueryनहीं
fromCommentIdstringqueryनहीं
viewedbooleanqueryनहीं
typestringqueryनहीं

प्रतिक्रिया

लौटाता है: GetNotificationCountResponse

उदाहरण

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 // response from `GetNotificationCount`: GetNotificationCountResponse
27 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetNotificationCount`: %v\n", resp)
28}
29

GetNotifications Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
userIdstringqueryनहीं
urlIdstringqueryनहीं
fromCommentIdstringqueryनहीं
viewedbooleanqueryनहीं
typestringqueryनहीं
skipnumberqueryनहीं

प्रतिक्रिया

लौटाता है: GetNotificationsResponse

उदाहरण

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 // response from `GetNotifications`: GetNotificationsResponse
28 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetNotifications`: %v\n", resp)
29}
30

UpdateNotification Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
userIdstringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

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` से प्रतिक्रिया: APIEmptyResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateNotification`: %v\n", resp)
26}
27

CreateV1PageReact Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँ
titlestringqueryनहीं

प्रतिक्रिया

लौटाता है: CreateV1PageReact

उदाहरण

CreateV1PageReact उदाहरण
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 title := "title_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.PublicAPI.CreateV1PageReact(context.Background(), tenantId).UrlId(urlId).Title(title).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.CreateV1PageReact``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `CreateV1PageReact` से प्रतिक्रिया: CreateV1PageReact
24 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.CreateV1PageReact`: %v\n", resp)
25}
26

CreateV2PageReact Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँ
idstringqueryहाँ
titlestringqueryनहीं

प्रतिक्रिया

रिटर्न: CreateV1PageReact

उदाहरण

CreateV2PageReact उदाहरण
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 id := "id_example" // string |
15 title := "title_example" // string | (optional)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.CreateV2PageReact(context.Background(), tenantId).UrlId(urlId).Id(id).Title(title).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.CreateV2PageReact``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // response from `CreateV2PageReact`: CreateV1PageReact
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.CreateV2PageReact`: %v\n", resp)
26}
27

DeleteV1PageReact Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँ

प्रतिक्रिया

रिटर्न करता है: CreateV1PageReact

उदाहरण

DeleteV1PageReact उदाहरण
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.PublicAPI.DeleteV1PageReact(context.Background(), tenantId).UrlId(urlId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.DeleteV1PageReact``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // `DeleteV1PageReact` से प्रतिक्रिया: CreateV1PageReact
23 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteV1PageReact`: %v\n", resp)
24}
25

DeleteV2PageReact Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँ
idstringqueryहाँ

प्रतिक्रिया

रिटर्न करता है: CreateV1PageReact

उदाहरण

DeleteV2PageReact उदाहरण
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 id := "id_example" // string |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.PublicAPI.DeleteV2PageReact(context.Background(), tenantId).UrlId(urlId).Id(id).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.DeleteV2PageReact``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // response from `DeleteV2PageReact`: CreateV1PageReact
24 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.DeleteV2PageReact`: %v\n", resp)
25}
26

GetV1PageLikes Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँ

प्रतिक्रिया

रिटर्न करता है: GetV1PageLikes

उदाहरण

GetV1PageLikes उदाहरण
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.PublicAPI.GetV1PageLikes(context.Background(), tenantId).UrlId(urlId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetV1PageLikes``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // `GetV1PageLikes` से प्रतिक्रिया: GetV1PageLikes
23 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetV1PageLikes`: %v\n", resp)
24}
25

GetV2PageReacts Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँ

प्रतिक्रिया

रिटर्न करता है: GetV2PageReacts

उदाहरण

GetV2PageReacts उदाहरण
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.PublicAPI.GetV2PageReacts(context.Background(), tenantId).UrlId(urlId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetV2PageReacts``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // response from `GetV2PageReacts`: GetV2PageReacts
23 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetV2PageReacts`: %v\n", resp)
24}
25

GetV2PageReactUsers Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँ
idstringqueryहाँ

प्रतिक्रिया

लौटाता है: GetV2PageReactUsersResponse

उदाहरण

GetV2PageReactUsers उदाहरण
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 id := "id_example" // string |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.PublicAPI.GetV2PageReactUsers(context.Background(), tenantId).UrlId(urlId).Id(id).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetV2PageReactUsers``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // response from `GetV2PageReactUsers`: GetV2PageReactUsersResponse
24 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetV2PageReactUsers`: %v\n", resp)
25}
26

AddPage Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: AddPageAPIResponse

उदाहरण

AddPage उदाहरण
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 createAPIPageData := *openapiclient.NewCreateAPIPageData("Title_example", "Url_example", "UrlId_example") // CreateAPIPageData |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.AddPage(context.Background()).TenantId(tenantId).CreateAPIPageData(createAPIPageData).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AddPage``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // `AddPage` से प्रतिक्रिया: AddPageAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AddPage`: %v\n", resp)
24}
25

DeletePage Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

लौटाता है: DeletePageAPIResponse

उदाहरण

DeletePage उदाहरण
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.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 // response from `DeletePage`: DeletePageAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeletePage`: %v\n", resp)
24}
25

GetOfflineUsers Internal Link

पेज पर उन पिछले टिप्पणीकारों के बारे में जो अभी ऑनलाइन नहीं हैं। displayName के अनुसार क्रमबद्ध। /users/online का उपयोग पूरा करने के बाद "Members" सेक्शन रेंडर करने के लिए इसका उपयोग करें। commenterName पर कर्सर पेजिनेशन: सर्वर afterName से आगे $gt के माध्यम से आंशिक {tenantId, urlId, commenterName} इंडेक्स को बिना $skip लागत के चलता है।

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँपेज URL पहचानकर्ता (सर्वर-साइड पर साफ़ किया गया)।
afterNamestringqueryनहींकर्सर: पिछली प्रतिक्रिया से nextAfterName पास करें।
afterUserIdstringqueryनहींकर्सर टाइब्रेकर: पिछली प्रतिक्रिया से nextAfterUserId पास करें। आवश्यक है जब afterName सेट हो ताकि समान नाम वाली प्रविष्टियाँ न छूटें।

प्रतिक्रिया

लौटाता है: PageUsersOfflineResponse

उदाहरण

GetOfflineUsers उदाहरण
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 | पेज URL पहचानकर्ता (सर्वर-साइड पर साफ़ किया गया)।
14 afterName := "afterName_example" // string | कर्सर: पिछली प्रतिक्रिया से nextAfterName पास करें। (optional)
15 afterUserId := "afterUserId_example" // string | कर्सर टाइब्रेकर: पिछली प्रतिक्रिया से nextAfterUserId पास करें। आवश्यक है जब afterName सेट हो ताकि समान नाम वाली प्रविष्टियाँ न छूटें। (optional)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.GetOfflineUsers(context.Background(), tenantId).UrlId(urlId).AfterName(afterName).AfterUserId(afterUserId).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetOfflineUsers``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // response from `GetOfflineUsers`: PageUsersOfflineResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetOfflineUsers`: %v\n", resp)
26}
27

GetOnlineUsers Internal Link

किसी पेज के वर्तमान में ऑनलाइन दर्शक: वे लोग जिनका websocket सत्र इस समय पेज की सदस्यता लिए हुए है। anonCount + totalCount लौटाता है (पूरे रूम के सदस्य, जिनमें वे अनाम दर्शक भी शामिल हैं जिन्हें हम सूचीबद्ध नहीं करते)।

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँपेज URL पहचानकर्ता (सर्वर-साइड पर साफ़ किया गया)।
afterNamestringqueryनहींकर्सर: पिछली प्रतिक्रिया से nextAfterName पास करें।
afterUserIdstringqueryनहींकर्सर टाइब्रेकर: पिछली प्रतिक्रिया से nextAfterUserId पास करें। आवश्यक है जब afterName सेट हो ताकि समान नाम वाली प्रविष्टियाँ न छूटें।

प्रतिक्रिया

लौटाता है: PageUsersOnlineResponse

उदाहरण

GetOnlineUsers उदाहरण
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 | पेज URL पहचानकर्ता (सर्वर-साइड पर साफ़ किया गया)।
14 afterName := "afterName_example" // string | कर्सर: पिछली प्रतिक्रिया से nextAfterName पास करें। (optional)
15 afterUserId := "afterUserId_example" // string | कर्सर टाइब्रेकर: पिछली प्रतिक्रिया से nextAfterUserId पास करें। आवश्यक है जब afterName सेट हो ताकि समान नाम वाली प्रविष्टियाँ न छूटें। (optional)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.GetOnlineUsers(context.Background(), tenantId).UrlId(urlId).AfterName(afterName).AfterUserId(afterUserId).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetOnlineUsers``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // response from `GetOnlineUsers`: PageUsersOnlineResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetOnlineUsers`: %v\n", resp)
26}
27

GetPageByURLId Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
urlIdstringqueryहाँ

प्रतिक्रिया

रिटर्न करता है: GetPageByURLIdAPIResponse

उदाहरण

GetPageByURLId उदाहरण
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.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 // response from `GetPageByURLId`: GetPageByURLIdAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetPageByURLId`: %v\n", resp)
24}
25

GetPages Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

रिटर्न करता है: GetPagesAPIResponse

उदाहरण

GetPages उदाहरण
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.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

GetPagesPublic Internal Link

किसी टेनेंट के लिए पेजों की सूची लौटाता है। FChat डेस्कटॉप क्लाइंट द्वारा अपनी रूम सूची भरने के लिए उपयोग किया जाता है। प्रत्येक पेज के लिए resolved custom config पर enableFChat true होना आवश्यक है। जो पेज SSO की मांग करते हैं, उन्हें अनुरोध करने वाले उपयोगकर्ता के group access के विरुद्ध फ़िल्टर किया जाता है।

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
cursorstringqueryनहींपिछले अनुरोध से nextCursor के रूप में लौटाया गया अपारदर्शी पेजिनेशन कर्सर। उसी sortBy से बंधा हुआ।
limitintegerqueryनहीं1..200, डिफ़ॉल्ट 50
qstringqueryनहींवैकल्पिक केस-असंवेदनशील शीर्षक प्रीफ़िक्स फ़िल्टर।
sortBystringqueryनहींक्रमबद्ध क्रम। updatedAt (डिफ़ॉल्ट, नवीनतम पहले), commentCount (सर्वाधिक टिप्पणियां पहले), या title (वर्णानुक्रमिक)।
hasCommentsbooleanqueryनहींयदि true, तो केवल कम से कम एक टिप्पणी वाले पेज लौटाएं।

प्रतिक्रिया

लौटाता है: GetPublicPagesResponse

उदाहरण

GetPagesPublic उदाहरण
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 cursor := "cursor_example" // string | पिछले अनुरोध से `nextCursor` के रूप में लौटाया गया अपारदर्शी पेजिनेशन कर्सर। उसी `sortBy` से बंधा हुआ। (optional)
14 limit := int32(56) // int32 | 1..200, डिफ़ॉल्ट 50 (optional)
15 q := "q_example" // string | वैकल्पिक केस-असंवेदनशील शीर्षक प्रीफ़िक्स फ़िल्टर। (optional)
16 sortBy := openapiclient.PagesSortBy("updatedAt") // PagesSortBy | क्रमबद्ध क्रम। `updatedAt` (डिफ़ॉल्ट, नवीनतम पहले), `commentCount` (सर्वाधिक टिप्पणियां पहले), या `title` (वर्णानुक्रमिक)। (optional)
17 hasComments := true // bool | यदि true, तो केवल कम से कम एक टिप्पणी वाले पेज लौटाएं। (optional)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.PublicAPI.GetPagesPublic(context.Background(), tenantId).Cursor(cursor).Limit(limit).Q(q).SortBy(sortBy).HasComments(hasComments).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetPagesPublic``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // response from `GetPagesPublic`: GetPublicPagesResponse
27 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetPagesPublic`: %v\n", resp)
28}
29

GetUsersInfo Internal Link

किसी टेनेंट के लिए बल्क यूज़र जानकारी। दिए गए userIds के आधार पर, User / SSOUser से डिस्प्ले जानकारी लौटाता है। कमेंट विजेट द्वारा उन यूज़र्स को समृद्ध (enrich) करने के लिए उपयोग किया जाता है जो presence इवेंट के माध्यम से अभी दिखाई दिए। कोई पेज संदर्भ नहीं: गोपनीयता समान रूप से लागू की जाती है (प्राइवेट प्रोफाइल मास्क कर दी जाती हैं)।

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
idsstringqueryहाँकॉमा से अलग किए गए userIds।

प्रतिक्रिया

लौटाता है: PageUsersInfoResponse

उदाहरण

GetUsersInfo उदाहरण
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 ids := "ids_example" // string | कॉमा से अलग किए गए userIds।
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.PublicAPI.GetUsersInfo(context.Background(), tenantId).Ids(ids).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUsersInfo``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // `GetUsersInfo` से प्रतिक्रिया: PageUsersInfoResponse
23 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUsersInfo`: %v\n", resp)
24}
25

PatchPage Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: PatchPageAPIResponse

उदाहरण

PatchPage उदाहरण
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 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

DeletePendingWebhookEvent Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

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 // response from `DeletePendingWebhookEvent`: APIEmptyResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeletePendingWebhookEvent`: %v\n", resp)
24}
25

GetPendingWebhookEventCount Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringqueryनहीं
externalIdstringqueryनहीं
eventTypestringqueryनहीं
typestringqueryनहीं
domainstringqueryनहीं
attemptCountGTnumberqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetPendingWebhookEventCountResponse

उदाहरण

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 // response from `GetPendingWebhookEventCount`: GetPendingWebhookEventCountResponse
28 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetPendingWebhookEventCount`: %v\n", resp)
29}
30

GetPendingWebhookEvents Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringqueryनहीं
externalIdstringqueryनहीं
eventTypestringqueryनहीं
typestringqueryनहीं
domainstringqueryनहीं
attemptCountGTnumberqueryनहीं
skipnumberqueryनहीं

प्रतिक्रिया

लौटाता है: GetPendingWebhookEventsResponse

उदाहरण

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 // response from `GetPendingWebhookEvents`: GetPendingWebhookEventsResponse
29 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetPendingWebhookEvents`: %v\n", resp)
30}
31

CreateQuestionConfig Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: CreateQuestionConfigResponse

उदाहरण

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` से प्रतिक्रिया: CreateQuestionConfigResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateQuestionConfig`: %v\n", resp)
24}
25

DeleteQuestionConfig Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

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 // response from `DeleteQuestionConfig`: APIEmptyResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteQuestionConfig`: %v\n", resp)
24}
25

GetQuestionConfig Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

लौटाता है: GetQuestionConfigResponse

उदाहरण

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 // response from `GetQuestionConfig`: GetQuestionConfigResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetQuestionConfig`: %v\n", resp)
24}
25

GetQuestionConfigs Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
skipnumberqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetQuestionConfigsResponse

उदाहरण

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 // response from `GetQuestionConfigs`: GetQuestionConfigsResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetQuestionConfigs`: %v\n", resp)
24}
25

UpdateQuestionConfig Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

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` से प्रतिक्रिया: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateQuestionConfig`: %v\n", resp)
25}
26

CreateQuestionResult Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: CreateQuestionResultResponse

उदाहरण

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`: CreateQuestionResultResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateQuestionResult`: %v\n", resp)
24}
25

DeleteQuestionResult Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

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` से प्रतिक्रिया: APIEmptyResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteQuestionResult`: %v\n", resp)
24}
25

GetQuestionResult Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

लौटाता है: GetQuestionResultResponse

उदाहरण

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` से प्रतिक्रिया: GetQuestionResultResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetQuestionResult`: %v\n", resp)
24}
25

GetQuestionResults Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
urlIdstringqueryनहीं
userIdstringqueryनहीं
startDatestringqueryनहीं
questionIdstringqueryनहीं
questionIdsstringqueryनहीं
skipnumberqueryनहीं

प्रतिक्रिया

लौटाता है: GetQuestionResultsResponse

उदाहरण

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` से प्रतिक्रिया: GetQuestionResultsResponse
28 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetQuestionResults`: %v\n", resp)
29}
30

UpdateQuestionResult Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

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

AggregateQuestionResults Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
questionIdstringqueryनहीं
questionIdsarrayqueryनहीं
urlIdstringqueryनहीं
timeBucketstringqueryनहीं
startDatestringqueryनहीं
forceRecalculatebooleanqueryनहीं

प्रतिक्रिया

लौटाता है: AggregateQuestionResultsResponse

उदाहरण

AggregateQuestionResults उदाहरण
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 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 // response from `AggregateQuestionResults`: AggregateQuestionResultsResponse
29 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AggregateQuestionResults`: %v\n", resp)
30}
31

BulkAggregateQuestionResults Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
forceRecalculatebooleanqueryनहीं

प्रतिक्रिया

रिटर्न करता है: BulkAggregateQuestionResultsResponse

उदाहरण

BulkAggregateQuestionResults उदाहरण
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 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 // response from `BulkAggregateQuestionResults`: BulkAggregateQuestionResultsResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.BulkAggregateQuestionResults`: %v\n", resp)
25}
26

CombineCommentsWithQuestionResults Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
questionIdstringqueryनहीं
questionIdsarrayqueryनहीं
urlIdstringqueryनहीं
startDatestringqueryनहीं
forceRecalculatebooleanqueryनहीं
minValuenumberqueryनहीं
maxValuenumberqueryनहीं
limitnumberqueryनहीं

प्रतिक्रिया

रिटर्न करता है: CombineQuestionResultsWithCommentsResponse

उदाहरण

CombineCommentsWithQuestionResults उदाहरण
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 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`: CombineQuestionResultsWithCommentsResponse
31 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CombineCommentsWithQuestionResults`: %v\n", resp)
32}
33

AddSSOUser Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: AddSSOUserAPIResponse

उदाहरण

AddSSOUser उदाहरण
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 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

DeleteSSOUser Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
deleteCommentsbooleanqueryनहीं
commentDeleteModestringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: DeleteSSOUserAPIResponse

उदाहरण

DeleteSSOUser उदाहरण
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 := 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

GetSSOUserByEmail Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
emailstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: GetSSOUserByEmailAPIResponse

उदाहरण

GetSSOUserByEmail उदाहरण
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 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

GetSSOUserById Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: GetSSOUserByIdAPIResponse

उदाहरण

GetSSOUserById उदाहरण
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.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 // response from `GetSSOUserById`: GetSSOUserByIdAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetSSOUserById`: %v\n", resp)
24}
25

GetSSOUsers Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
skipintegerqueryनहीं

प्रतिक्रिया

लौटाता है: GetSSOUsersResponse

उदाहरण

GetSSOUsers उदाहरण
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 := 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 // response from `GetSSOUsers`: GetSSOUsersResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetSSOUsers`: %v\n", resp)
24}
25

PatchSSOUser Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
updateCommentsbooleanqueryनहीं

प्रतिक्रिया

रिटर्न करता है: PatchSSOUserAPIResponse

उदाहरण

PatchSSOUser उदाहरण
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 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 // response from `PatchSSOUser`: PatchSSOUserAPIResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.PatchSSOUser`: %v\n", resp)
26}
27

PutSSOUser Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
updateCommentsbooleanqueryनहीं

प्रतिक्रिया

रिटर्न करता है: PutSSOUserAPIResponse

उदाहरण

PutSSOUser उदाहरण
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 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

CreateSubscription Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: CreateSubscriptionAPIResponse

उदाहरण

CreateSubscription उदाहरण
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 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

DeleteSubscription Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
userIdstringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: DeleteSubscriptionAPIResponse

उदाहरण

DeleteSubscription उदाहरण
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 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 // response from `DeleteSubscription`: DeleteSubscriptionAPIResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteSubscription`: %v\n", resp)
25}
26

GetSubscriptions Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
userIdstringqueryनहीं

प्रतिक्रिया

लौटाता है: GetSubscriptionsAPIResponse

उदाहरण

GetSubscriptions उदाहरण
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
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetSubscriptions(context.Background()).TenantId(tenantId).UserId(userId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetSubscriptions``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // response from `GetSubscriptions`: GetSubscriptionsAPIResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetSubscriptions`: %v\n", resp)
24}
25

UpdateSubscription Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
userIdstringqueryनहीं

प्रतिक्रिया

लौटाता है: UpdateSubscriptionAPIResponse

उदाहरण

UpdateSubscription उदाहरण
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 updateAPIUserSubscriptionData := *openapiclient.NewUpdateAPIUserSubscriptionData() // UpdateAPIUserSubscriptionData |
15 userId := "userId_example" // string | (optional)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.UpdateSubscription(context.Background(), id).TenantId(tenantId).UpdateAPIUserSubscriptionData(updateAPIUserSubscriptionData).UserId(userId).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateSubscription``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // `UpdateSubscription` से प्रतिक्रिया: UpdateSubscriptionAPIResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateSubscription`: %v\n", resp)
26}
27

GetTenantDailyUsages Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
yearNumbernumberqueryनहीं
monthNumbernumberqueryनहीं
dayNumbernumberqueryनहीं
skipnumberqueryनहीं

प्रतिक्रिया

लौटाता है: GetTenantDailyUsagesResponse

उदाहरण

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 | (optional)
14 monthNumber := float64(1.2) // float64 | (optional)
15 dayNumber := float64(1.2) // float64 | (optional)
16 skip := float64(1.2) // float64 | (optional)
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 // response from `GetTenantDailyUsages`: GetTenantDailyUsagesResponse
26 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantDailyUsages`: %v\n", resp)
27}
28

CreateTenantPackage Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: CreateTenantPackageResponse

उदाहरण

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` से प्रतिक्रिया: CreateTenantPackageResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateTenantPackage`: %v\n", resp)
24}
25

DeleteTenantPackage Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

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` से प्रतिक्रिया: APIEmptyResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteTenantPackage`: %v\n", resp)
24}
25

GetTenantPackage Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: GetTenantPackageResponse

उदाहरण

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 // response from `GetTenantPackage`: GetTenantPackageResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantPackage`: %v\n", resp)
24}
25

GetTenantPackages Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
skipnumberqueryनहीं

प्रतिक्रिया

लौटाता है: GetTenantPackagesResponse

उदाहरण

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 // response from `GetTenantPackages`: GetTenantPackagesResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantPackages`: %v\n", resp)
24}
25

ReplaceTenantPackage Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

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`: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ReplaceTenantPackage`: %v\n", resp)
25}
26

UpdateTenantPackage Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

UpdateTenantPackage उदाहरण
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 updateTenantPackageBody := *openapiclient.NewUpdateTenantPackageBody() // UpdateTenantPackageBody |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.UpdateTenantPackage(context.Background(), id).TenantId(tenantId).UpdateTenantPackageBody(updateTenantPackageBody).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateTenantPackage``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `UpdateTenantPackage` से प्रतिक्रिया: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateTenantPackage`: %v\n", resp)
25}
26

CreateTenantUser Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: CreateTenantUserResponse

उदाहरण

CreateTenantUser उदाहरण
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 createTenantUserBody := *openapiclient.NewCreateTenantUserBody("Username_example", "Email_example") // CreateTenantUserBody |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.CreateTenantUser(context.Background()).TenantId(tenantId).CreateTenantUserBody(createTenantUserBody).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateTenantUser``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // `CreateTenantUser` से प्रतिक्रिया: CreateTenantUserResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateTenantUser`: %v\n", resp)
24}
25

DeleteTenantUser Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
deleteCommentsstringqueryनहीं
commentDeleteModestringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

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

GetTenantUser Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: GetTenantUserResponse

उदाहरण

GetTenantUser उदाहरण
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14
15 configuration := openapiclient.NewConfiguration()
16 apiClient := openapiclient.NewAPIClient(configuration)
17 resp, r, err := apiClient.DefaultAPI.GetTenantUser(context.Background(), id).TenantId(tenantId).Execute()
18 if err != nil {
19 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTenantUser``: %v\n", err)
20 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
21 }
22 // `GetTenantUser` से प्रतिक्रिया: GetTenantUserResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantUser`: %v\n", resp)
24}
25

GetTenantUsers Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
skipnumberqueryनहीं

प्रतिक्रिया

लौटाता है: GetTenantUsersResponse

उदाहरण

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 // response from `GetTenantUsers`: GetTenantUsersResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenantUsers`: %v\n", resp)
24}
25

ReplaceTenantUser Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
updateCommentsstringqueryनहीं

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

ReplaceTenantUser उदाहरण
Copy Copy
1
2package main
3
4import (
5 "context"
6 "fmt"
7 "os"
8 openapiclient "github.com/fastcomments/fastcomments-go/client"
9)
10
11func main() {
12 tenantId := "tenantId_example" // string |
13 id := "id_example" // string |
14 replaceTenantUserBody := *openapiclient.NewReplaceTenantUserBody("Username_example", "Email_example") // ReplaceTenantUserBody |
15 updateComments := "updateComments_example" // string | (वैकल्पिक)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.ReplaceTenantUser(context.Background(), id).TenantId(tenantId).ReplaceTenantUserBody(replaceTenantUserBody).UpdateComments(updateComments).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ReplaceTenantUser``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // response from `ReplaceTenantUser`: APIEmptyResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ReplaceTenantUser`: %v\n", resp)
26}
27

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
redirectURLstringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

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` से प्रतिक्रिया: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.SendLoginLink`: %v\n", resp)
25}
26

UpdateTenantUser Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
updateCommentsstringqueryनहीं

प्रतिक्रिया

लौटाता है: APIEmptyResponse

उदाहरण

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

CreateTenant Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: CreateTenantResponse

उदाहरण

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` से प्रतिक्रिया: CreateTenantResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateTenant`: %v\n", resp)
25}
26

DeleteTenant Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
surestringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

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` से प्रतिक्रिया: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteTenant`: %v\n", resp)
25}
26

GetTenant Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: GetTenantResponse

उदाहरण

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` से प्रतिक्रिया: GetTenantResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenant`: %v\n", resp)
24}
25

GetTenants Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
metastringqueryनहीं
skipnumberqueryनहीं

प्रतिक्रिया

रिटर्न: GetTenantsResponse

उदाहरण

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` से प्रतिक्रिया: GetTenantsResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTenants`: %v\n", resp)
25}
26

UpdateTenant Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIEmptyResponse

उदाहरण

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` से प्रतिक्रिया: APIEmptyResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateTenant`: %v\n", resp)
25}
26

ChangeTicketState Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
userIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: ChangeTicketStateResponse

उदाहरण

ChangeTicketState उदाहरण
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 id := "id_example" // string |
15 changeTicketStateBody := *openapiclient.NewChangeTicketStateBody(int32(123)) // ChangeTicketStateBody |
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.DefaultAPI.ChangeTicketState(context.Background(), id).TenantId(tenantId).UserId(userId).ChangeTicketStateBody(changeTicketStateBody).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ChangeTicketState``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // `ChangeTicketState` से प्रतिक्रिया: ChangeTicketStateResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ChangeTicketState`: %v\n", resp)
26}
27

CreateTicket Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
userIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: CreateTicketResponse

उदाहरण

CreateTicket उदाहरण
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 createTicketBody := *openapiclient.NewCreateTicketBody("Subject_example") // CreateTicketBody |
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.CreateTicket(context.Background()).TenantId(tenantId).UserId(userId).CreateTicketBody(createTicketBody).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateTicket``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `CreateTicket` से प्रतिक्रिया: CreateTicketResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateTicket`: %v\n", resp)
25}
26

GetTicket Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
userIdstringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetTicketResponse

उदाहरण

GetTicket उदाहरण
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 userId := "userId_example" // string | (वैकल्पिक)
15
16 configuration := openapiclient.NewConfiguration()
17 apiClient := openapiclient.NewAPIClient(configuration)
18 resp, r, err := apiClient.DefaultAPI.GetTicket(context.Background(), id).TenantId(tenantId).UserId(userId).Execute()
19 if err != nil {
20 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTicket``: %v\n", err)
21 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
22 }
23 // `GetTicket` से प्रतिक्रिया: GetTicketResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTicket`: %v\n", resp)
25}
26

GetTickets Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
userIdstringqueryनहीं
statenumberqueryनहीं
skipnumberqueryनहीं
limitnumberqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetTicketsResponse

उदाहरण

GetTickets उदाहरण
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 state := float64(1.2) // float64 | (वैकल्पिक)
15 skip := float64(1.2) // float64 | (वैकल्पिक)
16 limit := float64(1.2) // float64 | (वैकल्पिक)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.DefaultAPI.GetTickets(context.Background()).TenantId(tenantId).UserId(userId).State(state).Skip(skip).Limit(limit).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetTickets``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // response from `GetTickets`: GetTicketsResponse
26 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetTickets`: %v\n", resp)
27}
28

GetTranslations Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
namespacestringpathहाँ
componentstringpathहाँ
localestringqueryनहीं
useFullTranslationIdsbooleanqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetTranslationsResponse

उदाहरण

GetTranslations उदाहरण
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 namespace := "namespace_example" // string |
13 component := "component_example" // string |
14 locale := "locale_example" // string | (वैकल्पिक)
15 useFullTranslationIds := true // bool | (वैकल्पिक)
16
17 configuration := openapiclient.NewConfiguration()
18 apiClient := openapiclient.NewAPIClient(configuration)
19 resp, r, err := apiClient.PublicAPI.GetTranslations(context.Background(), namespace, component).Locale(locale).UseFullTranslationIds(useFullTranslationIds).Execute()
20 if err != nil {
21 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetTranslations``: %v\n", err)
22 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
23 }
24 // response from `GetTranslations`: GetTranslationsResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetTranslations`: %v\n", resp)
26}
27

UploadImage Internal Link

एक इमेज अपलोड और रिसाइज़ करें

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
sizePresetstringqueryनहींसाइज़ प्रीसेट: "Default" (1000x1000px) या "CrossPlatform" (लोकप्रिय डिवाइसों के लिए साइज़ बनाता है)
urlIdstringqueryनहींवह पेज id जिससे अपलोड हो रहा है, कॉन्फ़िगर करने के लिए

प्रतिक्रिया

रिटर्न करता है: UploadImageResponse

उदाहरण

UploadImage उदाहरण
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 file := os.NewFile(1234, "some_file") // *os.File |
14 sizePreset := openapiclient.SizePreset("Default") // SizePreset | साइज़ प्रीसेट: \"Default\" (1000x1000px) या \"CrossPlatform\" (लोकप्रिय डिवाइसों के लिए साइज़ बनाता है) (optional)
15 urlId := "urlId_example" // string | वह पेज id जिससे अपलोड हो रहा है, कॉन्फ़िगर करने के लिए (optional)
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 // response from `UploadImage`: UploadImageResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UploadImage`: %v\n", resp)
26}
27

GetUserBadgeProgressById Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIGetUserBadgeProgressResponse

उदाहरण

GetUserBadgeProgressById उदाहरण
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.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 // response from `GetUserBadgeProgressById`: APIGetUserBadgeProgressResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadgeProgressById`: %v\n", resp)
24}
25

GetUserBadgeProgressByUserId Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
userIdstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIGetUserBadgeProgressResponse

उदाहरण

GetUserBadgeProgressByUserId उदाहरण
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
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` से प्रतिक्रिया: APIGetUserBadgeProgressResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadgeProgressByUserId`: %v\n", resp)
24}
25

GetUserBadgeProgressList Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
userIdstringqueryनहीं
limitnumberqueryनहीं
skipnumberqueryनहीं

प्रतिक्रिया

रिटर्न करता है: APIGetUserBadgeProgressListResponse

उदाहरण

GetUserBadgeProgressList उदाहरण
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 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` से प्रतिक्रिया: APIGetUserBadgeProgressListResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadgeProgressList`: %v\n", resp)
26}
27

CreateUserBadge Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: APICreateUserBadgeResponse

उदाहरण

CreateUserBadge उदाहरण
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 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 // response from `CreateUserBadge`: APICreateUserBadgeResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateUserBadge`: %v\n", resp)
24}
25

DeleteUserBadge Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न: APIEmptySuccessResponse

उदाहरण

DeleteUserBadge उदाहरण
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.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 // response from `DeleteUserBadge`: APIEmptySuccessResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteUserBadge`: %v\n", resp)
24}
25

GetUserBadge Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIGetUserBadgeResponse

उदाहरण

GetUserBadge उदाहरण
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.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 // response from `GetUserBadge`: APIGetUserBadgeResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadge`: %v\n", resp)
24}
25

GetUserBadges Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
userIdstringqueryनहीं
badgeIdstringqueryनहीं
typenumberqueryनहीं
displayedOnCommentsbooleanqueryनहीं
limitnumberqueryनहीं
skipnumberqueryनहीं

प्रतिक्रिया

रिटर्न करता है: APIGetUserBadgesResponse

उदाहरण

GetUserBadges उदाहरण
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 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` से प्रतिक्रिया: APIGetUserBadgesResponse
28 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUserBadges`: %v\n", resp)
29}
30

UpdateUserBadge Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

रिटर्न करता है: APIEmptySuccessResponse

उदाहरण

UpdateUserBadge उदाहरण
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 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 // response from `UpdateUserBadge`: APIEmptySuccessResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateUserBadge`: %v\n", resp)
25}
26

GetUserNotificationCount Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: GetUserNotificationCountResponse

उदाहरण

GetUserNotificationCount उदाहरण
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 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 // response from `GetUserNotificationCount`: GetUserNotificationCountResponse
23 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserNotificationCount`: %v\n", resp)
24}
25

GetUserNotifications Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
urlIdstringqueryनहींयह निर्धारित करने के लिए उपयोग किया जाता है कि क्या वर्तमान पृष्ठ सब्सक्राइब है।
pageSizeintegerqueryनहीं
afterIdstringqueryनहीं
includeContextbooleanqueryनहीं
afterCreatedAtintegerqueryनहीं
unreadOnlybooleanqueryनहीं
dmOnlybooleanqueryनहीं
noDmbooleanqueryनहीं
includeTranslationsbooleanqueryनहीं
includeTenantNotificationsbooleanqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: GetMyNotificationsResponse

उदाहरण

GetUserNotifications उदाहरण
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 | यह निर्धारित करने के लिए उपयोग किया जाता है कि क्या वर्तमान पृष्ठ सब्सक्राइब है। (optional)
14 pageSize := int32(56) // int32 | (optional)
15 afterId := "afterId_example" // string | (optional)
16 includeContext := true // bool | (optional)
17 afterCreatedAt := int64(789) // int64 | (optional)
18 unreadOnly := true // bool | (optional)
19 dmOnly := true // bool | (optional)
20 noDm := true // bool | (optional)
21 includeTranslations := true // bool | (optional)
22 includeTenantNotifications := true // bool | (optional)
23 sso := "sso_example" // string | (optional)
24
25 configuration := openapiclient.NewConfiguration()
26 apiClient := openapiclient.NewAPIClient(configuration)
27 resp, r, err := apiClient.PublicAPI.GetUserNotifications(context.Background()).TenantId(tenantId).UrlId(urlId).PageSize(pageSize).AfterId(afterId).IncludeContext(includeContext).AfterCreatedAt(afterCreatedAt).UnreadOnly(unreadOnly).DmOnly(dmOnly).NoDm(noDm).IncludeTranslations(includeTranslations).IncludeTenantNotifications(includeTenantNotifications).Sso(sso).Execute()
28 if err != nil {
29 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.GetUserNotifications``: %v\n", err)
30 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
31 }
32 // response from `GetUserNotifications`: GetMyNotificationsResponse
33 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserNotifications`: %v\n", resp)
34}
35

ResetUserNotificationCount Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: ResetUserNotificationsResponse

उदाहरण

ResetUserNotificationCount उदाहरण
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 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`: ResetUserNotificationsResponse
23 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.ResetUserNotificationCount`: %v\n", resp)
24}
25

ResetUserNotifications Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
afterIdstringqueryनहीं
afterCreatedAtintegerqueryनहीं
unreadOnlybooleanqueryनहीं
dmOnlybooleanqueryनहीं
noDmbooleanqueryनहीं
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: ResetUserNotificationsResponse

उदाहरण

ResetUserNotifications उदाहरण
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 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` से प्रतिक्रिया: ResetUserNotificationsResponse
28 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.ResetUserNotifications`: %v\n", resp)
29}
30

UpdateUserNotificationCommentSubscriptionStatus Internal Link

किसी विशेष कमेंट के लिए नोटिफिकेशन चालू या बंद करें।

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
notificationIdstringpathहाँ
optedInOrOutstringpathहाँ
commentIdstringqueryहाँ
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: UpdateUserNotificationCommentSubscriptionStatusResponse

उदाहरण

UpdateUserNotificationCommentSubscriptionStatus उदाहरण
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 notificationId := "notificationId_example" // string |
14 optedInOrOut := "optedInOrOut_example" // string |
15 commentId := "commentId_example" // string |
16 sso := "sso_example" // string | (वैकल्पिक)
17
18 configuration := openapiclient.NewConfiguration()
19 apiClient := openapiclient.NewAPIClient(configuration)
20 resp, r, err := apiClient.PublicAPI.UpdateUserNotificationCommentSubscriptionStatus(context.Background(), notificationId, optedInOrOut).TenantId(tenantId).CommentId(commentId).Sso(sso).Execute()
21 if err != nil {
22 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.UpdateUserNotificationCommentSubscriptionStatus``: %v\n", err)
23 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
24 }
25 // response from `UpdateUserNotificationCommentSubscriptionStatus`: UpdateUserNotificationCommentSubscriptionStatusResponse
26 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UpdateUserNotificationCommentSubscriptionStatus`: %v\n", resp)
27}
28

UpdateUserNotificationPageSubscriptionStatus Internal Link

किसी पेज के लिए नोटिफिकेशन सक्षम या अक्षम करें। जब उपयोगकर्ता किसी पेज की सदस्यता लेते हैं, तो नई रूट कमेंट्स के लिए नोटिफिकेशन बनाए जाते हैं, और साथ ही

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
urlIdstringqueryहाँ
urlstringqueryहाँ
pageTitlestringqueryहाँ
subscribedOrUnsubscribedstringpathहाँ
ssostringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: UpdateUserNotificationPageSubscriptionStatusResponse

उदाहरण

UpdateUserNotificationPageSubscriptionStatus उदाहरण
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 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`: UpdateUserNotificationPageSubscriptionStatusResponse
27 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UpdateUserNotificationPageSubscriptionStatus`: %v\n", resp)
28}
29

UpdateUserNotificationStatus Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
notificationIdstringpathहाँ
newStatusstringpathहाँ
ssostringqueryनहीं

प्रतिक्रिया

लौटाता है: UpdateUserNotificationStatusResponse

उदाहरण

UpdateUserNotificationStatus उदाहरण
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 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 // response from `UpdateUserNotificationStatus`: UpdateUserNotificationStatusResponse
25 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.UpdateUserNotificationStatus`: %v\n", resp)
26}
27

GetUserPresenceStatuses Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
urlIdWSstringqueryहाँ
userIdsstringqueryहाँ

प्रतिक्रिया

रिटर्न करता है: GetUserPresenceStatusesResponse

उदाहरण

GetUserPresenceStatuses उदाहरण
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 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` से प्रतिक्रिया: GetUserPresenceStatusesResponse
24 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.GetUserPresenceStatuses`: %v\n", resp)
25}
26

SearchUsers Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringpathहाँ
urlIdstringqueryहाँ
usernameStartsWithstringqueryनहीं
mentionGroupIdsarrayqueryनहीं
ssostringqueryनहीं
searchSectionstringqueryनहीं

प्रतिक्रिया

लौटाता है: SearchUsersResult

उदाहरण

SearchUsers उदाहरण
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 usernameStartsWith := "usernameStartsWith_example" // string | (वैकल्पिक)
15 mentionGroupIds := []string{"Inner_example"} // []string | (वैकल्पिक)
16 sso := "sso_example" // string | (वैकल्पिक)
17 searchSection := "searchSection_example" // string | (वैकल्पिक)
18
19 configuration := openapiclient.NewConfiguration()
20 apiClient := openapiclient.NewAPIClient(configuration)
21 resp, r, err := apiClient.PublicAPI.SearchUsers(context.Background(), tenantId).UrlId(urlId).UsernameStartsWith(usernameStartsWith).MentionGroupIds(mentionGroupIds).Sso(sso).SearchSection(searchSection).Execute()
22 if err != nil {
23 fmt.Fprintf(os.Stderr, "Error when calling `PublicAPI.SearchUsers``: %v\n", err)
24 fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
25 }
26 // `SearchUsers` से प्रतिक्रिया: SearchUsersResult
27 fmt.Fprintf(os.Stdout, "Response from `PublicAPI.SearchUsers`: %v\n", resp)
28}
29

GetUser Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ

प्रतिक्रिया

लौटाता है: GetUserResponse

उदाहरण

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 // response from `GetUser`: GetUserResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUser`: %v\n", resp)
24}
25

CreateVote Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
commentIdstringqueryहाँ
directionstringqueryहाँ
userIdstringqueryनहीं
anonUserIdstringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: VoteResponse

उदाहरण

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 | (optional)
16 anonUserId := "anonUserId_example" // string | (optional)
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 // response from `CreateVote`: VoteResponse
26 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateVote`: %v\n", resp)
27}
28

DeleteVote Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
idstringpathहाँ
editKeystringqueryनहीं

प्रतिक्रिया

रिटर्न करता है: VoteDeleteResponse

उदाहरण

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` से प्रतिक्रिया: VoteDeleteResponse
24 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteVote`: %v\n", resp)
25}
26

GetVotes Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
urlIdstringqueryहाँ

प्रतिक्रिया

लौटाता है: GetVotesResponse

उदाहरण

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 // response from `GetVotes`: GetVotesResponse
23 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetVotes`: %v\n", resp)
24}
25

GetVotesForUser Internal Link

पैरामीटर

नामप्रकारस्थानआवश्यकविवरण
tenantIdstringqueryहाँ
urlIdstringqueryहाँ
userIdstringqueryनहीं
anonUserIdstringqueryनहीं

प्रतिक्रिया

लौटाता है: GetVotesForUserResponse

उदाहरण

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` से प्रतिक्रिया: GetVotesForUserResponse
25 fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetVotesForUser`: %v\n", resp)
26}
27

मदद चाहिए?

यदि आपको Go SDK के बारे में कोई समस्या आती है या कोई प्रश्न है, तो कृपया:

योगदान देना

योगदान का स्वागत है! कृपया योगदान दिशानिर्देशों के लिए GitHub रिपॉजिटरी देखें।