Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Getting question attributes with API

  • darliv
  • darliv's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 11 months ago #228542 by darliv
Getting question attributes with API was created by darliv

Hello everyone, 
I am new to Limesurvey and i want your help.
I have attached screenshots.
When i get the questions information with API (Postman) the CSS (Classes) dont show up.
How can i get all informations from the question?

Thank you! 

Please Log in to join the conversation.

More
2 years 11 months ago #228571 by bezojeffs
Replied by bezojeffs on topic Getting question attributes with API
This should not be that hard get survey_attributes and it might work

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
2 years 11 months ago #228606 by DenisChenu
Replied by DenisChenu on topic Getting question attributes with API
Why you don't answer about LimeSurvey version ?
Since you have language attributes : seems to be an issue.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • darliv
  • darliv's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 11 months ago #228607 by darliv
Replied by darliv on topic Getting question attributes with API
LimeSurvey Community Edition
Version 5.3.13+220509

Please Log in to join the conversation.

  • darliv
  • darliv's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 11 months ago #228608 by darliv
Replied by darliv on topic Getting question attributes with API
The problem is that i dont get all the attributes like CSS classes that i want to get

Please Log in to join the conversation.

  • darliv
  • darliv's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 11 months ago #228610 by darliv
Replied by darliv on topic Getting question attributes with API
 
All the other attributes that i didnt include in the screenshot

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
2 years 11 months ago #228611 by DenisChenu
Replied by DenisChenu on topic Getting question attributes with API

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: darliv

Please Log in to join the conversation.

  • darliv
  • darliv's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 11 months ago - 2 years 11 months ago #228764 by darliv
Replied by darliv on topic Getting question attributes with API
Hi,
After reporting this case to the bug tracking team they informed me that this field is not available in limesurvey rest api  bugs.limesurvey.org/view.php?id=18135

As this field is very crucial to our  mobile application development, could you suggest me if there is a way to extend an RPC functions?
More exactly i want to clone : get_question_properties into a new function like get_question_properties_extended  with the fields i want to get,that will not be overrided by limesurvey updates.



Thanks!!
 
Last edit: 2 years 11 months ago by darliv.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
2 years 11 months ago #228771 by DenisChenu
Replied by DenisChenu on topic Getting question attributes with API

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: darliv

Please Log in to join the conversation.

  • darliv
  • darliv's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago - 2 years 10 months ago #228886 by darliv
Replied by darliv on topic Getting question attributes with API
Hello,
Can you please explain me with a few steps how to connect the plugin with Limesurvey so i can get functions to execute in POSTMAN.
 
But here it shows that functions i made in the plugin (functions),only i cant execute functions in POSTMAN. 


Thank you!!
Last edit: 2 years 10 months ago by darliv.

Please Log in to join the conversation.

  • darliv
  • darliv's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #228909 by darliv
Replied by darliv on topic Getting question attributes with API
Because it's not very clear...


Thank you!!

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
2 years 10 months ago #228910 by DenisChenu
Replied by DenisChenu on topic Getting question attributes with API
Surely not the best solution ....
blog.alexanderwolf.tech/how-to-test-a-js...pc-api-with-postman/

Create a simple python or php is more easy
You need to get your tokenkey before

Then :
1. Use www.limesurvey.org/manual/RemoteControl_2_API#get_session_key to get you token key
2. Use it in all other request (during 2 hours)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: darliv

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose