1. ? ?
  2. PowerBuilder
  3. Friday, 24 February 2023 02:52 AM UTC

请问下:我想把下面dw中的数据post方式推送给对方,该怎样处理,谢谢!

Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 28 February 2023 03:44 AM UTC
  2. PowerBuilder
  3. # 1

Hi,

建议您首先了解Web API接口的规格。它能接收怎样的数据?

1)您可以使用RESTClient的SendPostRequest方法来发送HTTP POST请求:

https://docs.appeon.com/pb2022/powerscript_reference/SendPostRequest_func.html

2)如果需要发送JSON数据,可以考虑使用DataWindow的ExportJson方法:

https://docs.appeon.com/pb2022/datawindow_reference/dwmeth_ExportJson.html

或者利用JSONGenerator更灵活地构建JSON数据:

https://docs.appeon.com/pb2022/objects_and_controls/JSONGenerator_object.html

Regards, Logan

Comment
There are no comments made yet.
? ? Accepted Answer Pending Moderation
  1. Monday, 27 February 2023 02:15 AM UTC
  2. PowerBuilder
  3. # 2

有个接口地址比如:  htttp://********   , 请问该怎样处理呀,谢谢

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.