1b.app
Link copied -

how to get a string by the directory key in the /api/directory/get/ method

Hello.
how to get string by directory key in /api/directory/get/ method?
You need to get the entire line by the value of the field in the dictionary
1 Type date
2 Type text
Estimate the cost of improvement or tell me how to get a reference string by field value... Thanks in advance
Original question is available on version: ru

Answers:

This API does not provide filtering by fields - only by identifier through the recordid parameter.
Alternatively, the filtering can be improved so that "field_name"="value" is passed in the request - this will take 2 hours.
18.11.2020, 15:03
Original comment available on version: ru

it will be possible to filter by any field of the directory (with type date, text, number)?
send payment details
18.11.2020, 15:25
Original comment available on version: ru

you also need a date period filter for a month, that is, select the "from" "to" field of the reference book
18.11.2020, 15:27
Original comment available on version: ru


Poltorak Sergey wrote:
it will be possible to filter by any field of the directory (with type date, text, number)?

filtering will be available on the fields that are in the directory

Poltorak Sergey wrote:
you also need a date period filter for a month, that is, select the "from" "to" field of the reference book

OK
18.11.2020, 15:34
Original comment available on version: ru

Thanks I'm waiting for the invoice
18.11.2020, 16:36
Original comment available on version: ru

Paid - waiting for a decision
19.11.2020, 11:13
Original comment available on version: ru

Can you please tell me when to expect a decision?
20.11.2020, 15:13
Original comment available on version: ru


Poltorak Sergey
Client wrote:
Can you please tell me when to expect a decision?

within 3 working days. days
20.11.2020, 15:25
Original comment available on version: ru


Ustimenko Igor
OneBox CTO wrote:

Poltorak Sergey
Client wrote:
Can you please tell me when to expect a decision?

within 3 working days. days

Please tell me, have 3 working days already passed?
25.11.2020, 18:24
Original comment available on version: ru


Poltorak Sergey wrote:
Please tell me, have 3 working days already passed?

Sorry, very busy with earlier tasks.
Your revision will be implemented until 27.11 until 20:00, after which you will be additionally notified.
26.11.2020, 17:30
Original comment available on version: ru


Tyndyk Maxim Vadimovich wrote:
Your revision will be implemented until 27.11 until 20:00, after which you will be additionally notified.

Wrong number - 26.11, that is, today.
In general, we implemented the reception of the fields parameter, which should be an array of "key"="value" pairs, where:
key - field name
value - actual value for filtering
If you pass the field "date" or "date / time" - you can filter the interval, passed 2 key-value pairs, adding to the key (field name) the ending "from" / "to" (in the system language)
26.11.2020, 18:43
Original comment available on version: ru


Tyndyk Maxim Vadimovich
Administrator wrote:

Tyndyk Maxim Vadimovich wrote:
Your revision will be implemented until 27.11 until 20:00, after which you will be additionally notified.

Wrong number - 26.11, that is, today.
In general, we implemented the reception of the fields parameter, which should be an array of "key"="value" pairs, where:
key - field name
value - actual value for filtering
If you pass the field "date" or "date / time" - you can filter the interval, passed 2 key-value pairs, adding to the key (field name) the ending "from" / "to" (in the system language)

Something doesn't work
1 I make such a request domain-login password &directoryid=13&referal_code=stepanchuk and displays the entire directory instead of the expected string... what could be wrong?
2 please send an example of a request with a filter by interval...
27.11.2020, 09:24
Original comment available on version: ru


Poltorak Sergey wrote:
Something doesn't work
1 I make such a request domain-login password &directoryid=13&referal_code=stepanchuk and displays the entire directory instead of the expected string... what could be wrong?

you didn't do what I wrote - so the result is not correct
should be fields array, in this case &fields[referal_code]=stepanchuk

Poltorak Sergey wrote:
2 please send an example of a request with a filter by interval...

&fields[XXX from]=2020-10-10&fields[XXX to]=2020-10-12
XXX - field name in the directory constructor
27.11.2020, 17:14
Original comment available on version: ru


Tyndyk Maxim Vadimovich
Administrator wrote:
&fields[XXX from]=2020-10-10&fields[XXX to]=2020-10-12
XXX - field name in the directory constructor

but it can be done without the use of Russian letters, it's not serious to use Russian words in the request ...?
27.11.2020, 17:23
Original comment available on version: ru


Poltorak Sergey wrote:
but it can be done without the use of Russian letters, it's not serious to use Russian words in the request ...?

90% of those who use directories write field names in Russian
respectively, filtering is similar and done
if you have a more correct proposal (on an example) - provide it, I can redo it if it is better
30.11.2020, 14:12
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment