Replace httr with httr2

Change-Id: I196d7eed6560a560a74d31cdaba8715c89e4b4cf
diff --git a/NAMESPACE b/NAMESPACE
index 06a501f..872d6ad 100644
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -53,7 +53,7 @@
 exportMethods(textMetadata)
 import(R.cache)
 import(highcharter)
-import(httr)
+import(httr2)
 import(keyring)
 import(methods)
 import(utils)
@@ -99,10 +99,18 @@
 importFrom(ggplot2,layer)
 importFrom(ggplot2,scale_x_continuous)
 importFrom(ggplot2,theme)
-importFrom(httr,build_url)
-importFrom(httr,parse_url)
 importFrom(httr2,oauth_client)
 importFrom(httr2,oauth_flow_auth_code)
+importFrom(httr2,req_headers)
+importFrom(httr2,req_perform)
+importFrom(httr2,req_timeout)
+importFrom(httr2,req_user_agent)
+importFrom(httr2,resp_body_json)
+importFrom(httr2,resp_body_string)
+importFrom(httr2,resp_content_type)
+importFrom(httr2,resp_status)
+importFrom(httr2,url_build)
+importFrom(httr2,url_parse)
 importFrom(jsonlite,fromJSON)
 importFrom(lubridate,year)
 importFrom(magrittr,"%>%")