Skip to content

Instantly share code, notes, and snippets.

@Jianghao
Last active October 21, 2017 11:20
Show Gist options
  • Save Jianghao/6925f4d3c4a12fb4e7c80f490e048ee0 to your computer and use it in GitHub Desktop.
Save Jianghao/6925f4d3c4a12fb4e7c80f490e048ee0 to your computer and use it in GitHub Desktop.
setCurl <- function(uid=1404376560, access_token="2.00X_6UXFwXYrFD089496f37cRKW2TB"){
prefix <- "curl \".....................&request_data="
suffix <- "&_t=0\" --compressed --connect-timeout 5 -m 10"
url <- paste0(prefix, "uid%3D", uid, "%26access_token%3D", access_token, suffix)
return(as.character(url))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment