All URIs are relative to https://up.go-adserver.com
| Method | HTTP request | Description |
|---|---|---|
| ApiV1OffersGet | Get /api/v1/offers | List available offers. |
ApiV1OffersGet200Response ApiV1OffersGet(ctx).MainCatid(mainCatid).Catids(catids).Execute()
List available offers.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/goadserver/goadserver-go"
)
func main() {
mainCatid := int32(56) // int32 | Filter by main category id. (optional)
catids := "catids_example" // string | Comma-separated sub-category ids. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OffersAPI.ApiV1OffersGet(context.Background()).MainCatid(mainCatid).Catids(catids).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OffersAPI.ApiV1OffersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApiV1OffersGet`: ApiV1OffersGet200Response
fmt.Fprintf(os.Stdout, "Response from `OffersAPI.ApiV1OffersGet`: %v\n", resp)
}Other parameters are passed through a pointer to a apiApiV1OffersGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| mainCatid | int32 | Filter by main category id. | |
| catids | string | Comma-separated sub-category ids. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]