updateCampaign: Update a campaign

Description Usage Arguments Details Author(s) See Also Examples

Description

Update campaign settings, see details and example.

Usage

1
updateCampaign(campaign.id, body)

Arguments

campaign.id

id of campaign to update

body

Body of request that includes campaigns settings. See examples and details.

Details

Valid values for body:

Author(s)

John Coene jcoenep@gmail.com

See Also

orionOAuth, listCampaigns, createCampaign, helpers

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
# authenticate
orionOAuth(client.id = 0000,
           client.secret = "0x00000000x00x0x000xxx0000x0xx0")
           
# list campaigns
camps <- listCampaign()

# update campaign name
update <- updateCampaign(campaign.id = camps$id[1], body = list(
                         switch = 0, 
                         name = "New campaign Name"))
               
# show updated campaign
showCampaign(campaign.id = camps$id[1])

## End(Not run)

JohnCoene/oRion documentation built on June 13, 2019, 12:44 p.m.