mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 18:44:01 +08:00
fix(sidebar): switch to using Nilas FullContact key
This commit is contained in:
parent
0bbc2e826a
commit
bc7fade77c
1 changed files with 4 additions and 3 deletions
|
@ -28,10 +28,11 @@ FullContactStore = Reflux.createStore
|
|||
@_fetchAPIData(contact.email)
|
||||
@trigger()
|
||||
|
||||
_fetchAPIData: (email) ->
|
||||
_fetchAPIData: (email="") ->
|
||||
# Swap the url's to see real data
|
||||
url = 'https://api.fullcontact.com/v2/person.json?email='+email+'&apiKey=61c8a2325df0471f'
|
||||
# url = 'https://gist.githubusercontent.com/KartikTalwar/885f1ad03bc64914cfe2/raw/ce369b03089c2b334334824a78b3512e6a4a5ebe/fullcontact1.json'
|
||||
email = email.toLowerCase().trim()
|
||||
return if email.length is 0
|
||||
url = "https://api.fullcontact.com/v2/person.json?email=#{email}&apiKey=eadcbaf0286562a"
|
||||
request url, (err, resp, data) =>
|
||||
return {} if err
|
||||
return {} if resp.statusCode != 200
|
||||
|
|
Loading…
Reference in a new issue