Crypto news

Daily dosage of Cryptocurrency news

RingCentral SMS and Bitcoin Vault

2 min read
In this article, you will learn how to receive an SMS using RingCentral when a user Bitcoin Vault price goes up more than US $10 or down more than US $10. Introduction tl;dr: This is not a post for mining bitcoin using the RingCentral SMS app, I intend to use their SMS API to get…
RingCentral SMS and Bitcoin Vault
Hey Donald Trump

In this article, you will learn how to receive an SMS using RingCentral when a user Bitcoin Vault price goes up more than US $10 or down more than US $10.

Introduction

tl;dr: This is not a post for mining bitcoin using the RingCentral SMS app, I intend to use their SMS API to get a notification when a certain cryptocurrency changes price.

I decided to start learning about new cryptocurrencies and invest in digital markets. There is a particular new crypto called Bitcoin Vault that caught my attention.

Image 1

It is a new and completely decentralized cryptocurrency that is part of the Decentralized Digital Mining Standard with new anti-theft solutions, already available in three exchanges. I started mining it at miningcity.com.

I want to keep a constant eye on its current price, so I want to be informed when the price changes. I decided to create a script that will send me a SMS using Ring Central’s API whenever the current price varies more than $10 usd (up or down) comparing it with the last price checked.

Using the Code

We are going to need the following tools:

Steps

1. Create a CoinMarketCap API

I use coinmarketcap to check the price of a cryptocurrency, so head to https://coinmarketcap.com/api/ and create a new developer free account.

2. PHP Script

For this test, I created a folder named RingCentral, and added a PHP file named cryptoCurrency.php.

Open your empty file and copy these lines of code:


$url = 'https://pro-api.coinmarketcap.com/v1/cryptocurrency/map';
$parameters = [
    'symbol' => 'BTC,BTCV'
];

$headers = [
    'Accepts: application/json',
    'X-CMC_PRO_API_KEY: b54bcf4d-1bca-4e8e-9a24-22ff2c3d462c'
];
$qs = http_build_query($parameters);    
$request = "{$url}?{$qs}";              


$curl = curl_init();                    

curl_setopt_array($curl, array(
    CURLOPT_URL => $request,            
    CURLOPT_HTTPHEADER => $headers,     
    CURLOPT_RETURNTRANSFER => 1         
));

$response = curl_exec($curl);           
print_r(json_decode($response));        
curl_cl

Leave a Reply

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

Howdy US man....