|
10 | 10 | #' @param channel_guids - a list of strings |
11 | 11 | #' @param description - description of campaign |
12 | 12 | #' @param name - its name |
| 13 | +#' @param access_token - bearer token for authentication |
13 | 14 | #' |
14 | 15 | #' @inheritParams bitly_user_info |
15 | 16 | #' @inheritParams bitly_retrieve_group |
@@ -42,7 +43,7 @@ bitly_create_campaigns <- function(access_token, group_guid = NULL, channel_guid |
42 | 43 | showURL = showRequestURL |
43 | 44 | ) |
44 | 45 |
|
45 | | - df_create_camps <- data.frame(df_create_camps, stringsAsFactors = FALSE) |
| 46 | + df_create_camps <- data.frame(df_create_camps) |
46 | 47 | df_create_camps$created <- ymd_hms(df_create_camps$created, tz = "UTC") |
47 | 48 | df_create_camps$modified <- ymd_hms(df_create_camps$modified, tz = "UTC") |
48 | 49 |
|
@@ -75,7 +76,7 @@ bitly_retrieve_campaigns <- function(access_token, group_guid = NULL, showReques |
75 | 76 |
|
76 | 77 | df_get_camps <- doBearerTokenRequest("GET", get_camp, access_token = access_token, queryParameters = query, showURL = showRequestURL) |
77 | 78 |
|
78 | | - df_get_camps <- data.frame(df_get_camps$campaigns, stringsAsFactors = FALSE) |
| 79 | + df_get_camps <- data.frame(df_get_camps$campaigns) |
79 | 80 | df_get_camps$created <- ymd_hms(df_get_camps$created, tz = "UTC") |
80 | 81 | df_get_camps$modified <- ymd_hms(df_get_camps$modified, tz = "UTC") |
81 | 82 |
|
@@ -125,7 +126,7 @@ bitly_create_channel <- function(access_token, group_guid = NULL, guid = NULL, n |
125 | 126 | showURL = showRequestURL |
126 | 127 | ) |
127 | 128 |
|
128 | | - df_create_channel <- data.frame(df_create_channel, stringsAsFactors = FALSE) |
| 129 | + df_create_channel <- data.frame(df_create_channel) |
129 | 130 | df_create_channel$created <- ymd_hms(df_create_channel$created, tz = "UTC") |
130 | 131 | df_create_channel$modified <- ymd_hms(df_create_channel$modified, tz = "UTC") |
131 | 132 |
|
@@ -160,7 +161,7 @@ bitly_retrieve_channels <- function(access_token, group_guid = NULL, campaign_gu |
160 | 161 |
|
161 | 162 | df_get_channels <- doBearerTokenRequest("GET", get_channels, access_token = access_token, queryParameters = query, showURL = showRequestURL) |
162 | 163 |
|
163 | | - df_get_channels <- data.frame(df_get_channels$channels, stringsAsFactors = FALSE) |
| 164 | + df_get_channels <- data.frame(df_get_channels$channels) |
164 | 165 | df_get_channels$created <- ymd_hms(df_get_channels$created, tz = "UTC") |
165 | 166 | df_get_channels$modified <- ymd_hms(df_get_channels$modified, tz = "UTC") |
166 | 167 |
|
@@ -194,7 +195,7 @@ bitly_retrieve_campaign <- function(access_token, campaign_guid = NULL, showRequ |
194 | 195 |
|
195 | 196 | df_get_camp <- doBearerTokenRequest("GET", get_camp, access_token = access_token, queryParameters = query, showURL = showRequestURL) |
196 | 197 |
|
197 | | - df_get_camp <- data.frame(df_get_camp, stringsAsFactors = FALSE) |
| 198 | + df_get_camp <- data.frame(df_get_camp) |
198 | 199 | df_get_camp$created <- ymd_hms(df_get_camp$created, tz = "UTC") |
199 | 200 | df_get_camp$modified <- ymd_hms(df_get_camp$modified, tz = "UTC") |
200 | 201 |
|
@@ -229,7 +230,7 @@ bitly_retrieve_channel <- function(access_token, channel_guid = NULL, showReques |
229 | 230 |
|
230 | 231 | df_get_channel <- doBearerTokenRequest("GET", get_channel, access_token = access_token, queryParameters = query, showURL = showRequestURL) |
231 | 232 |
|
232 | | - df_get_channel <- data.frame(df_get_channel, stringsAsFactors = FALSE) |
| 233 | + df_get_channel <- data.frame(df_get_channel) |
233 | 234 | df_get_channel$created <- ymd_hms(df_get_channel$created, tz = "UTC") |
234 | 235 | df_get_channel$modified <- ymd_hms(df_get_channel$modified, tz = "UTC") |
235 | 236 |
|
@@ -277,7 +278,7 @@ bitly_update_campaign <- function(access_token, campaign_guid = NULL, group_guid |
277 | 278 | showURL = showRequestURL |
278 | 279 | ) |
279 | 280 |
|
280 | | - df_update_camps <- data.frame(df_update_camps, stringsAsFactors = FALSE) |
| 281 | + df_update_camps <- data.frame(df_update_camps) |
281 | 282 | df_update_camps$created <- ymd_hms(df_update_camps$created, tz = "UTC") |
282 | 283 | df_update_camps$modified <- ymd_hms(df_update_camps$modified, tz = "UTC") |
283 | 284 |
|
@@ -322,7 +323,7 @@ bitly_update_channel <- function(access_token, channel_guid = NULL, group_guid = |
322 | 323 | showURL = showRequestURL |
323 | 324 | ) |
324 | 325 |
|
325 | | - df_update_camp <- data.frame(df_update_camp, stringsAsFactors = FALSE) |
| 326 | + df_update_camp <- data.frame(df_update_camp) |
326 | 327 | df_update_camp$created <- ymd_hms(df_update_camp$created, tz = "UTC") |
327 | 328 | df_update_camp$modified <- ymd_hms(df_update_camp$modified, tz = "UTC") |
328 | 329 |
|
|
0 commit comments