Skip to content

Latest commit

 

History

History
128 lines (82 loc) · 3.46 KB

InstanceStatsApi.md

File metadata and controls

128 lines (82 loc) · 3.46 KB

\InstanceStatsApi

All URIs are relative to https://navigator-api.tweakwise.com

Method HTTP request Description
InstanceStatsTotalCategories Get /stats/totalcategories Get the number of total categories.
InstanceStatsTotalProducts Get /stats/totalproducts Get the number of total products.

InstanceStatsTotalCategories

map[string]interface{} InstanceStatsTotalCategories(ctx).Execute()

Get the number of total categories.

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.InstanceStatsApi.InstanceStatsTotalCategories(context.Background()).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `InstanceStatsApi.InstanceStatsTotalCategories``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `InstanceStatsTotalCategories`: map[string]interface{}
    fmt.Fprintf(os.Stdout, "Response from `InstanceStatsApi.InstanceStatsTotalCategories`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiInstanceStatsTotalCategoriesRequest struct via the builder pattern

Return type

map[string]interface{}

Authorization

apiKeyDefinition, instanceKeyDefinition

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstanceStatsTotalProducts

map[string]interface{} InstanceStatsTotalProducts(ctx).Execute()

Get the number of total products.

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.InstanceStatsApi.InstanceStatsTotalProducts(context.Background()).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `InstanceStatsApi.InstanceStatsTotalProducts``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `InstanceStatsTotalProducts`: map[string]interface{}
    fmt.Fprintf(os.Stdout, "Response from `InstanceStatsApi.InstanceStatsTotalProducts`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiInstanceStatsTotalProductsRequest struct via the builder pattern

Return type

map[string]interface{}

Authorization

apiKeyDefinition, instanceKeyDefinition

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]