windsor_fetch {windsoraiR}R Documentation

Windsor fetch A function to fetch data from the Windsor.ai API

Description

Windsor fetch A function to fetch data from the Windsor.ai API

Usage

windsor_fetch(
  api_key,
  connector = "all",
  date_preset = "last_7d",
  fields = c("source", "campaign", "clicks", "medium", "sessions", "spend")
)

Arguments

api_key

Your api key to access Windsor.ai API

connector

A connector for the data source. The connector "all" connector blends data from all sources See https://www.windsor.ai/api-fields/ for details.

date_preset

the period for which data is fetched from the API. See https://www.windsor.ai/api-fields/ for details

fields

The fields fetched from the API for a given connector See https://www.windsor.ai/api-fields/ for details.

Value

A data frame containing the desired data.

Examples

## Not run: 
windsor_fetch <- (api_key = "your api key",
connector = "all",
date_preset = "last_7d",
fields = c("source", "campaign", "clicks",
           "medium", "sessions", "spend"))

## End(Not run)

[Package windsoraiR version 0.1.2 Index]