All URIs are relative to https://api.rankvectors.com
| Method | HTTP request | Description |
|---|---|---|
| GetImplementationInstructions | Get /api/webhook/implement-link | Get implementation instructions |
| ReportImplementationStatus | Post /api/webhook/implement-link | Report implementation status |
ImplementationInstructions GetImplementationInstructions(ctx).SuggestionId(suggestionId).Execute()
Get implementation instructions
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/rankvectors/rankvectors-go-sdk"
)
func main() {
suggestionId := "sugg-123" // string | ID of the suggestion to implement
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WebhooksAPI.GetImplementationInstructions(context.Background()).SuggestionId(suggestionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.GetImplementationInstructions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetImplementationInstructions`: ImplementationInstructions
fmt.Fprintf(os.Stdout, "Response from `WebhooksAPI.GetImplementationInstructions`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetImplementationInstructionsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| suggestionId | string | ID of the suggestion to implement |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReportImplementationStatus200Response ReportImplementationStatus(ctx).ReportImplementationStatusRequest(reportImplementationStatusRequest).Execute()
Report implementation status
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/rankvectors/rankvectors-go-sdk"
)
func main() {
reportImplementationStatusRequest := *openapiclient.NewReportImplementationStatusRequest("sugg-123", "rv_1234567890abcdef", "success") // ReportImplementationStatusRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.WebhooksAPI.ReportImplementationStatus(context.Background()).ReportImplementationStatusRequest(reportImplementationStatusRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.ReportImplementationStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReportImplementationStatus`: ReportImplementationStatus200Response
fmt.Fprintf(os.Stdout, "Response from `WebhooksAPI.ReportImplementationStatus`: %v\n", resp)
}Other parameters are passed through a pointer to a apiReportImplementationStatusRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| reportImplementationStatusRequest | ReportImplementationStatusRequest |
ReportImplementationStatus200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]