@bebetter said in How to Manage API Key Usage in Multi-Threaded Tasks with BAS:
Can we return the API key back to the resource after finishing a thread?
You don't need it. Just set the usage count of the resource when you create it.
Всем привет!
Проблема, такая. При старте проекта 3 переменные
{
API_OBJECT: "undefined",
ERROR_API: "undefined",
RESPONSE_API: "undefined"
}
обращаюсь к апи, получаю содержимое ответа
устанавливаю в переменную: API_OBJECT
JSON.parse([[RESPONSE_API]])
Далее устанавливаю переменную ERROR_API
[[API_OBJECT]]["response"]["error_text"]
Переменная ERROR_API пропадает
{
API_OBJECT: { },
RESPONSE_API: "{"response":{"count":0,"items":[]},"run_time":626,"server_time":1521788111,"error":404,"error_tex..."
}
Пробовал в место переменной выполнить код:
[[API_ERROR]] = [[API_OBJECT]]["response"]["error_text"]
Опять же переменная пропадает