(Connector.ConnectorDocs)
- Get - Get Connector Doc content
Get Connector Doc content
package main
import(
"context"
"os"
sdkgo "github.com/apideck-libraries/sdk-go"
"log"
)
func main() {
ctx := context.Background()
s := sdkgo.New(
sdkgo.WithSecurity(os.Getenv("APIDECK_API_KEY")),
sdkgo.WithConsumerID("test-consumer"),
sdkgo.WithAppID("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX"),
)
res, err := s.Connector.ConnectorDocs.Get(ctx, "<id>", "application_owner+oauth_credentials", nil)
if err != nil {
log.Fatal(err)
}
if res.GetConnectorDocResponse != nil {
// handle response
}
}
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ctx |
context.Context | ✔️ | The context to use for the request. | |
id |
string | ✔️ | ID of the record you are acting upon. | |
docID |
string | ✔️ | ID of the Doc | application_owner+oauth_credentials |
appID |
*string | ➖ | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX |
opts |
[]operations.Option | ➖ | The options for this request. |
*operations.ConnectorConnectorDocsOneResponse, error
Error Type | Status Code | Content Type |
---|---|---|
apierrors.UnauthorizedResponse | 401 | application/json |
apierrors.PaymentRequiredResponse | 402 | application/json |
apierrors.NotFoundResponse | 404 | application/json |
apierrors.APIError | 4XX, 5XX | */* |