- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How to use the API in Laravel
- josulite
- Topic Author
- Offline
- New Member
Less
More
4 years 7 months ago #188376
by josulite
How to use the API in Laravel was created by josulite
Hi there,
I am using Postman to make Post calls to LimeSurvey API to get the session key, as you can see here.
It works great!
But now I want to do the same in a Laravel Application. I am using Guzzle as Http Client.
This is my function:
And when I call this Laravel function from postman, that's what I get:
Can anyone help me how could I make a Post request to LimeSurvey Api using Guzzle in Laravel, and sending raw json as a parameter?
I am using Postman to make Post calls to LimeSurvey API to get the session key, as you can see here.
It works great!
But now I want to do the same in a Laravel Application. I am using Guzzle as Http Client.
This is my function:
And when I call this Laravel function from postman, that's what I get:
Can anyone help me how could I make a Post request to LimeSurvey Api using Guzzle in Laravel, and sending raw json as a parameter?
Attachments:
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 7 months ago #188414
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How to use the API in Laravel
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- josulite
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
4 years 7 months ago #188424
by josulite
Replied by josulite on topic How to use the API in Laravel
The topic has been locked.
- kossaw
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 1
4 years 7 months ago - 4 years 7 months ago #188432
by kossaw
Replied by kossaw on topic How to use the API in Laravel
No, you need a jsonRPC Client
"weberhofer/jsonrpcphp": "^2.2"
or use a prepackaged solution
github.com/evently-nl/limeremote
"weberhofer/jsonrpcphp": "^2.2"
or use a prepackaged solution
github.com/evently-nl/limeremote
Last edit: 4 years 7 months ago by kossaw.
The following user(s) said Thank You: DenisChenu
The topic has been locked.