PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
datos JSON
datos JSON
Started by ErikaNeri, Aug., 04 2023 7:23 PM - 3 replies
Connect yourself…
ErikaNeri
#1
Registered member
4 messages
Posted on August, 04 2023 - 7:23 PM
Hola, quisiera saber como introducir y extraer el resultado de datos JSON para windev, lo he hecho así:
StatusCom is JSON = [
{
"request":{
"action":"getSystemStatus",
"cookie":"{{cookie}}"
}
}
]
pero no se extraer el resultado, cuando lo hago con Postman funciona (agrego captura del resultado que trae al ejecutar el ejemplo)
Lo requiero para conectar mi conmutador con un softphone que diseñe en windev, si alguien me pudiera dar un ejemplo para interactuar entre JSON y windev se los agradecería, uso windev v25
Report
0
0
JUAN BARBAT
#2
Registered member
43 messages
Posted on August, 08 2023 - 4:54 PM
Erika, como te va?
Lo que tienes que hacer es utilizar las funciones httpRequest y httpResponse.
En postman a la derecha tienes un ejemplo del código que tendrías que utilizar, por ejemplo en curl. Toma esos datos que te muestra el ejemplo para armar tu request.
Una vez hagas el send el webservice te va a responder y dentro de ese response vas a tener un content el cual debería ser el json que te esta dando postman.
Una vez que tengas el json ya te queda toda la info disponible para que la manejes.
--
Distribuidor autorizado PCSoft.
https://windev.com.uy
Telegram: @jbarbat
Comunidad Discord en Español:
https://discord.gg/gMQurQ4f
Report
0
0
Luis Montelongo
#3
Posted on August, 10 2023 - 12:23 AM
Buenas,
Espero te sirva este ejemplo
Report
1
0
Luis Montelongo
#4
Posted on August, 10 2023 - 12:44 AM
Espero te ayude.
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text