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

Email endpoint error #32

Open
bigdoods opened this issue Jun 26, 2017 · 1 comment
Open

Email endpoint error #32

bigdoods opened this issue Jun 26, 2017 · 1 comment

Comments

@bigdoods
Copy link

Hi,

I have just tried to use the email endpoint using this package and I am getting an error of (Unexpected token < in JSON at position 0).

(See sample node code below)

var FullContact = require('fullcontact')
var fullcontact = new FullContact('<my-api-key>')

fullcontact.email.disposable('john@jenca.io', function (err, data) {
  if (err) console.log(err)
  else {
    console.log(data)
  }
})
@AdriVanHoudt
Copy link
Contributor

Can you try the raw url and check if the response is valid json?

example https://api.fullcontact.com/v2/person.json?apiKey=YOURKEY&email=adri@test.com but then ofc with your endpoint

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

2 participants