Curl & A-Parser API

wensday

Новичок
Регистрация
03.10.2017
Сообщения
20
Благодарностей
1
Баллы
3
Curl & A-Parser API

I'm trying to get the A-Parser api working. However, I'm unsure of how exactly to work the POST request in zenno.


this is what i'd like to do:

curl http://127.0.0.1:9091/API \
-H 'Content-Type: application/json' \
-d '{"password":"123","action":"ping"}'




When I try to setup post like this, I get an error:

95969

95970


I get this error:
"Compiling code of Error in action "CS1003" "Syntax error, ',' expected". [Row: 3; Column: 47]"

what am I doing wrong?
 

zombie

Client
Регистрация
14.08.2012
Сообщения
480
Благодарностей
119
Баллы
43
Remove quotes from data type
'application/json' - wrong, must be only: application/json
 
  • Спасибо
Реакции: wensday

wensday

Новичок
Регистрация
03.10.2017
Сообщения
20
Благодарностей
1
Баллы
3
Remove quotes from data type
'application/json' - wrong, must be only: application/json
Thanks for your help, unfortunitly it still seems i'm having issues.

So this is what i've got now with your suggestion:
96029


96030







I am still receiving the same errors though =(

96032



I've tried using POST via postman, and it worked so I know a-parser is setup correctly.
 

Вложения

wensday

Новичок
Регистрация
03.10.2017
Сообщения
20
Благодарностей
1
Баллы
3
Never mind, it works perfectly. It was an error from another part of the project. thank you.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)