Skip to content

Instantly share code, notes, and snippets.

@randyzwitch
Created May 13, 2014 16:56
Show Gist options
  • Save randyzwitch/0f75ac0693642d98eb66 to your computer and use it in GitHub Desktop.
Save randyzwitch/0f75ac0693642d98eb66 to your computer and use it in GitHub Desktop.
using toJSON effectively
#Efficient method
library(rjson)
report_suites <- list(rsid_list=c("A", "B", "C"))
request.body <- toJSON(report_suites)
#API request
json <- postRequest("ReportSuite.GetTrafficVars", request.body)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment