here24hcs

Here is the Oblazt being around your request:

Ethereum: Press UrlfatchApp no ​​Sboi in the Menu function, but not in the Polish function

How to train with the Google Apps script, you, verbatically, do not link to the problem of connection to the external epic. I do not have

Question: all ground bees

Ethereum: UrlFetchApp request fails in Menu Functions but not in Custom Functions (connecting to external REST API)

When I used the following code in the menu:

`Javascript

Getmarketprices function () {

var options = {

Method: "Get",

Zagolovki: {

'Content-Type': 'Application/Json'

}

};

VAR ANSWER = URLFECTHAPP.FECTH (' Options);

var data = json.pars (reply.getContentext ());

Return the data;

}

He invited with the oblique obese, indicating that the URL -dsi was skilled. Subsequently, I insulted that the problem was not affiliated to the problem with most of the API, but that it insinuates itself with the times, such as "Urlfatchapp".

Polish functional resolution

At the same time, the surveys of the problem can be more difficult and the trabbing of the commercial diffusion of that, as regards the HTTP.

After some research and experiments, I fell that if you do so http -Adalla Polish function, it is important to use the objectURLFTCHAPPP. In the part of the new object `screams for the extraordinary of the API:

Javascript

Getmarketprices function () {

var options = {

Method: "Get",

Zagolovki: {

'Content-Type': 'Application/Json'

}

};

var url = new url ('

URL.SEarchParams.set ('symbol', 'btcusdt'); // replace a symbol of the race

VAR Answer = URLFETTHAPP.FECTH (URL.HREF, Options);

var data = json.pars (reply.getContentext ());

Return the data;

}

The key outlet ofURLFETCHECP Abute New Abute on the Tom which first gives the Hrefin the case of the ox. This underwear works in the function of the menu and in the Polish functions.

Conclusion

In conclusion, if you have the problems with the external API -princesURLFETTHPPPE, but the political functions, faithfully, are not used, from this, how, HTTP therapists. The `URLFETTHAPP ‘transplant to the new object’ Url ‘or the addition of the parameters is invisibly on the fall of the URL, it is possible to solve the problem and extinguish the market safely.

I hope this has been done on the field for the resolution of the problems for you!

Leave a Reply

Your email address will not be published. Required fields are marked *