Start a conversation

Network

1) network/all

Method returns user table

Parameter Type Mandatory field Note
accountIds array | string yes  
onlyMain boolean no  
orderBy array | string no  
filter array no list
pageNumber
integer no page number
perPage integer no number of records per page, default 50, maximum 100

In the filter parameter, you can specify the fields from the list that correspond to the fields of the database tables.

The filter parameter is set in the form of an array, each element of the array is a filter by some field, and each filter consists of 3 fields:

'field' => 'sponsorId',
'operation' => '=',
'value' => '100',

Because the request is made by the GET method, then the array of values (filter and other parameters) must be packed in url

PHP example: $ url. '?' . http_build_query ($ fields).

$params = [    

'filter' => [        

0 => [            

'field' => 'accountId',            

'operation' => 'between',            

'value' => [                

0 => '1',                

1 => '2',            

],        

],    

]; 

request url with this filter after processing by function

http_build_query:  http://api2.local/api2/main-app/network/all?filter%5B0%5D%5Bfield%5D=accountId&filter%5B0%5D%5Boperation%5D=between&filter%5B0%5D%5Bvalue%5D%5B0%5D=1&filter%5B0%5D%5Bvalue%5D%5B1%5D=2


Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Daria Tsirelnikova

  2. Posted
  3. Updated

Comments