Announcement

Collapse
No announcement yet.

Find Contacts by phoneNumber via API

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Find Contacts by phoneNumber via API

    Hi,
    I'm trying find a name etc via API with where array request like that
    Code:
    [
    
    'type' => 'equals',
    'attribute' => 'phoneNumber',
    'value'=> 'XXXXXXXXX'
    
    ];
    to Contact endpoint with params like that
    Code:
    [
    'select' => 'id,firstName,phoneNumber',
    'primaryFilter' => $primaryFilter,
    'boolFilterList' => $boolFilterList,
    'orderBy' => 'name',
    'maxSize' => 20,
    'offset'=> 0,
    'where' => $where,
    ];
    and API returns me full list of contacts, not just a requested one.

    And in the same time, with GET request /api/v1/Contact?select=id,firstName,phoneNumber&maxSize=20 &offset=0&orderBy=name&order=asc&where[0][type]=equals&where[0][attribute]=phoneNumber&where[0][value]=XXXXXXXXX returns me exactly what I need

    could you please helps me to find why API request did'nt works properly

  • #2
    Hi Cherko,

    I was wondering if you figured this out, I'm having the same problem!

    Comment

    Working...
    X