|
123456789101112131415161718192021222324252627282930313233 |
- using BPASmartClient.AGV.Feedback;
- using BPASmartClient.Helper;
- using BPASmartClient.Http;
- using BPASmartClient.HubHelper;
- using Newtonsoft.Json;
-
- namespace TestDemo
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
-
- private void button1_Click(object sender, EventArgs e)
- {
- AGVToUpSystem aGVToUpSystem = new AGVToUpSystem();
- string value = JsonConvert.SerializeObject(aGVToUpSystem);
- string url = $"http://192.168.1.40:8089/apicallback/quicktron/robotjob/report?sign={value}";
- var res = APIHelper.GetInstance.HttpRequest(url, "", aGVToUpSystem, RequestType.POST);
- }
-
- private void button2_Click(object sender, EventArgs e)
- {
- Upstreamrequest aGVToUpSystem = new Upstreamrequest();
- string value = JsonConvert.SerializeObject(aGVToUpSystem);
- string url = $"http://192.168.1.40:8089/apicallback/quicktron/robotjob/upstreamrequest?sign={value}";
- var res = APIHelper.GetInstance.HttpRequest(url, "", aGVToUpSystem, RequestType.POST);
-
- }
- }
- }
|