Skip to content

adrienbecuwe/wp-polls-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

wp-polls-rest-api

This wordpress plugins permit to activate the rest api support for Wp-Polls Rest Api original version by 7aduta : https://gist.github.com/7aduta/2bfe5788fa2186255ebe1339ed01fb37

Requests

wp-json/wp/v2/polls

Small change compare to the original Wp-Polls plugins The voting is base by user_login instead of display_name becuwe username can't be change.

GET all polls , is return a return array

  • question (string name)
    • id
    • answers [array of object]
      • polla_aid
      • polla_answers
      • polla_votes

wp-json/wp/v2/poll?id=

GET a poll, return a array

  • poll [object]
    • id
    • answers [array of object]
      • polla_aid
      • polla_answers
      • polla_votes

About

plugins for rest api Wp-Polls Rest Api , original version by 7aduta : https://gist.github.com/7aduta/2bfe5788fa2186255ebe1339ed01fb37

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages