listObjects: List any object

Description Usage Arguments Details Author(s) See Also Examples

Description

List any objects from the API, see details for valid values.

Usage

1
listObjects(object, n = 50)

Arguments

object

Nodes to target. See details

n

Number of objects to retrieve, defaults to 50

Details

Valid values for objects:

listObject can essentially replace any other list family functions. See examples.

Author(s)

John Coene jcoenep@gmail.com

See Also

orionOAuth, listImages, listAudiences, listCampaigns, listAdsets and listAds

Examples

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

# list campaigns with listObjects
obj <- listObjects(object = "campaign")

# identical results
identical(camps, obj)

## End(Not run)

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