All URIs are relative to https://api.gridly.com
Method | HTTP request | Description |
---|---|---|
Create | Put /v1/views/{viewId}/shares | create |
Delete | Delete /v1/views/{viewId}/shares | delete |
Get | Get /v1/views/{viewId}/shares | get |
ShareView Create(ctx, viewId).CreateShareView(createShareView).Execute()
create
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
viewId := "viewId_example" // string | viewId
createShareView := *gridly.NewCreateShareView() // CreateShareView |
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.ShareViewApi.Create(context.Background(), viewId).CreateShareView(createShareView).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ShareViewApi.Create``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Create`: ShareView
fmt.Fprintf(os.Stdout, "Response from `ShareViewApi.Create`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
viewId | string | viewId |
Other parameters are passed through a pointer to a apiCreateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
createShareView | CreateShareView | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Delete(ctx, viewId).Execute()
delete
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
viewId := "viewId_example" // string | viewId
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.ShareViewApi.Delete(context.Background(), viewId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ShareViewApi.Delete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
viewId | string | viewId |
Other parameters are passed through a pointer to a apiDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ShareView Get(ctx, viewId).Execute()
get
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
viewId := "viewId_example" // string | viewId
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.ShareViewApi.Get(context.Background(), viewId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ShareViewApi.Get``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Get`: ShareView
fmt.Fprintf(os.Stdout, "Response from `ShareViewApi.Get`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
viewId | string | viewId |
Other parameters are passed through a pointer to a apiGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]