Untitled
unknown
plain_text
3 years ago
566 B
3
Indexable
<?php $last_price=0; start: require_once('vendor/autoload.php'); $client = new \GuzzleHttp\Client(); $response = $client->request('GET', 'https://api.modulenft.xyz/api/v1/opensea/listings/new-listings?type=azuki&count=5¤cySymbol=ETH', [ 'headers' => [ 'Accept' => 'application/json', ], ]); $saa = $response->getBody(); $js = json_decode($saa); $price = $js->listings[0]->price; if($last_price!==$price){ $last_price=$price; $id = $js->listings[0]->tokenId; echo "Token ID :".$id.PHP_EOL; echo "Price :".$price.PHP_EOL; } goto start; //print_r($js);
Editor is loading...