Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected tGVAR #177

Open
adarsh-awasthi opened this issue Jul 21, 2021 · 0 comments
Open

unexpected tGVAR #177

adarsh-awasthi opened this issue Jul 21, 2021 · 0 comments

Comments

@adarsh-awasthi
Copy link

adarsh-awasthi commented Jul 21, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant