Lead source imports: no duplicates without emails; explee hot leads

origami.chat people have no email, so each import added them again.
Prospects now match on email, then LinkedIn profile, then name at the
same company; companies without a website match by name, and get the
domain when one turns up. explee.com's hot-leads list allows at most 200
per page (500 was refused, so no hot leads became prospects). origami.chat
people's company website is read from identity.website_url. explee.com's
key test no longer says "the key works" twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-21 18:33:26 -07:00
co-authored by Claude Opus 5.5
parent 157902f7e2
commit e135288005
5 changed files with 128 additions and 37 deletions
+2 -2
View File
@@ -101,7 +101,7 @@ func (c *Client) Me(ctx context.Context) (string, error) {
return v, nil
}
}
return "the key works", nil
return "", nil
}
// Campaign is an outreach campaign.
@@ -212,7 +212,7 @@ func (c *Client) HotLeads(ctx context.Context, since time.Time) ([]HotLead, erro
HasMore bool `json:"has_more"`
NextOffset *int `json:"next_offset"`
}
q := url.Values{"limit": {"500"}, "offset": {strconv.Itoa(offset)}}
q := url.Values{"limit": {"200"}, "offset": {strconv.Itoa(offset)}} // the API allows at most 200
if !since.IsZero() {
q.Set("since", since.UTC().Format(time.RFC3339))
}