Skip to content

Latest commit

 

History

History
101 lines (73 loc) · 3.08 KB

README.md

File metadata and controls

101 lines (73 loc) · 3.08 KB

Plugins

(Plugins)

Overview

Information about installed plugins

Available Operations

PluginSettings

Get plugins url and proxy settings

Example Usage

package main

import(
	rudder "github.com/infra-rdc/rudder-go"
	"context"
	"log"
)

func main() {
    s := rudder.New(
        rudder.WithSecurity("<YOUR_API_KEY_HERE>"),
    )

    ctx := context.Background()
    res, err := s.Plugins.PluginSettings(ctx)
    if err != nil {
        log.Fatal(err)
    }
    if res.Object != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.

Response

*operations.PluginSettingsResponse, error

Error Object Status Code Content Type
sdkerrors.SDKError 4xx-5xx /

UpdateSettings

Update plugins repository URL and proxy

Example Usage

package main

import(
	rudder "github.com/infra-rdc/rudder-go"
	"context"
	"log"
)

func main() {
    s := rudder.New(
        rudder.WithSecurity("<YOUR_API_KEY_HERE>"),
    )

    ctx := context.Background()
    res, err := s.Plugins.UpdateSettings(ctx)
    if err != nil {
        log.Fatal(err)
    }
    if res.Object != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.

Response

*operations.UpdateSettingsResponse, error

Error Object Status Code Content Type
sdkerrors.SDKError 4xx-5xx /