Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-55393

New Web Service core_message_get_user_notification_preferences

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.1
    • 3.2
    • Messages
    • MOODLE_31_STABLE
    • MOODLE_32_STABLE
    • MDL-55393-master
    • Hide
      1. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      2. Create a Token for one user:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      3. With this user configure your notification preferences (only notifications, not message)
      4. You can optionaly as admin force some message settings via /message/defaultoutputs.php
      5. Next, you can do a CURL REST call simulating a WS client with the user.
        • You need to replace the wstoken and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'userid=0&wsfunction=core_message_get_user_notification_preferences&wstoken=ffbe3a3002f235bf9d01fd9369e10b66' | python -m "json.tool"

      6. Check that you see only the processors enabled
      7. For each component and notification, check that the configuration for the processor is correct (online and offline)
      8. If you forced some notification settings, check that the locked field is correctly returned as true
      Show
      As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for one user: Click on Site administration ► Plugins ► Web services ► Manage tokens With this user configure your notification preferences (only notifications, not message) You can optionaly as admin force some message settings via /message/defaultoutputs.php Next, you can do a CURL REST call simulating a WS client with the user. You need to replace the wstoken and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'userid=0&wsfunction=core_message_get_user_notification_preferences&wstoken=ffbe3a3002f235bf9d01fd9369e10b66' | python -m "json.tool" Check that you see only the processors enabled For each component and notification, check that the configuration for the processor is correct (online and offline) If you forced some notification settings, check that the locked field is correctly returned as true

    Description

      To be developed once MDL-54698 is finished

      This is the Web Service for retrieving the current user messaging preferences

      Attachments

        Issue Links

          Activity

            People

              jleyva Juan Leyva
              jleyva Juan Leyva
              Dani Palou Dani Palou
              David Monllaó David Monllaó
              Jake Dallimore Jake Dallimore
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5/Dec/16