Skip to content

target and selectortype in phonebooksearch() #575

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

Open
harinivenky opened this issue Feb 20, 2025 · 1 comment
Open

target and selectortype in phonebooksearch() #575

harinivenky opened this issue Feb 20, 2025 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed Python

Comments

@harinivenky
Copy link

I would like to report an issue in the phonebooksearch() function in intelxapi.py.

  1. 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
  1. 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]

  2. 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.

  3. 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.

@cmlh cmlh added bug Something isn't working Python labels Feb 23, 2025
@cmlh
Copy link
Collaborator

cmlh commented Feb 23, 2025

Can you let me know if we need to modify the OpenAPI/Swagger documentation of #527 too @Kleissner?

@cmlh cmlh added the help wanted Extra attention is needed label Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed Python
Projects
None yet
Development

No branches or pull requests

3 participants