-
Notifications
You must be signed in to change notification settings - Fork 117
Description
I would like to report an issue in the phonebooksearch() function in intelxapi.py.
- There is no description for the values that target parameter can take in phonebooksearch(). Kindly request you to add this in the code file or in the pdf : SDK/Intelligence X API.pdf. Based on my observation,
- target = 0 : Not sure [Point 4]
- target = 1 : Domains
- target = 2 : Email addresses
- target = 3 : URL
- target >= 4 : Invalid target value
-
This is a sample output format for this function :
[{'selectortype':1,'selectortypeh':'Email Address','selectorvalue':,''selectorvalueh':'}]
[If possible, selectorvalueh key can be removed as in most of the cases I observed, the last 2 keys have the same value] -
The issue here is, there is no proper mapping between target value in the function's parameter and selectortype key in the function's result. Noticed that these 2 values mean the same and are properly mapped to value 3 for URL, but, for domains, target = 1 and selectortype = 2 and vice versa for Email addresses.
-
I'm not sure how target = 0 works. I used AI to find out and got response that this will return all the 3 selectors together. But, from what I observed after some trials is that, for every query any 1 of the 3 target values [Domains, Emails, URLs] are randomly returned. Most of the times target = 2 output is returned. Kindly request you to validate this and add it to the code.