API CONNECT - WEBREQUEST PROBLEM

Other Integration MySQL PHP

Job finished

Execution time 17 hours
Feedback from employee
A great experience. I'd be happy to work with you again.
Feedback from customer
Vitor did an excellent job and quickly. He is also a person who can express himself very well and this facilitated the completion of the project. I wholeheartedly recommend this developer.

Specification

Hello!


I'm having trouble putting together the code to connect to a database and control a query.

I created this code through some queries but I have an error when complicating code 4029.


void Check()

  {

   string uri = "END_POINT_API";

   char post[100];

   char result1[100];

   string headers;

   string APIKEY = "";

   string LICENCEKEY = "";

   int res;

   string signal = "?api_key=" + APIKEY + "&license_key=" + LICENSEKEY;

   StringToCharArray(signal, post);


// Construct the request headers

   headers = "Content-Type: application/json";  // Set the correct header format


// Reset last error

   ResetLastError();


// Post data to REST API

   res = WebRequest(

            "POST",

            uri,

            headers,        // Pass headers as a string

            10,             // Timeout in seconds

            post,

            result1,        // Store the response in result1

            headers         // Response headers (optional)

         );


// Check errors

   if(res == -1)

     {

      int error_code = GetLastError();

      string error_msg = ErrorDescription(error_code);

      Print("Error in Webquest. Error Code ",error_code," Error ",error_msg);

      if(error_code==4060)

        {

         MessageBox("Add address '"+uri+"' in Expert Advisors tab of the Options window", "Error", MB_ICONINFORMATION);

        }

      else

        {

         // Successful

         Print("REST client's POST: ", signal);

         Print("Server response: ", CharArrayToString(result1, 0, -1));

        }

     }

  }

//+------------------------------------------------------------------+


Below is the documentation of the API in which I want to query and with the result I will search for some information to validate the license of my products.



It is important to mention that I inserted my end-point in the metatrader 4 options, ruling out that this is why the connection problem occurred.



Responded

1
Developer 1
Rating
(42)
Projects
49
47%
Arbitration
1
100% / 0%
Overdue
1
2%
Free
2
Developer 2
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(16)
Projects
23
30%
Arbitration
0
Overdue
1
4%
Free
4
Developer 4
Rating
(26)
Projects
34
29%
Arbitration
0
Overdue
1
3%
Free
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
I am looking for a skilled developer to code my custom Ninjatrader 8 strategy and make it works perfectly. Your expertise is highly needed in this project Kindly reach out to me and let proceed to the project without any further delay thanks
I am in need of a developer to connect my TradingView signal with cTrader in other to make receive information and make it work perfectly your expertise is highly needed in this project feel free to reach out to me and let's get started
I want a bot developer deriv He has experience and I want a profitable robot, the profit is higher than the loss Or I want someone to sue with me. I have a profitable robot, but I want another robot or to improve another robot I have
I need a proficient developer to code my NinjaTrader 8 strategy, In order to work perfectly. Your expertise is invaluable for this project's success. Let's collaborate to achieve optimal trading results
i want close on reserve signal, auto lots, time fiter , TP SL TS ETC. I GET PAID ON THE 12TH, SO I WOULD LIKE A DEMO UNTIL 12/05/24 TO TEST IM WILL TOO PAY 60 USD FOR THE LONG WAIT
Hey there, I need to convert an indicator from ninja to mt4 I will attach the ninjatrader indicator script to be converted into mt4 If you can do this kindly bid and let's discuss about the project Thanks
Adjust MY Hedging EA 30 - 40 USD
1. Need averaging TP for my hedging EA. (Close both Buy and Sell position with TP) 2. Add function auto/manual entry. (EA will entry based on manual position(placed by trader) or auto trade based on existing setting)
i want to create RSI trading bot in 1 min time frame this is will happern in 1 min timeframe if RSI level 3 min chat frame touch 27 RSI level than excute buy order as and if 3 min time frame candle touch 72 level RSI will excute sell order than profit will be 3 time where order fill from and stop loss open ,. and i want in the setting able adjust the stoploss in tick adjust the take profit and entry lot
Create MT5 deriv EA 30 - 35 USD
Hello . Am in need of a developer that can Create deriv EA .I need to create a Deriv Bot with Martingale 1 min candles 30 martingale plus I can change the amount of martigale with the option of 1 min up or down . Kindly bid and let discuss about the project
Nt8 30+ USD
I trade in NT8 and would like to code an Elliott wave measurment tool, which is very easy because I have the major Script for that.We need only to add some aspects into it. If you are interested,if you can do this do well to bid on it

Project information

Budget
30+ USD
For the developer
27 USD