tests/testthat/upload.twitter.com/1.1/media/upload.json-f7d402-POST.R

structure(list(url = "https://upload.twitter.com/1.1/media/upload.json", 
    status_code = 200L, headers = structure(list(`cache-control` = "no-cache, no-store, must-revalidate, pre-check=0, post-check=0", 
        `content-disposition` = "attachment; filename=json.json", 
        `content-encoding` = "gzip", `content-length` = "145", 
        `content-type` = "application/json;charset=utf-8", date = "Sun, 13 Jun 2021 15:55:11 GMT", 
        expires = "Tue, 31 Mar 1981 05:00:00 GMT", `last-modified` = "Sun, 13 Jun 2021 15:55:11 GMT", 
        pragma = "no-cache", server = "tsa_b", status = "200 OK", 
        `strict-transport-security` = "max-age=631138519", `timing-allow-origin` = "https://twitter.com, https://mobile.twitter.com", 
        vary = "Origin", `x-access-level` = "read-write", `x-connection-hash` = "335b724d638fd53bf7959ad0450860e3", 
        `x-frame-options` = "SAMEORIGIN", `x-rate-limit-limit` = "415", 
        `x-rate-limit-remaining` = "411", `x-rate-limit-reset` = "1623602338", 
        `x-response-time` = "238", `x-transaction` = "00d1995200c11380", 
        `x-tsa-request-body-time` = "88", `x-twitter-response-tags` = "BouncerCompliant", 
        `x-xss-protection` = "1; mode=block"), class = c("insensitive", 
    "list")), all_headers = list(list(status = 200L, version = "HTTP/2", 
        headers = structure(list(`cache-control` = "no-cache, no-store, must-revalidate, pre-check=0, post-check=0", 
            `content-disposition` = "attachment; filename=json.json", 
            `content-encoding` = "gzip", `content-length` = "145", 
            `content-type` = "application/json;charset=utf-8", 
            date = "Sun, 13 Jun 2021 15:55:11 GMT", expires = "Tue, 31 Mar 1981 05:00:00 GMT", 
            `last-modified` = "Sun, 13 Jun 2021 15:55:11 GMT", 
            pragma = "no-cache", server = "tsa_b", status = "200 OK", 
            `strict-transport-security` = "max-age=631138519", 
            `timing-allow-origin` = "https://twitter.com, https://mobile.twitter.com", 
            vary = "Origin", `x-access-level` = "read-write", 
            `x-connection-hash` = "335b724d638fd53bf7959ad0450860e3", 
            `x-frame-options` = "SAMEORIGIN", `x-rate-limit-limit` = "415", 
            `x-rate-limit-remaining` = "411", `x-rate-limit-reset` = "1623602338", 
            `x-response-time` = "238", `x-transaction` = "00d1995200c11380", 
            `x-tsa-request-body-time` = "88", `x-twitter-response-tags` = "BouncerCompliant", 
            `x-xss-protection` = "1; mode=block"), class = c("insensitive", 
        "list")))), cookies = structure(list(domain = c(".twitter.com", 
    "upload.twitter.com", ".twitter.com"), flag = c(TRUE, FALSE, 
    TRUE), path = c("/", "/", "/"), secure = c(TRUE, FALSE, TRUE
    ), expiration = structure(c(1686671483, Inf, 1686671483), class = c("POSIXct", 
    "POSIXt")), name = c("personalization_id", "lang", "guest_id"
    ), value = c("REDACTED", "REDACTED", "REDACTED")), row.names = c(NA, 
    -3L), class = "data.frame"), content = charToRaw("{\"media_id\":1404105074402541569,\"media_id_string\":\"1404105074402541569\",\"size\":5266,\"expires_after_secs\":86400,\"image\":{\"image_type\":\"image\\/jpeg\",\"w\":200,\"h\":133}}"), 
    date = structure(1623599711, class = c("POSIXct", "POSIXt"
    ), tzone = "GMT"), times = c(redirect = 0, namelookup = 0.000055, 
    connect = 0.000057, pretransfer = 0.000296, starttransfer = 0.000304, 
    total = 0.384008)), class = "response")
jonkeane/phototweetr documentation built on Jan. 10, 2023, 1:21 p.m.