Curl & A-Parser API

  • Автор темы Автор темы wensday
  • Дата начала Дата начала

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?
 
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.
 

Вложения

  • errors.png
    errors.png
    115,4 KB · Просмотры: 159
Never mind, it works perfectly. It was an error from another part of the project. thank you.
 

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