Skip to content

Latest commit

 

History

History
186 lines (121 loc) · 6.04 KB

CampaignApi.md

File metadata and controls

186 lines (121 loc) · 6.04 KB

\CampaignApi

All URIs are relative to https://radiomanager.io/api/v2

Method HTTP request Description
CreateCampaign Post /campaigns Create campaign.
DeleteCampaignById Delete /campaigns/{id} Delete campaign by id
GetCampaignById Get /campaigns/{id} Get campaign by id
ListCampaigns Get /campaigns Get all campaigns.
UpdateCampaignByID Patch /campaigns/{id} Update campaign by id

CreateCampaign

PostSuccess CreateCampaign(ctx, data) Create campaign.

Create campaign.

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
data CampaignDataInput Data (Required)

Return type

PostSuccess

Authorization

[API Key](../README.md#API Key)

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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

DeleteCampaignById

Success DeleteCampaignById(ctx, id) Delete campaign by id

Delete campaign by id

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
id int64 ID of Campaign (Required)

Return type

Success

Authorization

[API Key](../README.md#API Key)

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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

GetCampaignById

CampaignResult GetCampaignById(ctx, id, optional) Get campaign by id

Get campaign by id

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
id int64 ID of Campaign (Required)
optional map[string]interface{} optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a map[string]interface{}.

Name Type Description Notes
id int64 ID of Campaign (Required)
externalStationId int64 Query on a different (content providing) station (Optional)

Return type

CampaignResult

Authorization

[API Key](../README.md#API Key)

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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

ListCampaigns

CampaignResults ListCampaigns(ctx, optional) Get all campaigns.

List all campaigns.

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
optional map[string]interface{} optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a map[string]interface{}.

Name Type Description Notes
page int64 Current page (Optional)
itemId int64 Search on Item ID (Optional) `(Relation)`
modelTypeId int64 Search on ModelType ID (Optional) `(Relation)`
startMin time.Time Minimum start date (Optional)
startMax time.Time Maximum start date (Optional)
limit int64 Results per page (Optional)
orderBy string Field to order the results (Optional)
orderDirection string Direction of ordering (Optional)
externalStationId int64 Query on a different (content providing) station (Optional)

Return type

CampaignResults

Authorization

[API Key](../README.md#API Key)

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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

UpdateCampaignByID

Success UpdateCampaignByID(ctx, id, optional) Update campaign by id

Update campaign by id

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
id int64 ID of Campaign (Required)
optional map[string]interface{} optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a map[string]interface{}.

Name Type Description Notes
id int64 ID of Campaign (Required)
data CampaignDataInput Data (Optional)

Return type

Success

Authorization

[API Key](../README.md#API Key)

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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