How to deal with datafield returned from webservice request

Aperta
#237 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

Start by tracing how the webservice response is made available to later workflow steps and how email placeholders such as {data->cm->id} are parsed. The issue gives an example response and the placeholder that fails, but names no files or tests. Done when the correct reference syntax is documented or the returned value can be used in an email.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I invoke a Webservice Function and I see the correct data returned. However, I don't know how to use it in subsequent steps of the workflow.
The data returned looks like this:

'{
    "error": false,
    "data": {
        "cm": {
            "id": 563,
            "course": 16,
            "module": 1
        },
        "warnings": []
    }
}'

However when I try to use {data->cm->id} it does not get replace in an email. What is the correct way to reference the returned object?

Lingua principale
PHP
Stelle
46
Fork
29
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di catalyst/moodle-tool_trigger

Tutte le issue di catalyst/moodle-tool_trigger

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.