<?php
//---- 15/05/2019
//---- GET TICKERS
//---- http:// www /cotacoes_eye_04.php?CMD=1
$cmd_set=0;
if ($_SERVER["REQUEST_METHOD"] == "POST")
{
if( isset($_POST['CMD']) )
{
$CMD = $_POST['CMD'];
$cmd_set=1;
}
}
if ($_SERVER["REQUEST_METHOD"] == "GET")
{
if( isset($_GET['CMD']) )
{
$CMD = $_GET['CMD'];
$cmd_set=1;
}
}
if($cmd_set==1)
{
if($CMD==1)
{
//---- DOLAR
$json = file_get_contents("https://economia.awesomeapi.com.br/json/list/USD-BRL/1");
$obj = json_decode($json);
echo $obj[0]->high;
}
if($CMD==2)
{
//---- EURO
$json = file_get_contents("https://economia.awesomeapi.com.br/json/list/EUR-BRL/1");
$obj = json_decode($json);
echo $obj[0]->high;
}
if($CMD==3)
{
//---- LIBRA ESTERLINA
$json = file_get_contents("https://economia.awesomeapi.com.br/json/list/GBP-BRL/1");
$obj = json_decode($json);
echo $obj[0]->high;
}
if($CMD==4)
{
//---- PESO ARGENTINO
$json = file_get_contents("https://economia.awesomeapi.com.br/json/list/ARS-BRL/1");
$obj = json_decode($json);
echo $obj[0]->high;
}
if($CMD==5)
{
//---- BTC BITCAMBIO
$json = file_get_contents("https://bitcambio_api.blinktrade.com/api/v1/BRL/ticker?crypto_currency=BTC");
$obj = json_decode($json);
echo $obj->last;
}
if($CMD==6)
{
//---- BTC NEGOCIECOINS
$json = file_get_contents("https://broker.negociecoins.com.br/api/v3/btcbrl/ticker");
$obj = json_decode($json);
echo $obj->high;
}
if($CMD==7)
{
//---- BTC MERCADO_BITCOIN
$json = file_get_contents("https://www.mercadobitcoin.net/api/BTC/ticker/");
$obj = json_decode($json);
echo $obj->ticker->last;
}
if($CMD==8)
{
//---- BTC BINANCE
$json = file_get_contents("https://api.binance.com/api/v1/ticker/price?symbol=BTCUSDT");
$obj = json_decode($json);
echo $obj->price;
}
if($CMD==9)
{
//---- BTC BITMEX
$json = file_get_contents("https://www.bitmex.com/api/v1/instrument?symbol=XBTUSD");
$obj = json_decode($json);
echo $obj[0]->lastPrice;
}
if($CMD==10)
{
//---- BTC HITBTC
$json = file_get_contents("https://api.hitbtc.com/api/2/public/ticker/BTCUSD");
$obj = json_decode($json);
echo $obj->last;
}
}
else
{
echo ("USERNAME INVÁLIDO!");
}
?>
Contador de Visitas
terça-feira, 14 de maio de 2019
sábado, 27 de abril de 2019
Deleting the System Log Files in Windows 7
DEL *.log /S /F /Q
/S: delete specified files from all subdirectories.
/F: force deleting of read-only files.
/Q: quiet mode that doesn’t ask if ok to delete on wildcards.
Disable SMB - Windows 7
RUN Regedit.exe
[Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]
Novo Valor
- DWORD 32 bits
- SMB1
- Value 0 Decimal
domingo, 7 de abril de 2019
GET X POST UNITY3D
404 403 ERROR EM openstreetmap SE USAR POST NO LUGAR DE GET. UNITY3D
GET
string url = "https://nominatim.openstreetmap.org/reverse?format=json&lat="+latitude+"&lon="+longitude;
WWW www = new WWW(url);
yield return www;
if (www.error == null)
{
Debug.Log(www.text);
}
else
{
Debug.Log(www.text);
}
POST
WWWForm form = new WWWForm();
form.AddField("id_usuario", id_Usuario);
string url = php_path_VL + "status_luz.php";
WWW www = new WWW(url, form);
yield return www;
if (www.error == null)
{
Debug.Log(www.text);
}
else
{
Debug.Log(www.text);
}
🔝🔝🔝🔝
quinta-feira, 7 de março de 2019
Limites dos Bairros de Porto Alegre, Rio Grande do Sul em Google Earth KML
Assinar:
Postagens (Atom)