Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • W wp-pledges-plugin
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • outlandish
  • wp-pledges-plugin
  • Merge requests
  • !4

Merged
Created Oct 07, 2019 by Joaquim d'Souza@joaquimOwner

Add database tables, send email route, and accept pledge route

  • Overview 2
  • Commits 5
  • Changes 1

You will have to re-activate the plugin to create the tables.

Test with:

curl -d '{"mp_parliament_uk_id":4, "sender_email":"a", "sender_name":"jane", "sender_address":"london"}' 'http://futuregenerations.localhost/wp-json/pledge-tracker/v1/email-mp' -H "Content-type: application/json"

Grab the token: SELECT pledge_token FROM wp_mp_pledge_status;

curl -X PUT -d '{"mp_parliament_uk_id":4, "pledge_token":"PLEDGE_TOKEN"}' 'http://futuregenerations.localhost/wp-json/pledge-tracker/v1/email-mp' -H "Content-type: application/json"
Edited Oct 07, 2019 by Joaquim d'Souza
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: pledge_database_tables