Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
drift_api_query_with_R
library(httr)
library(rjson)
url <-'https://driftapi.com/conversations/52662097/messages'
token <-'AQ14yXgTM934cMjNEGfa6epBDU6TpCIY'
query <- GET(url, add_headers('Authorization' = paste("bearer", token)))
http_status(query)
df <-fromJSON(content(query,type='text',encoding= 'UTF-8'))
@ryanpraski

This comment has been minimized.

Copy link
Owner Author

@ryanpraski ryanpraski commented Jan 6, 2018

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment