-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
getting syntax error in ruby 2.4
syntax error, unexpected tGVAR, expecting ')'
where=properties["$distinct_id"] == "31A15D191044478AA0
my piece of code
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://data.mixpanel.com/api/2.0/export?from_date=2017-07-13&to_date=2021-07-16&where=properties["$distinct_id"] == "31A15D1910444..........E7D4E2"")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = 'application/json'
request["Authorization"] = 'Basic (hidden)'
response = http.request(request)
puts response.read_body
can anybody figure it out why i am getting this error
Metadata
Metadata
Assignees
Labels
No labels